/* /login y /login/verify (diseño 2026-11-29, propuesta aprobada por Martin): con la cabecera y el pie del sitio.
   A la izquierda, una ilustración animada solo con CSS y tres puntos de confianza; a la derecha, el formulario de siempre.
   Por debajo de 900px, una columna: la ilustración chica arriba, el formulario y al final los puntos de confianza.
   La animación corre una vez al cargar; el estado sin animar es el final, así que «reducir movimiento» muestra la escena
   terminada. El SVG no lleva style= (la CSP no admite estilos en línea): los retrasos van por clase. */
.lg-main { flex: 1; width: 100%; }
.lg { min-height: calc(100vh - var(--header-h, 72px)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); color: var(--reading); }
.lg-art { background: var(--accent-subtle); padding: 48px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.lg-scene { display: block; width: 100%; max-width: 560px; height: auto; align-self: center; }
.lg-kicker { font: 500 .75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.lg-art h2 { font-size: 1.875rem; line-height: 1.2; color: var(--ink); margin: 0 0 18px; max-width: 22ch; }
.lg-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 46ch; }
.lg-trust li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: .94rem; line-height: 1.5; }
.lg-trust svg { width: 28px; height: 28px; }
.lg-trust b { color: var(--ink); }

.lg-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px; }
.lg-wrap { width: 100%; max-width: 420px; display: grid; gap: var(--space-5); }
.lg-wrap h1 { margin: 0; color: var(--ink); font-size: 1.75rem; line-height: 1.2; }
.lg-wrap .lead { margin: 0 0 8px; }
.lg-wrap .cap { margin: 0; }
.lg-wrap form { display: grid; gap: var(--space-3); }
.lg-wrap label { font-weight: 600; color: var(--ink); }
.lg-wrap .field { max-width: none; min-height: 48px; }
.lg-wrap .btn { width: 100%; min-height: 48px; }
.lg-wrap .acc__or { margin: 6px 0; }
.lg-legal { padding-top: 20px; border-top: 1px solid var(--border); }

/* Ilustración. */
@keyframes lg-aparece { from { transform: scale(.4); opacity: 0; } }
@keyframes lg-crece-x { from { transform: scaleX(0); } }
@keyframes lg-traza { from { stroke-dashoffset: 1; } }
@keyframes lg-sube { from { transform: translateY(24px); opacity: 0; } }
@keyframes lg-sobre { from { transform: translate(-150px, -40px) rotate(-14deg); opacity: 0; } }
@keyframes lg-candado { from { transform: translateY(-14px); } }
@keyframes lg-clic { 40% { transform: scale(.92); } }
@keyframes lg-saluda { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(10deg); } }
@keyframes lg-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.lg-scene .tarjeta { transform-box: fill-box; transform-origin: 50% 100%; animation: lg-sube .9s cubic-bezier(.22,1,.36,1) .2s backwards; }
.lg-scene .fila { transform-box: fill-box; transform-origin: 0 50%; animation: lg-crece-x .8s cubic-bezier(.22,1,.36,1) backwards; }
.lg-scene .fila.i0 { animation-delay: .7s; }
.lg-scene .fila.i1 { animation-delay: .82s; }
.lg-scene .avatar { transform-box: fill-box; transform-origin: 50% 50%; animation: lg-aparece .6s cubic-bezier(.34,1.56,.64,1) .6s backwards; }
.lg-scene .sobre { animation: lg-sobre 1.3s cubic-bezier(.22,1,.36,1) 1.3s backwards; }
.lg-scene .haz { stroke-dasharray: 1 1; animation: lg-traza 1s ease-in-out 1.9s backwards; }
.lg-scene .digito { transform-box: fill-box; transform-origin: 50% 50%; animation: lg-aparece .45s cubic-bezier(.34,1.56,.64,1) backwards; }
.lg-scene .digito.i0 { animation-delay: 2.6s; }
.lg-scene .digito.i1 { animation-delay: 2.78s; }
.lg-scene .digito.i2 { animation-delay: 2.96s; }
.lg-scene .digito.i3 { animation-delay: 3.14s; }
.lg-scene .digito.i4 { animation-delay: 3.32s; }
.lg-scene .digito.i5 { animation-delay: 3.5s; }
.lg-scene .boton { transform-box: fill-box; transform-origin: 50% 50%; animation: lg-clic .5s ease-in-out 3.9s backwards; }
.lg-scene .arco { animation: lg-candado .5s cubic-bezier(.34,1.56,.64,1) 4.4s backwards; }
.lg-scene .escudo { transform-box: fill-box; transform-origin: 50% 50%; animation: lg-aparece .7s cubic-bezier(.34,1.56,.64,1) 4.7s backwards, lg-flota 5s ease-in-out 6s infinite; }
.lg-scene .tilde { stroke-dasharray: 1 1; animation: lg-traza .6s ease-out 5.1s backwards; }
.lg-scene .brazo { transform-origin: 22px -250px; animation: lg-saluda 1.2s ease-in-out 5.4s 2 none; }
.lg-scene .chispa { transform-box: fill-box; transform-origin: 50% 50%; animation: lg-aparece .5s ease-out backwards; }
.lg-scene .chispa.i0 { animation-delay: 5.2s; }
.lg-scene .chispa.i1 { animation-delay: 5.35s; }
.lg-scene .chispa.i2 { animation-delay: 5.5s; }
@media (prefers-reduced-motion: reduce) { .lg-scene * { animation: none !important; } }

@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; min-height: 0; }
  .lg-art { display: contents; }
  .lg-scene { order: 1; max-width: none; box-sizing: border-box; padding: 12px calc(50% - 135px) 4px; background: var(--accent-subtle); }
  .lg-copy { order: 3; background: var(--accent-subtle); padding: 32px 16px 40px; }
  .lg-panel { order: 2; padding: 28px 16px 40px; align-items: stretch; }
  .lg-wrap { max-width: none; }
  .lg-wrap h1 { font-size: 1.5rem; }
  .lg-art h2 { font-size: 1.375rem; }
}
