/* ================================================================
   LOGIN.CSS — AMIDEX
   Versión: 4.0  |  Rediseño Premium UI/UX
   Descripción: Glassmorphism refinado, paleta corporativa,
                micro-interacciones, campos animados y responsive.

   CORRECCIÓN DE BUG — Logo invisible:
     El filtro original `filter: brightness(0) invert(1)` destruía
     la imagen: primero la volvía negra sólida y luego la invertía
     a blanco puro, haciéndola invisible sobre el panel oscuro.
     Además, faltaban display:block y height:auto, que pueden
     colapsar el elemento img en algunos navegadores. Solución:
     filtro eliminado; se usa drop-shadow suave para que el logo
     se lea sobre cualquier fondo; dimensiones explícitas añadidas.

   Paleta corporativa:
     --petrol-*   Azul petróleo  (base / paneles)
     --mustard-*  Naranja mostaza (acento / botones)
     --grass-*    Verde pasto    (validación / éxito)
   ================================================================ */


/* ================================================================
   §1 — IMPORTACIÓN DE FUENTES
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Lora:ital,wght@0,600;1,400&display=swap');


/* ================================================================
   §2 — RESET Y VARIABLES GLOBALES
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* — Azul Petróleo — */
  --petrol-950: #071E29;
  --petrol-900: #0D2F3F;
  --petrol-800: #0D4A5C;
  --petrol-700: #1C6E8C;
  --petrol-500: #2A8FAD;
  --petrol-400: #3BA8CC;
  --petrol-200: #A8D9EA;
  --petrol-100: #D6EEF5;
  --petrol-050: #EEF8FC;

  /* — Naranja Mostaza — */
  --mustard-700: #B85E00;
  --mustard-600: #D97000;
  --mustard-500: #E88C1A;
  --mustard-400: #F5A232;
  --mustard-300: #FBBA5C;
  --mustard-100: #FEF0D6;
  --mustard-050: #FFF9EF;

  /* — Verde Pasto — */
  --grass-700:  #1F6B38;
  --grass-600:  #288048;
  --grass-500:  #33995A;
  --grass-400:  #4DB870;
  --grass-100:  #D3F0DC;
  --grass-050:  #EDFAF2;

  /* — Neutros — */
  --neutral-950: #09090B;
  --neutral-800: #1A1A1F;
  --neutral-700: #2D2D35;
  --neutral-500: #6B6B78;
  --neutral-400: #9494A0;
  --neutral-200: #D6D6DF;
  --neutral-100: #EBEBF2;
  --neutral-050: #F5F5FA;
  --white:       #FFFFFF;

  /* — Peligro — */
  --danger-600: #B91C1C;
  --danger-500: #DC2626;
  --danger-100: #FEE2E2;
  --danger-050: #FFF5F5;

  /* — Aliases semánticos — */
  --color-primary:       var(--petrol-700);
  --color-primary-dark:  var(--petrol-800);
  --color-accent:        var(--mustard-500);
  --color-accent-hover:  var(--mustard-600);
  --color-success:       var(--grass-500);
  --color-success-light: var(--grass-050);
  --color-error:         var(--danger-500);
  --color-error-light:   var(--danger-050);

  /* — Tipografía — */
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Sora', system-ui, sans-serif;

  /* — Radio de bordes — */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* — Sombras — */
  --shadow-panel:
    0 32px 80px rgba(7, 30, 41, 0.35),
    0  8px 24px rgba(7, 30, 41, 0.18);
  --shadow-btn:
    0 4px 16px rgba(232, 140, 26, 0.42),
    0 1px  4px rgba(232, 140, 26, 0.24);
  --shadow-btn-hover:
    0 8px 24px rgba(232, 140, 26, 0.55),
    0 2px  8px rgba(232, 140, 26, 0.30);
  --shadow-input-focus:
    0 0 0 3px rgba(59, 168, 204, 0.22),
    0 1px 4px rgba(28, 110, 140, 0.10);
  --shadow-logo:
    drop-shadow(0 2px 8px rgba(7, 30, 41, 0.30));

  /* — Transiciones base — */
  --t-fast:   150ms ease;
  --t-normal: 240ms ease;
  --t-slow:   360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ================================================================
   §3 — BODY Y FONDO ANIMADO
   ================================================================ */
body {
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--petrol-950);
  overflow-x: hidden;
  color: var(--neutral-950);
}

/* Fondo — GIF + overlay degradado de petróleo */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url('')
    center center / cover no-repeat;
}

/* Overlay multicapa: bruma + viñeta inferior */
.auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      165deg,
      rgba(7,  30, 41, 0.88) 0%,
      rgba(13, 74, 92, 0.76) 45%,
      rgba(7,  30, 41, 0.92) 100%
    );
}

/* Ruido sutil encima del gif para textura premium */
.auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}


/* ================================================================
   §4 — TARJETA DIVIDIDA (SPLIT CARD)
   ================================================================ */
.auth-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 940px;
  margin: 28px auto;
  padding: 0 20px;
}

.auth-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  background: var(--white);
  animation: cardEntrance var(--t-slow) both;
}


/* ================================================================
   §5 — PANEL IZQUIERDO (BRANDING / GLASSMORPHISM)
   ================================================================ */
.auth-panel {
  /* Glassmorphism sobre la capa de petróleo */
  background:
    linear-gradient(
      155deg,
      rgba(13,  74,  92, 0.92) 0%,
      rgba( 7,  30,  41, 0.96) 60%,
      rgba(13, 110, 140, 0.90) 100%
    );
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  padding: 52px 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Orbe decorativo superior-derecho */
.auth-panel::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  top: -100px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(59, 168, 204, 0.20) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Orbe decorativo inferior-izquierdo — mostaza tenue */
.auth-panel::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  bottom: -60px;
  left: -60px;
  background: radial-gradient(
    circle,
    rgba(232, 140, 26, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ——— LOGO ———
   CORRECCIÓN APLICADA:
   • Eliminado filter:brightness(0) invert(1) que volvía el logo blanco invisible.
   • Añadido display:block, height:auto y object-fit:contain para estabilizar dims.
   • drop-shadow suave para legibilidad sobre cualquier fondo oscuro.
   ——— */
.panel-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.panel-logo img {
  display: block;               /* evita colapso inline */
  width: 60px;
  height: auto;                 /* preserva proporción real */
  object-fit: contain;          /* nunca distorsiona */
  flex-shrink: 0;
  /* Sin filter destructivo — solo sombra suave para contraste */
  filter: var(--shadow-logo);
  animation: logoFloat 4s ease-in-out infinite alternate;
}

.panel-logo-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}

.panel-tagline {
  font-size: 0.78rem;
  color: var(--petrol-200);
  font-weight: 300;
  letter-spacing: 0.6px;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Cuerpo central del panel */
.panel-body {
  position: relative;
  z-index: 1;
}

.panel-headline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Línea dorada debajo del headline */
.panel-headline::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--mustard-400), var(--mustard-300));
  margin-top: 14px;
}

.panel-desc {
  font-size: 0.875rem;
  color: var(--petrol-200);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 20px;
}

/* Patas decorativas animadas */
.panel-paws {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
  opacity: 0.28;
}

.panel-paws span {
  font-size: 1.3rem;
  animation: pawBounce 2.4s ease-in-out infinite;
}

.panel-paws span:nth-child(2) { animation-delay: 0.25s; }
.panel-paws span:nth-child(3) { animation-delay: 0.50s; }

/* Badge de confianza / social proof */
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: 0.78rem;
  color: var(--petrol-100);
  backdrop-filter: blur(4px);
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.panel-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grass-400);
  box-shadow: 0 0 0 3px rgba(77, 184, 112, 0.25);
  animation: pulseDot 2s ease-in-out infinite;
}


/* ================================================================
   §6 — PANEL DERECHO (FORMULARIO)
   ================================================================ */
.auth-form-panel {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 100dvh;
  background: var(--white);
}


/* ================================================================
   §7 — ENCABEZADO DEL FORMULARIO
   ================================================================ */
.form-header {
  margin-bottom: 32px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--petrol-800);
  line-height: 1.2;
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--neutral-500);
  font-weight: 400;
}


/* ================================================================
   §8 — ALERTA GLOBAL (éxito / error / advertencia)
   ================================================================ */
.auth-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 20px;
  border-left: 4px solid transparent;
}

.auth-alert.visible {
  display: flex;
  animation: alertSlide var(--t-normal) both;
}

.auth-alert.error {
  background: var(--danger-050);
  border-color: var(--color-error);
  color: var(--danger-600);
}

.auth-alert.success {
  background: var(--grass-050);
  border-color: var(--color-success);
  color: var(--grass-700);
}

.auth-alert.warning {
  background: var(--mustard-050);
  border-color: var(--mustard-500);
  color: var(--mustard-700);
}

.auth-alert i { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }


/* ================================================================
   §9 — GRUPOS Y CAMPOS DE FORMULARIO
   ================================================================ */
.field-group {
  margin-bottom: 18px;
}

/* Etiqueta — uppercase pequeño, petróleo oscuro */
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--petrol-800);
  margin-bottom: 7px;
}

/* Wrapper del input con íconos */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Ícono decorativo izquierdo */
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--neutral-400);
  font-size: 0.88rem;
  pointer-events: none;
  z-index: 2;
  transition: color var(--t-normal);
}

/* Campo base */
.field-input {
  width: 100%;
  padding: 11px 44px 11px 40px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--neutral-950);
  background: var(--white);
  transition:
    border-color var(--t-normal),
    box-shadow   var(--t-normal),
    background   var(--t-normal);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder {
  color: var(--neutral-300, #C8C8D2);
  font-weight: 300;
}

/* Hover */
.field-input:hover:not(:focus):not(.is-valid):not(.is-invalid) {
  border-color: var(--petrol-200);
}

/* Focus — ícono izquierdo cambia también */
.field-input:focus {
  border-color: var(--petrol-400);
  box-shadow: var(--shadow-input-focus);
  background: var(--petrol-050);
}

.input-wrap:focus-within .input-icon {
  color: var(--petrol-500);
}

/* — Estado válido — */
.field-input.is-valid {
  border-color: var(--grass-400);
  background: var(--grass-050);
}

.field-input.is-valid ~ .input-icon {
  color: var(--grass-500);
}

/* — Estado inválido — */
.field-input.is-invalid {
  border-color: var(--color-error);
  background: var(--danger-050);
  animation: shakeMild var(--t-normal) both;
}

.field-input.is-invalid ~ .input-icon {
  color: var(--color-error);
}

/* Ícono de estado (check / xmark) a la derecha */
.input-status {
  position: absolute;
  right: 13px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}

.field-input.is-valid   + .input-status { opacity: 1; color: var(--grass-500); }
.field-input.is-invalid + .input-status { opacity: 1; color: var(--color-error); }

/* Botón ojo — mostrar/ocultar contraseña */
.btn-toggle-pw {
  position: absolute;
  right: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-400);
  font-size: 0.85rem;
  padding: 4px;
  line-height: 1;
  z-index: 2;
  transition: color var(--t-fast);
}

.btn-toggle-pw:hover  { color: var(--petrol-500); }
.btn-toggle-pw:focus-visible {
  outline: 2px solid var(--petrol-400);
  border-radius: var(--r-xs);
}

/* Mensaje de error inline */
.field-error {
  display: none;
  font-size: 0.74rem;
  color: var(--color-error);
  font-weight: 500;
  margin-top: 5px;
  padding-left: 3px;
  line-height: 1.4;
}

.field-error.visible { display: block; }


/* ================================================================
   §10 — SELECT PERSONALIZADO
   ================================================================ */
select.field-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239394A0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}


/* ================================================================
   §11 — MEDIDOR DE FORTALEZA DE CONTRASEÑA
   ================================================================ */
.password-strength {
  display: none;
  margin-top: 8px;
}

.password-strength.visible { display: block; }

.strength-bar {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--neutral-100);
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: var(--r-pill);
  width: 0;
  transition: width 0.45s ease, background 0.45s ease;
}

.strength-label {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 4px;
}


/* ================================================================
   §12 — BOTÓN PRINCIPAL (NARANJA MOSTAZA)
   ================================================================ */
.btn-auth {
  position: relative;
  width: 100%;
  padding: 13px 28px;
  margin-top: 8px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(
    135deg,
    var(--mustard-400) 0%,
    var(--mustard-500) 50%,
    var(--mustard-600) 100%
  );
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: var(--shadow-btn);
  transition:
    transform      var(--t-fast),
    box-shadow     var(--t-normal),
    background-position 0.4s ease,
    opacity        var(--t-fast);
  overflow: hidden;
}

/* Destello de luz al hover */
.btn-auth::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-auth:hover::before { left: 150%; }

.btn-auth:hover {
  background-position: 100% 50%;
  transform: translateY(-2px) scale(1.015);
  box-shadow: var(--shadow-btn-hover);
}

.btn-auth:active {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--shadow-btn);
}

.btn-auth:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Spinner de carga dentro del botón */
.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.btn-auth.loading .btn-spinner { display: inline-block; }
.btn-auth.loading .btn-text    { opacity: 0.75; }


/* ================================================================
   §13 — DIVISOR Y BOTONES SOCIALES
   ================================================================ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 0.76rem;
  letter-spacing: 0.4px;
  color: var(--neutral-400);
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--neutral-100);
}

.social-btns {
  display: flex;
  gap: 10px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 10px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--neutral-700);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color var(--t-normal),
    background   var(--t-normal),
    transform    var(--t-fast);
}

.btn-social:hover {
  background: var(--neutral-050);
  border-color: var(--neutral-400);
  transform: translateY(-2px);
}

.btn-social:active { transform: translateY(0); }

.btn-social i { font-size: 0.95rem; }

/* Colores de marca sutiles en los íconos */
.btn-social.facebook i { color: #1877F2; }
.btn-social.google   i { color: #EA4335; }
.btn-social.microsoft i { color: #00A4EF; }


/* ================================================================
   §14 — ENLACE INFERIOR (login ↔ registro)
   ================================================================ */
.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--neutral-500);
  line-height: 1.5;
}

.auth-switch a {
  color: var(--petrol-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.auth-switch a:hover {
  color: var(--petrol-800);
  border-color: var(--petrol-500);
}


/* ================================================================
   §15 — ENLACE "OLVIDÉ CONTRASEÑA"
   ================================================================ */
.forgot-link {
  font-size: 0.74rem;
  color: var(--petrol-500);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed var(--petrol-200);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.forgot-link:hover {
  color: var(--petrol-700);
  border-color: var(--petrol-400);
}


/* ================================================================
   §16 — FILA DE DOS COLUMNAS (campos paralelos)
   ================================================================ */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


/* ================================================================
   §17 — ANIMACIONES
   ================================================================ */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  0%   { transform: translateY(0)    rotate(-2deg); }
  100% { transform: translateY(-5px) rotate(2deg);  }
}

@keyframes pawBounce {
  0%, 100% { transform: translateY(0);     opacity: 0.28; }
  50%       { transform: translateY(-6px); opacity: 0.45; }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(77, 184, 112, 0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(77, 184, 112, 0.08); }
}

@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-8px) scaleY(0.95); }
  to   { opacity: 1; transform: translateY(0)    scaleY(1);    }
}

@keyframes shakeMild {
  0%,100%  { transform: translateX(0);    }
  20%      { transform: translateX(-4px); }
  60%      { transform: translateX(4px);  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ================================================================
   §18 — RESPONSIVE
   ================================================================ */

/* Tablet — colapsar a una columna */
@media (max-width: 820px) {
  .auth-card {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    border-radius: var(--r-xl);
  }

  .auth-panel {
    flex-direction: row;
    align-items: center;
    padding: 24px 28px;
    gap: 16px;
  }

  .panel-body   { display: none; }
  .panel-paws   { display: none; }
  .panel-badge  { display: none; }

  .panel-headline::after { display: none; }

  .auth-form-panel {
    padding: 32px 28px 40px;
    max-height: none;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .auth-wrapper {
    padding: 0 10px;
    margin: 12px auto;
  }

  .auth-card {
    border-radius: var(--r-lg);
  }

  .auth-panel {
    padding: 18px 20px;
  }

  .panel-logo img {
    width: 44px;
  }

  .panel-logo-name { font-size: 1.5rem; }

  .auth-form-panel { padding: 24px 20px 32px; }

  .form-title { font-size: 1.4rem; }

  .social-btns { flex-direction: column; }

  .btn-social { padding: 10px 16px; }
}

/* Móvil muy pequeño — acomodar label + forgot en pantallas <360px */
@media (max-width: 360px) {
  .field-label { flex-direction: column; align-items: flex-start; gap: 3px; }
  .forgot-link { margin-top: 2px; }
}


/* ================================================================
   §19 — ACCESIBILIDAD — REDUCCIÓN DE MOVIMIENTO
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
  }
}