/* Pantallas de acceso (entrar, recuperar y restablecer la clave). Usan siempre los colores de la marca LUNA (azul del logo),
   no el tema de la empresa. En PC: panel de marca a la izquierda y la tarjeta a la derecha; en el celular: solo la tarjeta. */
:root { --lg-azul: #0b3a68; --lg-azul-2: #0e4a84; --lg-noche: #051526; --lg-texto: #0f1e2e; --lg-suave: #5b6b7c; --lg-borde: #dbe3eb; }

/* App instalada: la pantalla llega hasta el borde de abajo (sin franja negra) y respeta la barra de gestos. */
html:has(.lg-fondo) { background: #02070d; }
body:has(.lg-fondo) { margin: 0; }
.lg-fondo { position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; gap: 72px;
    padding: calc(32px + env(safe-area-inset-top, 0px)) 16px calc(64px + env(safe-area-inset-bottom, 0px));
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: #fff;
    background:
        radial-gradient(700px 520px at 12% 8%, rgba(37, 99, 235, .38) 0%, transparent 62%),
        radial-gradient(800px 600px at 92% 100%, rgba(14, 116, 178, .35) 0%, transparent 60%),
        linear-gradient(180deg, #0a2747 0%, var(--lg-noche) 62%, #02070d 100%); }
/* El fondo es quieto (sin brillos que se muevan) y termina casi negro, igual que la barra de gestos del teléfono: no se nota el corte. */
.lg-agua { position: absolute; left: -60px; bottom: 8%; width: min(520px, 80vw); opacity: .045; filter: grayscale(1) brightness(3); pointer-events: none; user-select: none; }

/* Panel de marca (solo PC). */
.lg-lado { position: relative; display: none; max-width: 420px; }
.lg-lado-marca { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.lg-lado-marca img { width: 54px; height: 54px; object-fit: contain; filter: brightness(0) invert(1); }  /* sin recuadro: el logo en blanco sobre el azul */
.lg-lado-marca span { font-size: 22px; font-weight: 800; letter-spacing: .16em; }
.lg-lado-marca small { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; opacity: .7; }
.lg-lado h2 { margin: 0 0 14px; font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.lg-lado h2 em { font-style: normal; background: linear-gradient(90deg, #93c5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-lado p { margin: 0 0 28px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.lg-puntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lg-puntos li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .88); }
.lg-puntos svg { flex: none; width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: rgba(255, 255, 255, .09); color: #93c5fd; }

/* Tarjeta */
.lg-caja { position: relative; width: 100%; max-width: 420px; box-sizing: border-box; padding: 36px 36px 26px; border-radius: 26px;
    background: rgba(255, 255, 255, .97); color: var(--lg-texto);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .5) inset; animation: lg-sube .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes lg-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lg-marca { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 6px; }
.lg-logo { width: 64px; height: 64px; flex: none; display: block; padding: 0; box-sizing: border-box; border-radius: 0; background: transparent;
    object-fit: contain; }
.lg-caja h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.005em; color: var(--lg-texto); }
.lg-sub { margin: 6px 0 26px; text-align: center; font-size: 14.5px; color: var(--lg-suave); }

.lg-campo { margin-bottom: 16px; }
.lg-campo label { display: block; margin: 0 0 7px 2px; font-size: 13px; font-weight: 600; color: #2a3c52; }
.lg-entrada { position: relative; }
.lg-entrada .lg-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8597a8; pointer-events: none; transition: color .15s; }
.lg-entrada input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 14px 0 46px; border: 1.5px solid var(--lg-borde); border-radius: 14px;
    font: inherit; font-size: 16px; background: #f8fafc; color: var(--lg-texto); transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-entrada input::placeholder { color: #9aa9b8; }
.lg-entrada input:focus { outline: none; border-color: var(--lg-azul); background: #fff; box-shadow: 0 0 0 3px rgba(11, 58, 104, .08); }
.lg-entrada:focus-within .lg-ic { color: var(--lg-azul); }
.lg-entrada.lg-pass input { padding-right: 50px; }
.lg-ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px;
    cursor: pointer; color: #8597a8; display: grid; place-items: center; padding: 0; }
.lg-ojo:hover { background: #eef2f6; color: var(--lg-azul); }
.lg-ojo svg { width: 20px; height: 20px; }
.lg-ojo .lg-cerrado { display: none; }
.lg-ojo[aria-pressed="true"] .lg-abierto { display: none; }
.lg-ojo[aria-pressed="true"] .lg-cerrado { display: block; }
.lg-caja .error { display: block; margin: 6px 0 0 2px; font-size: 12.5px; color: #c0392b; }
.lg-alerta { margin: 4px 0 16px; padding: 11px 14px; border-radius: 12px; background: #fdf1ef; color: #8a2a1f; font-size: 13.5px; line-height: 1.45; }
.lg-ok { margin: 4px 0 16px; padding: 11px 14px; border-radius: 12px; background: #effaf3; color: #1d5b36; font-size: 13.5px; line-height: 1.45; }

/* Botón principal y, a su lado, la huella (solo el ícono). */
.lg-acciones { display: flex; gap: 10px; margin-top: 6px; }
.lg-boton { flex: 1; box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; border: 0; border-radius: 14px; color: #fff; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .01em; cursor: pointer;
    background: linear-gradient(180deg, var(--lg-azul-2), var(--lg-azul)); box-shadow: 0 4px 12px rgba(11, 58, 104, .22); transition: filter .15s, transform .05s; }
.lg-boton:hover { filter: brightness(1.08); }
.lg-boton:active { transform: translateY(1px); }
.lg-boton:focus-visible { outline: 3px solid rgba(11, 58, 104, .35); outline-offset: 2px; }
.lg-huella { flex: none; box-sizing: border-box; width: 52px; height: 52px; align-self: stretch; border-radius: 14px; border: 1.5px solid var(--lg-borde); background: #fff; color: var(--lg-azul);
    cursor: pointer; display: grid; place-items: center; padding: 0; transition: border-color .15s, background .15s; }
.lg-huella svg { width: 26px; height: 26px; }
.lg-huella:hover { border-color: var(--lg-azul); background: #f1f5fa; }
.lg-huella:focus-visible { outline: 3px solid rgba(11, 58, 104, .35); outline-offset: 2px; }
.lg-huella[disabled] { opacity: .6; cursor: default; }
.lg-huella.lg-huella-principal { border-color: var(--lg-azul); background: #fff; }
.lg-huella[hidden], #lg-huella-error[hidden] { display: none; }
#lg-huella-error { margin: 12px 0 0; }

.lg-olvido { display: flex; justify-content: flex-end; margin: -4px 0 18px; }
.lg-olvido a, .lg-volver a { color: var(--lg-azul); font-size: 13px; font-weight: 600; text-decoration: none; }
.lg-olvido a:hover, .lg-volver a:hover { text-decoration: underline; }
.lg-volver { margin: 18px 0 0; text-align: center; }
.lg-reglas { margin: -6px 0 18px 2px; font-size: 12.5px; color: #6b7c8d; }
.lg-seg { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 0; font-size: 12px; color: #7a8a9a; }
.lg-seg svg { width: 14px; height: 14px; flex: none; }
.lg-pie { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); }

@media (min-width: 960px) {
    .lg-lado { display: block; }
}
@media (max-width: 480px) {
    .lg-fondo { align-items: center; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
    .lg-caja { padding: 28px 22px 22px; border-radius: 24px; }
    .lg-logo { width: 58px; height: 58px; border-radius: 18px; }
    .lg-caja h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-caja { animation: none; }
}

/* «o» + Continuar con Google + Crear cuenta (10/10/2026) */
.lg-o { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #94a3b8; font-size: 13px; }
.lg-o::before, .lg-o::after { content: ""; flex: 1; height: 1px; background: var(--lg-borde); }
.lg-google { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; cursor: pointer;
    border: 1.5px solid var(--lg-borde); background: #fff; color: var(--lg-texto); font: inherit; font-size: 15px; font-weight: 600; transition: background .15s, border-color .15s; }
.lg-google:hover { background: #f8fafc; border-color: #c4d0dc; }
.lg-google svg { width: 20px; height: 20px; }
.lg-crear { margin: 18px 0 0; text-align: center; font-size: 14px; color: #64748b; }
.lg-crear a { color: var(--lg-azul); font-weight: 700; text-decoration: none; }
.lg-crear a:hover { text-decoration: underline; }

/* Google discreto (11/10/2026): enlace pequeño al pie para que la mayoría use su correo; no compite con el botón principal. */
.lg-alt { margin: 10px 0 0; text-align: center; }
.lg-alt form { display: inline; margin: 0; }
.lg-google-sutil { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 500; color: #7a8a9a; }
.lg-google-sutil:hover { color: var(--lg-texto); background: #f1f5f9; }
.lg-google-sutil svg { width: 14px; height: 14px; flex: none; }

/* «Recordar mi cuenta» */
.lg-recordar { margin: -4px 0 14px; }
.lg-recordar-casilla { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--lg-texto, inherit); }
.lg-recordar-casilla input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--lg-azul); cursor: pointer; }
.lg-recordar small { display: block; margin: 3px 0 0 30px; font-size: 12px; line-height: 1.35; color: var(--lg-suave, #64748b); }
