/* ─── Login + cambiar contraseña — diseño split-screen Broadway ───────
   Layout en dos paneles:
     - Izquierda: branding (logo, cinta amarilla, fondo tinta)
     - Derecha: formulario (fondo limpio, pirámide visual clara)
   Móvil: stack vertical con hero band reducida arriba.
   Namespace propio `.lg-` para no tocar otras vistas.
*/

:root {
  --lg-rojo:        #B41423;
  --lg-rojo-hover:  #8f101c;
  --lg-rojo-soft:   #fef2f2;
  --lg-amarillo:    #FFCF10;
  --lg-amarillo-2:  #F5BC00;
  --lg-tinta:       #0a0a0a;
  --lg-tinta-2:     #181818;
  --lg-text:        #0f172a;
  --lg-text-2:      #475569;
  --lg-text-3:      #94a3b8;
  --lg-border:      #e2e8f0;
  --lg-bg-form:     #ffffff;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body.lg-body {
  font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f8fafc;
  color: var(--lg-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Layout split-screen ─────────────────────────────────────────── */
.lg-page {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 100vh;
}
@media (max-width: 920px) {
  .lg-page { grid-template-columns: 1fr; }
}

/* ── Panel izquierdo: branding ───────────────────────────────────── */
.lg-brand {
  position: relative;
  background: linear-gradient(135deg, #050505 0%, var(--lg-tinta) 50%, #1a1a1a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 60px;
  overflow: hidden;
  isolation: isolate;
}

/* Cinta amarilla taxi superior */
.lg-brand::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--lg-amarillo) 0%, var(--lg-amarillo-2) 50%, var(--lg-amarillo) 100%);
  z-index: 2;
}

/* Patrón de rayas diagonales sutiles (taxi vibe, muy bajo contraste) */
.lg-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 18px,
    rgba(255, 207, 16, 0.025) 18px 19px
  );
  pointer-events: none;
  z-index: 0;
}

/* Glow rojo sutil que insinúa la pizza/horno */
.lg-brand-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  bottom: -120px;
  right: -120px;
  background: radial-gradient(closest-side, rgba(180, 20, 35, 0.45), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: lgGlowPulse 9s ease-in-out infinite;
}
@keyframes lgGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%      { transform: scale(1.08); opacity: 0.75; }
}

.lg-brand-top,
.lg-brand-body,
.lg-brand-bottom { position: relative; z-index: 1; }

/* Top: logo + claim */
.lg-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lg-brand-logo {
  height: 56px;
  width: auto;
  max-width: 200px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}
.lg-brand-claim {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--lg-amarillo);
  text-transform: uppercase;
  border-left: 2px solid rgba(255, 207, 16, 0.4);
  padding-left: 14px;
  line-height: 1.3;
}

/* Body central: tagline grande */
.lg-brand-body {
  max-width: 540px;
}
.lg-brand-tagline {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0.02em;
  line-height: 1.02;
  margin: 0 0 22px;
  color: #fff;
  text-wrap: balance;
}
.lg-brand-tagline em {
  font-style: normal;
  color: var(--lg-amarillo);
}
.lg-brand-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.74);
  max-width: 460px;
  margin: 0;
}

/* Features minimal en hairlines */
.lg-brand-features {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}
.lg-brand-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}
.lg-brand-feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lg-amarillo);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255,207,16,0.5);
}

/* Bottom: footer del panel branding */
.lg-brand-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 920px) {
  .lg-brand {
    padding: 32px 24px 28px;
    min-height: 240px;
  }
  .lg-brand-body { display: none; }
  .lg-brand-bottom { display: none; }
  .lg-brand-glow { width: 260px; height: 260px; bottom: -80px; right: -80px; }
}

/* ── Panel derecho: formulario ─────────────────────────────────── */
.lg-form-panel {
  background: var(--lg-bg-form);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 44px;
  position: relative;
}
.lg-form-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: lgFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes lgFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 920px) {
  .lg-form-panel { padding: 36px 22px 60px; }
}

.lg-form-head h1 {
  margin: 0 0 6px;
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: 42px;
  letter-spacing: 0.04em;
  color: var(--lg-tinta);
  line-height: 1;
}
.lg-form-head p {
  margin: 0;
  color: var(--lg-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.lg-form-head h1 + p strong {
  color: var(--lg-rojo);
  font-weight: 700;
}

/* ── Mensaje de error ──────────────────────────────────────────── */
.lg-error {
  background: var(--lg-rojo-soft);
  border-left: 3px solid var(--lg-rojo);
  color: #7f1d1d;
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: lgShake 0.4s ease;
}
.lg-error svg { flex-shrink: 0; margin-top: 1px; color: var(--lg-rojo); }
@keyframes lgShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* ── Formulario ────────────────────────────────────────────────── */
.lg-form { display: flex; flex-direction: column; gap: 14px; }

.lg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lg-text-2);
}
.lg-field-input {
  position: relative;
  display: flex;
  align-items: center;
}
.lg-field-input input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  border: 1.5px solid var(--lg-border);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--lg-text);
  background: #fff;
  transition: all .18s ease;
}
.lg-field-input input::placeholder { color: var(--lg-text-3); }
.lg-field-input input:hover { border-color: #cbd5e1; }
.lg-field-input input:focus {
  outline: none;
  border-color: var(--lg-rojo);
  box-shadow: 0 0 0 4px rgba(180, 20, 35, 0.10);
}
.lg-field-input input:autofill,
.lg-field-input input:-webkit-autofill {
  box-shadow: 0 0 0 60px #fff inset;
}
.lg-field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--lg-text-3);
  pointer-events: none;
  transition: color .18s ease;
}
.lg-field-input input:focus ~ .lg-field-icon { color: var(--lg-rojo); }

/* Toggle mostrar/ocultar password */
.lg-pw-toggle {
  position: absolute;
  right: 10px;
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--lg-text-3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.lg-pw-toggle:hover { color: var(--lg-rojo); background: var(--lg-rojo-soft); }
.lg-pw-toggle svg { width: 18px; height: 18px; }
.lg-pw-toggle .lg-eye-off { display: none; }
.lg-pw-toggle[data-shown="1"] .lg-eye-on  { display: none; }
.lg-pw-toggle[data-shown="1"] .lg-eye-off { display: block; }

/* ── Botón submit ──────────────────────────────────────────────── */
.lg-submit {
  position: relative;
  margin-top: 8px;
  padding: 14px 18px;
  background: var(--lg-tinta);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .18s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.lg-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--lg-rojo), var(--lg-rojo-hover));
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
}
.lg-submit:hover::before { transform: translateX(0); }
.lg-submit > * { position: relative; z-index: 1; }
.lg-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(180, 20, 35, 0.32); }
.lg-submit:active { transform: translateY(0); }
.lg-submit svg { transition: transform .25s ease; }
.lg-submit:hover svg { transform: translateX(3px); }
.lg-submit[disabled] {
  opacity: 0.6; cursor: wait;
  pointer-events: none;
}
.lg-submit[disabled] .lg-submit-arrow { display: none; }
.lg-submit-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lgSpin .8s linear infinite;
}
.lg-submit[disabled] .lg-submit-spinner { display: block; }
@keyframes lgSpin { to { transform: rotate(360deg); } }

/* ── Hint sutil y footer ───────────────────────────────────────── */
.lg-hint {
  font-size: 12px;
  color: var(--lg-text-3);
  text-align: center;
  line-height: 1.55;
  padding: 14px 0 0;
  border-top: 1px solid var(--lg-border);
  margin-top: 2px;
}
.lg-hint a { color: var(--lg-text-2); text-decoration: underline; text-decoration-color: var(--lg-text-3); }

.lg-foot {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--lg-text-3);
  letter-spacing: 0.04em;
}
.lg-foot a { color: var(--lg-text-2); text-decoration: none; }
.lg-foot a:hover { color: var(--lg-rojo); }

/* ── Reduce motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lg-brand-glow,
  .lg-form-card,
  .lg-error { animation: none !important; }
  .lg-submit, .lg-submit::before, .lg-submit svg { transition: none !important; }
}
