/* Login futurista (dono, 30/10/2026) — só aparência, por cima de .lg-* do style.css (só na tela Entrar; a troca de senha continua
   com a foto). Fundo azul-noite da Venassi, amarelo da marca nos detalhes que brilham, cena em SVG (views/partials/login-futuro.ejs).
   Escuro sempre (é a cara da tela, nos dois temas). Animação devagar; "reduzir movimento" = tela parada; celular com pouca coisa
   mexendo e sem desfoque grande. Opção A/B/C pelo data-opcao da .lg. */
html .lg[data-opcao] {
  --lf-noite: #0A1230; --lf-noite-2: #101B42; --lf-luz: #8FB2FF; --lf-amarelo: #FCC92A; --lf-amarelo-claro: #FDE68A;
  --lg-fundo: var(--lf-noite); --lg-texto: #EEF2FF; --lg-mute: #A9B5D3; --lg-borda: rgba(255, 255, 255, .14);
  --lg-cartao: rgba(16, 27, 66, .58); --lg-campo: rgba(6, 11, 32, .55); --lg-campo-borda: rgba(169, 181, 211, .34); --lg-icone: #93A0C2;
  --lg-foco: var(--lf-amarelo); --lg-link: var(--lf-amarelo-claro); --lg-erro: #FF9C94; --lg-sec-borda: rgba(169, 181, 211, .34);
  --lg-principal: #ffffff; --lg-principal-texto: #1f1f1f; --lg-principal-borda: #ffffff;
  --lg-moto-fundo: rgba(252, 201, 42, .10); --lg-moto-borda: rgba(252, 201, 42, .50); --lg-moto-texto: var(--lf-amarelo-claro);
  --lg-sombra: 0 24px 70px rgba(0, 0, 0, .45);
  --lg-lado-fundo: transparent;
  color-scheme: dark;
  background: radial-gradient(900px circle at 18% 30%, rgba(60, 92, 200, .20), transparent 60%),
    radial-gradient(700px circle at 85% 95%, rgba(252, 201, 42, .10), transparent 60%),
    linear-gradient(160deg, var(--lf-noite-2) 0%, var(--lf-noite) 60%, #070D24 100%);
}
/* grade bem fraca no fundo todo (cara de painel) */
html .lg[data-opcao]::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(143, 178, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 178, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; }
.lg[data-opcao] > * { position: relative; }

/* ---- lado da cena ---- */
.lf { display: flex; flex-direction: column; gap: 18px; padding: 36px 48px 30px; min-height: 100vh; box-sizing: border-box; color: #fff; }
.lf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lf .lg-marca { font-size: 23px; }
.lf .lg-marca img { height: 38px; }
.lf-aovivo { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--lf-amarelo-claro); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(252, 201, 42, .35); background: rgba(252, 201, 42, .06); text-shadow: none; }
.lf-aovivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--lf-amarelo); box-shadow: 0 0 10px var(--lf-amarelo); animation: lf-pisca 2.4s ease-in-out infinite; }
.lf-palco { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; }
.lf-cena { display: none; width: 100%; height: 100%; max-height: 430px; overflow: hidden; }
.lf-cena-b { overflow: visible; }
.lg[data-opcao="A"] .lf-palco { place-items: start center; } .lf-cena-a { height: auto; margin-top: 4%; } /* caminhão em cima, mapinha embaixo à direita */
.lg[data-opcao="A"] .lf-cena-a, .lg[data-opcao="B"] .lf-cena-b, .lg[data-opcao="C"] .lf-cena-c { display: block; }
.lf-mini { display: none; position: absolute; right: 0; bottom: 0; width: 150px; height: 150px; padding: 8px; box-sizing: border-box; border-radius: 16px;
  border: 1px solid rgba(143, 178, 255, .22); background: rgba(10, 18, 48, .55); }
.lg[data-opcao="A"] .lf-cena-a + .lf-mini, .lg[data-opcao="C"] .lf-cena-c + .lf-mini { display: block; }
.lf-mini .lf-nomes { display: none; }
.lf-slogan.lg-slogan { margin: 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -.8px; color: #fff; text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .4); }
.lf-slogan .lg-amarelo { color: var(--lf-amarelo); text-shadow: 0 0 22px rgba(252, 201, 42, .45); }
.lf .lg-rodape { margin: 0; font-size: 13px; color: rgba(238, 242, 255, .72); }

/* traços comuns */
.lf svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lf-linha { stroke: var(--lf-luz); stroke-width: 2.2; opacity: .85; filter: drop-shadow(0 0 4px rgba(143, 178, 255, .55)); }
.lf-fina { stroke-width: 1.4; opacity: .6; }

/* A — caminhão em traços de luz */
.lf-traco { stroke: var(--lf-amarelo); stroke-width: 3; stroke-dasharray: .14 .86; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(252, 201, 42, .9));
  animation: lf-corre 9s linear infinite; }
.lf-traco-2 { animation-duration: 7s; animation-direction: reverse; }
.lf-nome { fill: var(--lf-amarelo); stroke: none; font: 800 46px/1 Inter, system-ui, sans-serif; letter-spacing: 10px; filter: drop-shadow(0 0 8px rgba(252, 201, 42, .55)); }
.lf-raio { animation: lf-gira 3s linear infinite; }
.lf-vento path { stroke: rgba(143, 178, 255, .5); stroke-width: 2; stroke-dasharray: 40 30; animation: lf-vento 2.2s linear infinite; }
.lf-chao { stroke: rgba(143, 178, 255, .45); stroke-width: 1.5; }
.lf-chao-faixa { stroke: var(--lf-amarelo); stroke-width: 3; stroke-dasharray: 34 30; opacity: .75; animation: lf-faixa-x 1.6s linear infinite; }

/* B — mapa do Brasil */
#lf-pontos circle { fill: rgba(143, 178, 255, .42); stroke: none; }
.lf-mapa-borda { stroke: rgba(143, 178, 255, .55); stroke-width: 1.2; }
.lf-rota { stroke: var(--lf-amarelo); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(252, 201, 42, .8));
  animation: lf-acende 14s ease-in-out infinite; }
.lf-longa { stroke-width: 1.6; opacity: .75; }
.lf-r2 { animation-delay: 1.4s; } .lf-r3 { animation-delay: 2.8s; } .lf-r4 { animation-delay: 4.2s; }
.lf-r5 { animation-delay: 5.6s; } .lf-r6 { animation-delay: 7s; } .lf-r7 { animation-delay: 8.4s; }
.lf-cid { fill: var(--lf-amarelo-claro); stroke: rgba(10, 18, 48, .9); stroke-width: 1; }
.lf-cid-longe { fill: rgba(253, 230, 138, .75); }
.lf-base { fill: var(--lf-amarelo); filter: drop-shadow(0 0 6px rgba(252, 201, 42, .95)); }
.lf-pulso { fill: none; stroke: var(--lf-amarelo); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: lf-pulso 3.2s ease-out infinite; }
.lf-nomes text { fill: #DCE4FA; stroke: none; font: 600 9.5px/1 Inter, system-ui, sans-serif; paint-order: stroke; }
.lf-nomes text:first-child { fill: var(--lf-amarelo-claro); font-weight: 700; font-size: 10.5px; }

/* C — rodovia vista de cima */
.lf-grade { stroke: rgba(143, 178, 255, .10); stroke-width: 1; }
.lf-pista { fill: rgba(6, 11, 32, .75); stroke: rgba(143, 178, 255, .35); stroke-width: 1.5; }
.lf-acost { stroke: rgba(238, 242, 255, .55); stroke-width: 2; }
.lf-tracejado { stroke: var(--lf-amarelo); stroke-width: 3; stroke-dasharray: 26 26; filter: drop-shadow(0 0 4px rgba(252, 201, 42, .7)); animation: lf-faixa-y 1.8s linear infinite; }
.lf-marcos text { fill: rgba(169, 181, 211, .8); stroke: none; font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: 1px; }
.lf-cab { fill: rgba(143, 178, 255, .16); stroke: var(--lf-luz); stroke-width: 1.6; }
.lf-bau { fill: rgba(143, 178, 255, .08); stroke: var(--lf-amarelo); stroke-width: 1.6; filter: drop-shadow(0 0 5px rgba(252, 201, 42, .55)); }
.lf-farol { stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 0 5px #fff); }
.lf-carreta-2 { animation: lf-ultrapassa 16s ease-in-out infinite; }
.lf-alvo { stroke: rgba(252, 201, 42, .55); stroke-width: 1.2; stroke-dasharray: 4 7; transform-box: fill-box; transform-origin: center; animation: lf-gira 24s linear infinite; }
.lf-alvo-mira { stroke: rgba(252, 201, 42, .7); stroke-width: 1.6; }

/* painel de caminhão */
.lf-painel { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(143, 178, 255, .2); background: rgba(10, 18, 48, .45); }
.lf-velo { width: 96px; height: 56px; flex: none; }
.lf-velo-arco { stroke: rgba(143, 178, 255, .25); stroke-width: 6; }
.lf-velo-marcas { stroke: var(--lf-amarelo); stroke-width: 6; stroke-dasharray: 1.2 3.8; opacity: .9; }
.lf-velo circle { fill: var(--lf-amarelo); }
.lf-agulha { transform-origin: 60px 62px; transform: rotate(18deg); animation: lf-agulha 7s ease-in-out infinite; }
.lf-agulha path { stroke: #fff; stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .7)); }
.lf-dados { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@property --lf-km { syntax: '<integer>'; inherits: false; initial-value: 512; }
.lf-km { font: 700 22px/1.1 "SFMono-Regular", Consolas, "Liberation Mono", monospace; color: var(--lf-amarelo); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.lf-km b { --lf-km: 512; counter-reset: lfkm var(--lf-km); animation: lf-km 600s linear infinite; font-weight: 700; }
.lf-km b::before { content: counter(lfkm); }
.lf-rotulo { font-size: 12.5px; color: var(--lg-mute); }
.lf-faixa { flex: 1; height: 10px; border-radius: 5px; min-width: 60px; background: rgba(6, 11, 32, .6);
  background-image: linear-gradient(90deg, var(--lf-amarelo) 0 50%, transparent 50% 100%); background-size: 48px 3px; background-repeat: repeat-x; background-position: 0 center;
  animation: lf-faixa-bg 1.4s linear infinite; box-shadow: inset 0 0 0 1px rgba(143, 178, 255, .18); }

/* ---- cartão de vidro ---- */
.lg[data-opcao] .lg-lado { background: transparent; }
.lg[data-opcao] .lg-cartao { background: var(--lg-cartao); border: 1px solid rgba(252, 201, 42, .38); border-radius: 26px;
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 28px rgba(252, 201, 42, .14), var(--lg-sombra); }
.lg[data-opcao] .lg-cartao::before { height: 1px; background: linear-gradient(90deg, transparent, rgba(252, 201, 42, .9), transparent); opacity: .9; }
.lg[data-opcao] .lg-ola { color: #fff; }
.lg[data-opcao] .lg-ola + .lg-titulo { color: var(--lf-amarelo-claro); letter-spacing: .3px; }
.lg[data-opcao] .lg-btn-google { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 10px 26px rgba(0, 0, 0, .35); }
.lg[data-opcao] .lg-btn-google:hover { box-shadow: 0 0 0 1px #fff, 0 0 22px rgba(252, 201, 42, .35); }
.lg[data-opcao] .lg-btn-contorno { color: #fff; border-color: rgba(252, 201, 42, .7); }
.lg[data-opcao] .lg-btn-contorno:hover { background: rgba(252, 201, 42, .10); box-shadow: 0 0 18px rgba(252, 201, 42, .25); }
.lg[data-opcao] .lg-btn-sec { color: var(--lg-texto); }
.lg[data-opcao] .lg-pe-cartao { border-top-color: rgba(255, 255, 255, .10); }
.lg[data-opcao] .lg .auth-divider::before, .lg[data-opcao] .auth-divider::before, .lg[data-opcao] .auth-divider::after { background: rgba(255, 255, 255, .14); }

/* ---- animações (todas devagar) ---- */
@keyframes lf-corre { to { stroke-dashoffset: -1; } }
@keyframes lf-gira { to { transform: rotate(360deg); } }
@keyframes lf-vento { to { stroke-dashoffset: 70; } }
@keyframes lf-faixa-x { to { stroke-dashoffset: 64; } }
@keyframes lf-faixa-y { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -52; } }
@keyframes lf-faixa-bg { to { background-position: -48px center; } }
@keyframes lf-acende { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 35%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .15; } }
@keyframes lf-pulso { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
@keyframes lf-pisca { 50% { opacity: .35; } }
@keyframes lf-agulha { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(24deg); } }
@keyframes lf-km { to { --lf-km: 999; } } /* só os 3 últimos números rodam (512 → 999 em 10 min), com o ponto de milhar fixo */
@keyframes lf-ultrapassa { 0%, 100% { transform: translate(259px, 80px); } 50% { transform: translate(259px, 40px); } }

/* ---- celular: faixa em cima com a cena pequena, pouca coisa mexendo, sem desfoque grande ---- */
@media (max-width: 860px) {
  .lf { min-height: auto; height: auto; padding: 16px 16px 30px; gap: 10px; }
  .lg[data-opcao="A"] .lf-palco { place-items: center; } .lf-cena-a { height: 100%; margin-top: 0; }
  .lf .lg-marca { font-size: 20px; } .lf .lg-marca img { height: 32px; }
  .lf-aovivo { font-size: 11px; padding: 4px 9px; }
  .lf-palco { flex: none; height: 150px; }
  .lf-cena { max-height: 150px; }
  .lf-mini, .lf-painel, .lf .lg-rodape, .lf-vento, .lf-nomes text:not(:first-child), .lf-marcos, .lf-alvo, .lf-alvo-mira, .lf-pulso { display: none !important; }
  .lf-slogan.lg-slogan { font-size: 23px; letter-spacing: -.2px; line-height: 1.2; }
  .lf-slogan .lg-l { display: inline; }
  /* só 1 ou 2 coisas mexendo: A = o risco de luz; B = as rotas; C = o tracejado */
  .lf-raio, .lf-chao-faixa, .lf-traco-2, .lf-carreta-2, .lf-aovivo i, .lf-longa, .lf-pulso { animation: none; }
  .lf-linha, .lf-traco, .lf-rota, .lf-bau, .lf-tracejado, .lf-base { filter: none; }
  .lg[data-opcao] .lg-lado { padding: 0; background: transparent; }
  .lg[data-opcao] .lg-cartao { margin-top: -14px; border-radius: 24px 24px 0 0; border-width: 1px 0 0; background: rgba(16, 27, 66, .92);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -10px 30px rgba(0, 0, 0, .35), 0 -1px 18px rgba(252, 201, 42, .12); }
}

/* ---- reduzir movimento: tela parada (rotas e traços já desenhados) ---- */
@media (prefers-reduced-motion: reduce) {
  .lg[data-opcao] *, .lg[data-opcao] *::before, .lg[data-opcao] *::after { animation: none !important; transition: none !important; }
  .lf-traco { stroke-dasharray: none; opacity: .55; }
  .lf-rota { stroke-dashoffset: 0; opacity: 1; }
}
