/* =========================== VARIABLES MEJORADAS ============================ */
:root {
  /* Colores principales */
  --primary-color: #202124;
  --primary-dark: #1f1f22;
  --primary-light: #3a3a3f;
  --secondary-color: #764ba2;
  --secondary-dark: #5e3a82;
  --accent-color: #a1eb5c;
  
  /* Colores de estado */
  --success-color: #48bb78;
  --success-light: #68d391;
  --error-color: #f56565;
  --error-light: #fc8181;
  --warning-color: #f6ad55;
  --info-color: #4299e1;
  
  /* Colores de texto */
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #718096;
  --text-lighter: #a0aec0;
  
  /* Colores de fondo */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  
  /* Sombras mejoradas */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.03);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow: 0 2px 6px 0 rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 12px 0 rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 20px -3px rgb(0 0 0 / 0.12);
  --shadow-xl: 0 20px 30px -5px rgb(0 0 0 / 0.15);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Transiciones */
  --transition-fast: all 0.15s ease;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Bordes */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
}

/* =========================== RESET MEJORADO ============================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--gray-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================== CONTENEDOR PRINCIPAL ============================ */
.login-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* =========================== LADO IZQUIERDO MEJORADO ============================ */
.login-side {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

/* Efecto de fondo animado mejorado */
.login-side::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(161, 235, 92, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.2) 0%, transparent 50%);
  animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg);
  }
  33% { 
    transform: translate(30px, -50px) rotate(120deg);
  }
  66% { 
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

/* Patrón de grid mejorado */
.login-side__overlay {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.login-side__content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  color: white;
}

/* Logo mejorado */
.login-logo {
  display: inline-block;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-logo img {
  height: clamp(80px, 15vw, 120px);
  width: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  transition: var(--transition);
}

.login-logo:hover img {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

/* Texto principal mejorado */
.login-side__text {
  animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.login-side__text h1 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-side__text > p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Features mejoradas */
.login-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
  cursor: default;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(10px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-item i {
  font-size: 1.25rem;
  color: var(--accent-color);
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item span {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Estadísticas mejoradas */
.login-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.stat-item i {
  font-size: 1.75rem;
  opacity: 0.95;
  color: var(--accent-color);
}

.stat-item div {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-item span {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================== LADO DERECHO - FORMULARIO MEJORADO ============================ */
.login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, var(--gray-50) 100%);
}

/* Botón de regreso mejorado */
.back-button {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2rem);
  right: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.back-button:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
}

.back-button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.back-button i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-3px);
}

/* Contenedor del formulario */
.form-container {
  width: 100%;
  max-width: 500px;
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header del formulario mejorado */
.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.form-header p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* =========================== FORMULARIO MEJORADO ============================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.form-group label i {
  color: var(--primary-color);
  font-size: 0.85rem;
}

/* Inputs mejorados */
.form-group input {
  width: 100%;
  padding: 0.95rem 1.125rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: white;
  color: var(--text-dark);
}

.form-group input::placeholder {
  color: var(--text-lighter);
}

.form-group input:hover {
  border-color: var(--gray-300);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(32, 33, 36, 0.08);
  transform: translateY(-1px);
}

.form-group input.error {
  border-color: var(--error-color);
  background: rgba(245, 101, 101, 0.02);
}

.form-group input.error:focus {
  box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.1);
}

.form-group input.success {
  border-color: var(--success-color);
  background: rgba(72, 187, 120, 0.02);
}

.form-group input.success:focus {
  box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.1);
}

/* Wrapper de contraseña mejorado */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 3.25rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.toggle-password:hover {
  color: var(--primary-color);
  background: var(--gray-100);
}

.toggle-password:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Mensajes de error mejorados */
.form-error {
  color: var(--error-color);
  font-size: 0.825rem;
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  animation: shake 0.4s ease;
}

.form-error.show {
  display: flex;
}

.form-error i::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* =========================== PASSWORD STRENGTH MEJORADO ============================ */
.password-strength {
  margin-top: 0.625rem;
}

.strength-bar {
  height: 5px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--error-color);
  border-radius: var(--radius-full);
}

.strength-bar-fill.weak {
  width: 33%;
  background: linear-gradient(90deg, var(--error-color), var(--error-light));
}

.strength-bar-fill.medium {
  width: 66%;
  background: linear-gradient(90deg, var(--warning-color), #fbbf24);
}

.strength-bar-fill.strong {
  width: 100%;
  background: linear-gradient(90deg, var(--success-color), var(--success-light));
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================== OPCIONES DEL FORMULARIO MEJORADAS ============================ */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0;
}

/* Checkbox personalizado mejorado */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.checkbox-wrapper:hover .checkbox-custom {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.checkbox-wrapper input {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  background: white;
  flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkbox-custom {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 0.7rem;
  animation: checkmark 0.3s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.checkbox-wrapper input:focus-visible + .checkbox-custom {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.forgot-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* =========================== BOTONES MEJORADOS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(118, 75, 162, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(118, 75, 162, 0.3);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.btn-full {
  width: 100%;
}

.btn i {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover i {
  transform: translateX(4px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================== SOCIAL LOGIN MEJORADO ============================ */
.form-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.form-divider span {
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, var(--gray-50) 100%);
  padding: 0 1.25rem;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-login {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-social:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-social:active {
  transform: translateY(-1px);
}

.btn-social:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-social i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-social:hover i {
  transform: scale(1.1) rotate(5deg);
}

.btn-social--google:hover {
  border-color: #ea4335;
  color: #ea4335;
  background: rgba(234, 67, 53, 0.03);
}

.btn-social--facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: rgba(24, 119, 242, 0.03);
}

/* =========================== FOOTER DEL FORMULARIO ============================ */
.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.form-footer p {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-footer a {
  font-weight: 700;
  color: var(--primary-color);
  transition: var(--transition);
}

.form-footer a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* =========================== TOAST NOTIFICATIONS MEJORADAS ============================ */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
}

.toast {
  min-width: 320px;
  padding: 1.125rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: inherit;
  animation: progress 3s linear forwards;
}

@keyframes progress {
  to { height: 0; }
}

@keyframes slideInRight {
  from {
    transform: translateX(120%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.toast.success {
  border-left-color: var(--success-color);
}

.toast.error {
  border-left-color: var(--error-color);
}

.toast.warning {
  border-left-color: var(--warning-color);
}

.toast.info {
  border-left-color: var(--info-color);
}

.toast i {
  font-size: 1.5rem;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

.toast.success i {
  color: var(--success-color);
}

.toast.error i {
  color: var(--error-color);
}

.toast.warning i {
  color: var(--warning-color);
}

.toast.info i {
  color: var(--info-color);
}

.toast-content {
  flex: 1;
}

.toast-content strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.toast-content p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.5;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  margin-top: 0.125rem;
}

.toast-close:hover {
  color: var(--text-dark);
  background: var(--gray-100);
}

/* =========================== LOADING STATE ============================ */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================== ANIMACIONES MEJORADAS ============================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================== MODO OSCURO (opcional) ============================ */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #e5e7eb;
    --text-medium: #d1d5db;
    --text-light: #9ca3af;
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
  }
  
  body {
    background: var(--gray-50);
  }
  
  .login-form-side {
    background: linear-gradient(to bottom, #1f2937 0%, #111827 100%);
  }
  
  .form-group input {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--text-dark);
  }
  
  .form-group input::placeholder {
    color: var(--text-light);
  }
  
  .form-divider span {
    background: linear-gradient(to bottom, #1f2937 0%, #111827 100%);
  }
  
  .btn-social {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--text-dark);
  }
  
  .toast {
    background: var(--gray-100);
  }
  
  .back-button {
    background: var(--gray-100);
    border-color: var(--gray-300);
  }
}

/* =========================== ACCESIBILIDAD ============================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible para accesibilidad */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================== RESPONSIVE MEJORADO ============================ */
@media (max-width: 1200px) {
  .login-side__content {
    max-width: 480px;
  }
  
  .login-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .login-side {
    display: none;
  }
  
  .login-form-side {
    flex: 1;
  }
  
  .form-container {
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .login-form-side {
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  }
  
  .back-button {
    top: 1rem;
    right: 1rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.85rem;
  }
  
  .form-header h2 {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
  }
  
  .social-login {
    grid-template-columns: 1fr;
  }
  
  .toast-container {
    left: 1rem;
    right: 1rem;
    top: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .toast {
    min-width: auto;
  }
  
  .form-options {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .form-header {
    margin-bottom: 2rem;
  }
  
  .form-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .form-header p {
    font-size: 0.9rem;
  }
  
  .auth-form {
    gap: 1.25rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .btn-social {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
  
  .back-button {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .login-form-side {
    padding: 1.25rem 1rem;
  }
  
  .form-container {
    padding: 0 0.5rem;
  }
}