/* ══════════════════════════════════════
   RECOBRAS - Estilos de Autenticación
   ══════════════════════════════════════ */

:root {
  --green: #6DC935;
  --green-dark: #5ab028;
  --green-light: #7dd940;
  --teal: #00D9C0;
  --blue: #4AB8E8;
  --text-dark: #1a1d29;
  --text-gray: #6b7280;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --error: #ef4444;
  --shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-height: 600px;
}

/* ══════════════════════════════════════
   LADO IZQUIERDO (Branding)
   ══════════════════════════════════════ */
.auth-left {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.auth-brand {
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-name {
  font-family: 'Barlow', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-tagline {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.auth-hero {
  position: relative;
  z-index: 1;
  margin: 40px 0;
}

.auth-hero h1 {
  font-family: 'Barlow', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}

.auth-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

.auth-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   LADO DERECHO (Formulario)
   ══════════════════════════════════════ */
.auth-right {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-header {
  margin-bottom: 40px;
  text-align: center;
}

.auth-header h2 {
  font-family: 'Barlow', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.auth-header p {
  font-size: 15px;
  color: var(--text-gray);
  font-weight: 400;
}

/* ══════════════════════════════════════
   FORMULARIO
   ══════════════════════════════════════ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
  background: var(--bg-light);
  color: var(--text-dark);
}

.form-group input:focus {
  outline: none;
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 4px rgba(109, 201, 53, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: -8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-gray);
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--green);
}

.link-forgot {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-forgot:hover {
  color: var(--green-dark);
}

.error-message {
  padding: 12px 16px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--error);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(109, 201, 53, 0.3);
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 201, 53, 0.4);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.auth-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
}

.link-register {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-register:hover {
  color: var(--green-dark);
}

.auth-info {
  margin-top: 30px;
  text-align: center;
  font-size: 12px;
  color: var(--text-gray);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .auth-left {
    padding: 40px 30px;
    min-height: 300px;
  }

  .auth-hero h1 {
    font-size: 28px;
  }

  .auth-hero p {
    font-size: 16px;
  }

  .brand-name {
    font-size: 36px;
  }

  .auth-right {
    padding: 40px 30px;
  }

  .auth-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .auth-left {
    padding: 30px 20px;
  }

  .auth-right {
    padding: 30px 20px;
  }

  .auth-card {
    max-width: 100%;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
