/* /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; }
/* /login/2fa (diseño 2026-11-29): escena propia, ciclo de 10 s. Los atributos del SVG dibujan el estado final (código
   cargado, casillas en verde, candado cerrado); los keyframes solo cubren el tramo previo. Con «reducir movimiento»
   corre la regla de arriba (.lg-scene * sin animación) y queda la escena final. */
.lg-scene.f2 .f2-mono { font-family: var(--font-mono); }
.lg-scene.f2 .f2-sans { font-family: var(--font-sans); }
@keyframes f2-globo { 0%, 4% { opacity: 0; transform: scale(.6); } 10%, 88% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes f2-hilo { 0%, 6% { opacity: 0; } 12%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes f2-brillo { 0%, 3% { opacity: 0; } 8%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes f2-tiempo { from { transform: scaleX(1); } to { transform: scaleX(.08); } }
@keyframes f2-d0 { 0%, 19% { opacity: 0; } 21%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes f2-d1 { 0%, 23% { opacity: 0; } 25%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes f2-d2 { 0%, 27% { opacity: 0; } 29%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes f2-d3 { 0%, 31% { opacity: 0; } 33%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes f2-d4 { 0%, 35% { opacity: 0; } 37%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes f2-d5 { 0%, 39% { opacity: 0; } 41%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes f2-caja { 0%, 44% { stroke: #c6dfe9; fill: #fff; } 48%, 90% { stroke: #0e8f6a; fill: #eaf7f2; } 96%, 100% { stroke: #c6dfe9; fill: #fff; } }
@keyframes f2-cta { 0%, 44% { fill: #057cb2; } 48%, 90% { fill: #0e8f6a; } 96%, 100% { fill: #057cb2; } }
@keyframes f2-ok { 0%, 46% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1.12); } 53%, 88% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes f2-arco { 0%, 46% { transform: translateY(-7px); } 51%, 90% { transform: translateY(0); } 96%, 100% { transform: translateY(-7px); } }
@keyframes f2-chispas { 0%, 49% { opacity: 0; transform: scale(.6); } 53% { opacity: 1; transform: scale(1); } 62%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes f2-cabeza { 0%, 44% { transform: rotate(0); } 48% { transform: rotate(-5deg); } 52% { transform: rotate(1deg); } 56%, 100% { transform: rotate(0); } }
@keyframes f2-respira { 50% { transform: scaleY(1.012); } }
@keyframes f2-hoja { 50% { transform: rotate(3deg); } }
@keyframes f2-vapor { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-10px); } }
.lg-scene.f2 .f2-globo, .lg-scene.f2 .f2-hilo, .lg-scene.f2 .f2-brillo, .lg-scene.f2 .f2-tiempo, .lg-scene.f2 .f2-d, .lg-scene.f2 .f2-caja,
.lg-scene.f2 .f2-cta, .lg-scene.f2 .f2-ok, .lg-scene.f2 .f2-arco, .lg-scene.f2 .f2-chispas, .lg-scene.f2 .f2-cabeza { animation-duration: 10s; animation-iteration-count: infinite; animation-timing-function: ease-out; }
.lg-scene.f2 .f2-globo { transform-origin: 262px 146px; animation-name: f2-globo; }
.lg-scene.f2 .f2-hilo { stroke-dasharray: 4 5; animation-name: f2-hilo; }
.lg-scene.f2 .f2-brillo { animation-name: f2-brillo; }
.lg-scene.f2 .f2-tiempo { transform-origin: 88px 130px; animation-name: f2-tiempo; animation-timing-function: linear; }
.lg-scene.f2 .f2-d.i0 { animation-name: f2-d0; }
.lg-scene.f2 .f2-d.i1 { animation-name: f2-d1; }
.lg-scene.f2 .f2-d.i2 { animation-name: f2-d2; }
.lg-scene.f2 .f2-d.i3 { animation-name: f2-d3; }
.lg-scene.f2 .f2-d.i4 { animation-name: f2-d4; }
.lg-scene.f2 .f2-d.i5 { animation-name: f2-d5; }
.lg-scene.f2 .f2-caja { animation-name: f2-caja; }
.lg-scene.f2 .f2-cta { animation-name: f2-cta; }
.lg-scene.f2 .f2-ok { transform-origin: 493px 162px; animation-name: f2-ok; }
.lg-scene.f2 .f2-arco { animation-name: f2-arco; }
.lg-scene.f2 .f2-chispas { transform-origin: 476px 140px; animation-name: f2-chispas; }
.lg-scene.f2 .f2-cabeza { transform-origin: 210px 214px; animation-name: f2-cabeza; }
.lg-scene.f2 .f2-torso { transform-origin: 200px 380px; animation: f2-respira 4s ease-in-out infinite; }
.lg-scene.f2 .f2-hoja { transform-origin: 78px 420px; animation: f2-hoja 6s ease-in-out infinite; }
.lg-scene.f2 .f2-vapor { animation: f2-vapor 3s ease-in-out infinite; }
.lg-wrap .field#code { font: 500 1.25rem var(--font-mono); letter-spacing: .12em; }
@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; }
}
