/* ==========================================================================
   INICIO DE SESIÓN STYLES
   Archivo: premium-login.css
   Autor: Frontend Developer
   Descripción: Estilos modernos para página de inicio de sesión con glassmorphism
   ========================================================================== */

/* ===== VARIABLES CSS (Custom Properties) ===== 
   Las variables nos permiten reutilizar valores y mantener consistencia */
:root {
  /* Colores principales - más coherentes con el branding */
  --primary-color: #4f46e5;        /* Azul principal más suave */
  --primary-dark: #3730a3;         /* Versión más oscura para hover */
  --secondary-color: #7c3aed;      /* Púrpura elegante */
  --accent-color: #06b6d4;         /* Cian para destacar */
  
  /* Colores de fondo - más blancos y suaves */
  --bg-primary: #0f172a;           /* Azul muy oscuro para fondo principal */
  --bg-secondary: #1e293b;         /* Azul oscuro para paneles */
  --bg-glass: rgba(255, 255, 255, 0.15);    /* Más blanco en glassmorphism */
  --bg-glass-hover: rgba(255, 255, 255, 0.25);
  --bg-white-glass: rgba(255, 255, 255, 0.95); /* Fondo blanco semi-transparente */
  
  /* Colores de texto - más contraste */
  --text-primary: #ffffff;         /* Blanco para texto principal */
  --text-secondary: #e2e8f0;       /* Gris más claro para mejor legibilidad */
  --text-muted: #94a3b8;           /* Gris intermedio */
  --text-dark: #1e293b;            /* Texto oscuro para fondos claros */
  
  /* Colores de estado */
  --success-color: #10b981;        /* Verde para éxito */
  --error-color: #ef4444;          /* Rojo para errores */
  --warning-color: #f59e0b;        /* Amarillo para advertencias */
  
  /* Sombras más suaves */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.4);
  
  /* Radios de borde */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  
  /* Transiciones más fluidas */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Tipografía */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* ===== RESET Y BASE STYLES ===== */
/* Eliminamos márgenes y paddings por defecto */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== WRAPPER PRINCIPAL ===== */
.inicio-sesion-wrapper {
  /* Ocupa toda la pantalla */
  min-height: 100vh;
  width: 100%;
  
  /* Flexbox para centrar contenido */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Fondo con degradado más suave y coherente */
  background: linear-gradient(
    135deg, 
    #0f172a 0%, 
    #1e293b 20%,
    #334155 40%, 
    #475569 60%,
    #64748b 80%,
    #94a3b8 100%
  );
  
  /* Overlay sutil para mejor contraste */
  background-image: 
    linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.3) 100%),
    linear-gradient(
      135deg, 
      #0f172a 0%, 
      #1e293b 20%,
      #334155 40%, 
      #475569 60%,
      #64748b 80%,
      #94a3b8 100%
    );
  
  /* Posición relativa para elementos absolutos */
  position: relative;
  
  /* Ocultamos el desbordamiento */
  overflow: hidden;
  
  /* Tipografía base */
  font-family: var(--font-family);
  color: var(--text-primary);
}

/* ===== FONDO ANIMADO ===== */
.animated-background {
  /* Posición absoluta para cubrir todo */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Detrás de otros elementos */
  z-index: 1;
  
  /* Efectos visuales */
  opacity: 0.6;
  background: 
    radial-gradient(circle at 20% 50%, var(--primary-color) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--secondary-color) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, var(--accent-color) 0%, transparent 50%);
}

/* Elementos flotantes para animación */
.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-element {
  /* Posición absoluta para movimiento libre */
  position: absolute;
  
  /* Formas circulares */
  border-radius: 50%;
  
  /* Fondo semi-transparente */
  background: rgba(255, 255, 255, 0.1);
  
  /* Filtro de desenfoque para efecto suave */
  backdrop-filter: blur(10px);
}

/* Diferentes tamaños y posiciones para cada elemento */
.floating-element:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation: float1 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation: float2 8s ease-in-out infinite;
}

.floating-element:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation: float3 7s ease-in-out infinite;
}

.floating-element:nth-child(4) {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 30%;
  animation: float4 9s ease-in-out infinite;
}

.floating-element:nth-child(5) {
  width: 90px;
  height: 90px;
  bottom: 10%;
  right: 50%;
  animation: float5 5s ease-in-out infinite;
}

/* ===== ANIMACIONES KEYFRAMES ===== */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-40px, -20px) rotate(180deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -40px) scale(1.1); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-30px, 30px) rotate(90deg); }
  75% { transform: translate(30px, -30px) rotate(270deg); }
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, 20px); }
  66% { transform: translate(-20px, -30px); }
}

/* ===== CONTAINER PRINCIPAL ===== */
.login-container {
  /* Posición relativa para estar sobre el fondo */
  position: relative;
  z-index: 10;
  
  /* Flexbox para layout horizontal */
  display: flex;
  
  /* Ancho máximo responsive */
  width: 100%;
  max-width: 1200px;
  
  /* Espaciado interno */
  padding: 2rem;
  
  /* Espacio entre elementos */
  gap: 3rem;
  
  /* En pantallas pequeñas, cambiar a columna */
  flex-direction: row;
}

/* ===== CARD DEL FORMULARIO ===== */
.login-card {
  /* Flex para ocupar espacio disponible */
  flex: 1;
  max-width: 480px;
  
  /* Efecto glassmorphism mejorado con más blanco */
  background: var(--bg-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  
  /* Borde más visible */
  border: 1px solid rgba(255, 255, 255, 0.3);
  
  /* Bordes redondeados más suaves */
  border-radius: var(--radius-2xl);
  
  /* Espaciado interno */
  padding: 3rem;
  
  /* Sombra elegante */
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  
  /* Transición más fluida */
  transition: all var(--transition-normal);
}

.login-card:hover {
  /* Efecto hover más sutil */
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3), 0 0 30px rgba(79, 70, 229, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

/* ===== HEADER DEL LOGIN ===== */
.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(1.2);
}

.login-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.login-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

/* ===== FORMULARIO ===== */
.login-form {
  width: 100%;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-container {
  position: relative;
  width: 100%;
}

/* ===== CAMPOS DE INPUT ===== */
.form-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  
  /* Fondo glassmorphism más blanco */
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  
  /* Tipografía */
  font-size: 1rem;
  font-family: var(--font-family);
  color: var(--text-primary);
  
  /* Transiciones más fluidas */
  transition: all var(--transition-normal);
  
  /* Eliminar estilos por defecto */
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.form-input:focus::placeholder {
  opacity: 1;
}

/* ===== LABELS FLOTANTES ===== */
.form-label {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  
  transition: all var(--transition-normal);
  background: transparent;
  padding: 0 0.25rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--primary-color);
  background: var(--bg-primary);
  padding: 0 0.5rem;
}

/* ===== ICONOS DE INPUT ===== */
.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: color var(--transition-normal);
  z-index: 1;
}

.form-input:focus ~ .input-icon {
  color: var(--primary-color);
}

/* ===== TOGGLE DE CONTRASEÑA ===== */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  
  width: 1.25rem;
  height: 1.25rem;
  
  transition: color var(--transition-normal);
}

.password-toggle:hover {
  color: var(--text-primary);
}

/* ===== BORDE ANIMADO ===== */
.input-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.form-input:focus ~ .input-border {
  width: 100%;
}

/* ===== FEEDBACK DE VALIDACIÓN ===== */
.input-feedback {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
  transition: all var(--transition-normal);
}

.input-feedback.success {
  color: var(--success-color);
}

.input-feedback.error {
  color: var(--error-color);
}

/* ===== OPCIONES DEL LOGIN ===== */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== CHECKBOX PERSONALIZADO ===== */
.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  margin-right: 0.75rem;
  position: relative;
  transition: all var(--transition-normal);
}

.checkbox-container:hover .checkmark {
  border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.checkbox-text {
  transition: color var(--transition-normal);
}

.checkbox-container:hover .checkbox-text {
  color: var(--text-primary);
}

/* ===== ENLACE DE CONTRASEÑA OLVIDADA ===== */
.forgot-password {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-normal);
  position: relative;
}

.forgot-password::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.forgot-password:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.forgot-password:hover::after {
  width: 100%;
}

/* ===== BOTÓN PRINCIPAL ===== */
.login-button {
  width: 100%;
  padding: 1rem 2rem;
  
  /* Fondo con gradiente */
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: var(--radius-lg);
  
  /* Tipografía */
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  
  /* Cursor y transiciones */
  cursor: pointer;
  transition: all var(--transition-normal);
  
  /* Flexbox para contenido */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  
  /* Posición relativa para loader */
  position: relative;
  overflow: hidden;
  
  /* Sombra */
  box-shadow: var(--shadow-lg);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.login-button:active {
  transform: translateY(0);
}

.button-text {
  transition: opacity var(--transition-normal);
}

.button-loader {
  position: absolute;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.login-button.loading .button-text {
  opacity: 0;
}

.login-button.loading .button-loader {
  opacity: 1;
}

.login-button.loading .button-icon {
  opacity: 0;
}

/* ===== SPINNER DE CARGA ===== */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--text-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.button-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: all var(--transition-normal);
}

/* ===== SEPARADOR ===== */
.divider {
  position: relative;
  margin: 2rem 0;
  text-align: center;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.divider-text {
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.9), 
    rgba(30, 41, 59, 0.9)
  );
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  position: relative;
  z-index: 1;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== BOTONES SOCIALES ===== */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-button {
  flex: 1;
  padding: 0.875rem 1rem;
  
  /* Fondo más visible y contrastante */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  
  cursor: pointer;
  transition: all var(--transition-normal);
  
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  
  /* Sombra sutil para mayor definición */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.google-button:hover {
  border-color: #4285F4;
  background: rgba(66, 133, 244, 0.2);
  color: #ffffff;
}

.facebook-button:hover {
  border-color: #1877F2;
  background: rgba(24, 119, 242, 0.2);
  color: #ffffff;
}

/* ===== ENLACE DE REGISTRO ===== */
.signup-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.signup-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-normal);
}

.signup-link a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ===== PANEL DE INFORMACIÓN ===== */
.info-panel {
  flex: 1;
  max-width: 480px;
  
  /* Fondo más blanco y elegante */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  
  padding: 3rem;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Transición suave */
  transition: all var(--transition-normal);
}

.info-panel:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.info-content {
  text-align: center;
}

.info-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  
  /* Color sólido más visible en lugar de gradiente */
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  
  /* Efecto de brillo sutil */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.info-description {
  font-size: 1.125rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.info-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  
  /* Fondo más visible */
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  transition: all var(--transition-normal);
  
  /* Sombra sutil */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(79, 70, 229, 0.3));
}

.feature-item span {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  font-size: 0.975rem;
}

/* ===== RESPONSIVE DESIGN MEJORADO ===== */

/* Tablets grandes y laptops pequeñas */
@media (max-width: 1200px) {
  .login-container {
    max-width: 900px;
    gap: 2rem;
  }
  
  .info-title {
    font-size: 2.25rem;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .login-container {
    flex-direction: column;
    max-width: 600px;
    padding: 1.5rem;
  }
  
  .info-panel {
    order: -1;
    max-width: none;
    padding: 2.5rem;
  }
  
  .login-card {
    padding: 2.5rem;
  }
  
  .info-title {
    font-size: 2rem;
  }
  
  .login-title {
    font-size: 1.875rem;
  }
}

/* Móviles grandes y tablets pequeñas */
@media (max-width: 768px) {
  .inicio-sesion-wrapper {
    padding: 1rem;
    min-height: 100vh;
  }
  
  .login-container {
    padding: 1rem;
    gap: 1.5rem;
    width: 100%;
  }
  
  .login-card,
  .info-panel {
    padding: 2rem;
    width: 100%;
    max-width: 100%;
  }
  
  .login-title {
    font-size: 1.75rem;
  }
  
  .info-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .info-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .social-login {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .form-input {
    padding: 1rem 1rem 1rem 2.75rem;
    font-size: 1rem;
  }
  
  .form-label {
    left: 2.75rem;
    font-size: 0.875rem;
  }
  
  .input-icon {
    left: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .password-toggle {
    right: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .login-button {
    padding: 1.125rem 1.5rem;
    font-size: 1rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .inicio-sesion-wrapper {
    padding: 0.5rem;
  }
  
  .login-container {
    padding: 0.5rem;
    gap: 1rem;
  }
  
  .login-card,
  .info-panel {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  .login-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .login-subtitle {
    font-size: 0.875rem;
  }
  
  .info-title {
    font-size: 1.5rem;
  }
  
  .info-description {
    font-size: 0.875rem;
  }
  
  .form-input {
    padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    font-size: 0.875rem;
  }
  
  .form-label {
    left: 2.5rem;
    font-size: 0.75rem;
  }
  
  .input-icon {
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
  }
  
  .password-toggle {
    right: 0.75rem;
    width: 1rem;
    height: 1rem;
  }
  
  .login-button {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .info-features {
    gap: 1rem;
  }
  
  .feature-item {
    padding: 0.75rem;
    flex-direction: row;
    text-align: left;
  }
  
  .feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    margin-bottom: 0;
  }
  
  .social-button {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
  
  .social-icon {
    width: 1rem;
    height: 1rem;
  }
  
  .divider {
    margin: 1.5rem 0;
  }
  
  .divider-text {
    font-size: 0.75rem;
  }
  
  .signup-link {
    font-size: 0.75rem;
  }
  
  .checkbox-text {
    font-size: 0.75rem;
  }
  
  .forgot-password {
    font-size: 0.75rem;
  }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
  .login-card,
  .info-panel {
    padding: 1rem;
  }
  
  .login-title {
    font-size: 1.25rem;
  }
  
  .info-title {
    font-size: 1.25rem;
  }
  
  .form-input {
    padding: 0.75rem 0.75rem 0.75rem 2.25rem;
  }
  
  .input-icon {
    left: 0.625rem;
  }
  
  .form-label {
    left: 2.25rem;
  }
  
  .password-toggle {
    right: 0.625rem;
  }
}

/* Landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .inicio-sesion-wrapper {
    padding: 0.5rem;
  }
  
  .login-container {
    flex-direction: row;
    max-width: none;
    width: 100%;
    gap: 1rem;
  }
  
  .login-card,
  .info-panel {
    flex: 1;
    padding: 1.5rem;
    max-width: 50%;
  }
  
  .info-panel {
    order: 1;
  }
  
  .login-title,
  .info-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .info-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .info-features {
    gap: 0.75rem;
  }
  
  .feature-item {
    padding: 0.5rem;
  }
}

/* ===== EFECTOS ADICIONALES ===== */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: source-out;
  z-index: -1;
}

/* ===== SCROLL PERSONALIZADO ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}
