/* Login do Tunela (08/11/2026): cena do túnel + formulário. Só o login usa (cadastro/redefinir seguem no .login do flow.css). */
.lg-body { min-height: 100svh; margin: 0; background: var(--page); color: var(--ink); }
.lg { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
/* cena: sempre escura, é o túnel */
.lg-cena { position: relative; height: 44svh; min-height: 280px; overflow: hidden; background: #000; isolation: isolate; color: #f4f7ec; }
.lg-cena canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lg-marca { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; z-index: 1; }
.lg-marca img { width: 44px; height: 44px; display: block; filter: drop-shadow(0 8px 20px rgba(150, 205, 45, .35)); }
.lg-marca span { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.lg-frase { display: none; }
/* formulário */
.lg-form { display: flex; justify-content: center; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); margin-top: -18px; position: relative; z-index: 1;
  background: var(--page); border-radius: 22px 22px 0 0; }
.lg-caixa { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.lg-caixa h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.lg-sub { margin: -6px 0 6px; color: var(--ink2); font-size: 14px; }
.lg-caixa form { display: flex; flex-direction: column; gap: 12px; }
.lg-campo { display: flex; flex-direction: column; gap: 6px; }
.lg-campo label { font-size: 13px; font-weight: 500; color: var(--ink2); }
.lg-caixa .go { margin-top: 6px; }
.lg-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink2); margin: 4px 0 0; }
.lg-legal { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.lg-caixa .lembrar { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink2); margin: 6px 0 2px; }
.lg-caixa .lembrar input { width: 16px; height: 16px; accent-color: var(--acc); }
.lg-caixa .err:empty { display: none; }
::selection { background: rgba(191, 242, 106, .35); }

@media (min-width: 900px) {
  .lg { grid-template-rows: none; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); }
  .lg-cena { height: auto; min-height: 100svh; }
  .lg-marca { left: 48px; top: 40px; bottom: auto; transform: none; }
  .lg-marca img { width: 40px; height: 40px; } .lg-marca span { font-size: 26px; }
  .lg-frase { display: block; position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 1; margin: 0; max-width: 16ch;
    font-size: clamp(34px, 3.4vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
  .lg-form { margin: 0; border-radius: 0; align-items: center; padding: 48px; }
  .lg-caixa h1 { font-size: 32px; }
  .lg-tag { display: none; }                       /* a frase já está na cena */
  .lg-cena::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(3, 4, 2, .82), rgba(3, 4, 2, 0)); }   /* o texto grande lê limpo por cima dos arcos */
}
.lg-caixa .inp::placeholder { color: var(--ink2); opacity: .85; }   /* contraste ≥ 4,5 no exemplo do campo */
/* emenda sem degrau (Lucas 08/11: "contraste diferente entre a animação e o login"): a cena termina no MESMO preto do formulário */
:root[data-theme="dark"] .lg-cena::before { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 92%); }
:root[data-theme="dark"] .lg-form { margin-top: 0; border-radius: 0; }
@media (min-width: 900px) {
  :root[data-theme="dark"] .lg-cena::before { inset: 0 0 0 auto; width: 34%; height: auto; background: linear-gradient(to right, rgba(0, 0, 0, 0), #000); }
}
/* Face ID / chave de acesso (08/11) */
.lg-face { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px;
  color: var(--ink); background: transparent; border: 1px solid var(--grid); cursor: pointer; transition: background .2s, border-color .2s; }
.lg-face:hover { background: var(--surface2); border-color: var(--ink2); }
.lg-face:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lg-face[disabled] { opacity: .6; cursor: progress; }
.lg-face svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-oferta { display: flex; flex-direction: column; gap: 14px; }
.lg-oferta .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); }
.lg-oferta .ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lg-oferta h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.lg-oferta p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.45; }
.lg-oferta .depois { background: none; border: 0; color: var(--ink2); font: inherit; font-size: 14px; padding: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
