/* Pontero One — tela de entrada (app do motorista e painel). Visual Apple + identidade Pontero (vinho #8c1d24, Outer Space #383839). */
.lg{
  --lg-bg:#f5f5f7; --lg-card:#ffffff; --lg-ink:#1d1d1f; --lg-nome:#383839; --lg-tag:#8e8f92; --lg-muted:#6e6e73;
  --lg-linha:rgba(60,60,67,.14); --lg-red:#8c1d24; --lg-red-h:#741a1f; --lg-erro:#c2362f; --lg-foco:rgba(140,29,36,.16);
  --lg-mola:cubic-bezier(.32,.72,0,1);
  position:fixed; inset:0; z-index:100; overflow-y:auto; -webkit-overflow-scrolling:touch;
  background:var(--lg-bg); color:var(--lg-ink);
  font-family:"Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  display:flex; flex-direction:column; align-items:center;
  padding:calc(env(safe-area-inset-top,0px) + 20px) 20px calc(env(safe-area-inset-bottom,0px) + 20px);
}
.lg[hidden]{display:none!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .lg{
  --lg-bg:#000000; --lg-card:#1c1c1e; --lg-ink:#f5f5f7; --lg-nome:#f2f2f3; --lg-tag:#8e8e93; --lg-muted:#98989d;
  --lg-linha:rgba(84,84,88,.6); --lg-red:#d9939a; --lg-red-h:#e5a9af; --lg-red-ink:#3a0e13; --lg-erro:#ff6961; --lg-foco:rgba(217,147,154,.26)}}
:root[data-theme="dark"] .lg{
  --lg-bg:#000000; --lg-card:#1c1c1e; --lg-ink:#f5f5f7; --lg-nome:#f2f2f3; --lg-tag:#8e8e93; --lg-muted:#98989d;
  --lg-linha:rgba(84,84,88,.6); --lg-red:#d9939a; --lg-red-h:#e5a9af; --lg-red-ink:#3a0e13; --lg-erro:#ff6961; --lg-foco:rgba(217,147,154,.26)}

.lg-miolo{width:100%; max-width:380px; display:flex; flex-direction:column; flex:1}
.lg-centro{flex:1; display:flex; flex-direction:column; justify-content:center; padding-bottom:6vh}
/* logo */
.lg-marca{display:block; width:100%; padding:0; margin:0 auto 48px; border:0; background:none; cursor:default; -webkit-tap-highlight-color:transparent}
.lg-logo{display:block; width:min(300px,84%); height:auto; margin:0 auto; overflow:visible}
.lg-berrante,.lg-cubo,.lg-macron{fill:var(--lg-red)}
.lg-nome path:not(.lg-macron){fill:var(--lg-nome)}
.lg-tag{fill:var(--lg-tag)}
.lg-onda{fill:none; stroke:var(--lg-red); stroke-width:9; stroke-linecap:round; opacity:0}
/* formulário */
.lg-form{display:flex; flex-direction:column; gap:14px; margin:0}
.lg-campos{background:var(--lg-card); border-radius:14px; overflow:hidden; box-shadow:0 0 0 .5px var(--lg-linha),0 1px 2px rgba(0,0,0,.04)}
.lg-f{position:relative; display:flex; align-items:center; height:60px; margin:0; cursor:text}
.lg-f+.lg-f::before{content:""; position:absolute; top:0; left:16px; right:0; height:.5px; background:var(--lg-linha)}
.lg-f input{flex:1; min-width:0; width:100%; height:100%; margin:0; border:0; outline:0; background:transparent; box-shadow:none; border-radius:0;
  padding:22px 16px 6px; font-family:inherit; font-size:17px; font-weight:500; line-height:1.2; color:var(--lg-ink); -webkit-appearance:none; appearance:none}
.lg-f input:-webkit-autofill{-webkit-box-shadow:0 0 0 60px var(--lg-card) inset; -webkit-text-fill-color:var(--lg-ink); caret-color:var(--lg-ink)}
.lg-f>span{position:absolute; left:16px; top:50%; transform:translateY(-50%); transform-origin:left center; pointer-events:none;
  font-family:inherit; font-size:17px; font-weight:400; line-height:1; color:var(--lg-muted); transition:transform .28s var(--lg-mola),color .2s ease}
.lg-f input:focus+span,.lg-f input:not(:placeholder-shown)+span,.lg-f input:-webkit-autofill+span{transform:translateY(-118%) scale(.74)}
.lg-f input:focus+span{color:var(--lg-red)}
.lg-f input::placeholder{color:transparent}
.lg-f:focus-within{background:color-mix(in srgb,var(--lg-red) 3%,var(--lg-card))}
.lg-olho{flex:0 0 auto; width:48px; height:48px; margin-right:6px; border:0; background:none; color:var(--lg-muted); display:grid; place-items:center; cursor:pointer; border-radius:50%}
.lg-olho svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
.lg-olho .lg-risco{transition:stroke-dashoffset .28s var(--lg-mola); stroke-dasharray:30; stroke-dashoffset:0}
.lg-olho[aria-pressed="true"] .lg-risco{stroke-dashoffset:30}
.lg-olho:focus-visible{outline:2px solid var(--lg-red); outline-offset:-4px}
.lg-entrar{height:54px; width:100%; margin:4px 0 0; border:0; border-radius:14px; background:var(--lg-red); color:var(--lg-red-ink,#fff);
  font-family:inherit; font-size:17px; font-weight:600; line-height:1; letter-spacing:-.01em; text-transform:none; cursor:pointer; padding:0;
  transition:background .15s ease,transform .16s var(--lg-mola),opacity .2s ease}
@media (hover:hover){.lg-entrar:hover:not(:disabled){background:var(--lg-red-h)}}
.lg-entrar:active:not(:disabled){transform:scale(.97)}
.lg-entrar:disabled{opacity:.6; cursor:default}
.lg-entrar:focus-visible{outline:3px solid var(--lg-foco); outline-offset:2px}
.lg-msg{min-height:20px; margin:0; text-align:center; font-size:15px; font-weight:500; color:var(--lg-erro)}
.lg-msg:empty{min-height:0}
.lg-pe{margin-top:auto; padding-top:28px; text-align:center; font-size:12.5px; color:var(--lg-muted)}
.lg-pe a{color:inherit; text-decoration:underline; text-underline-offset:2px}
@media (max-height:640px){ .lg-marca{margin-bottom:24px} .lg-centro{padding-bottom:0} }

/* boiadeiro da abertura (desenhado pelo login.js; só aparece durante a abertura) */
.lg-peao{display:none; fill:var(--lg-nome)}
.lg.intro .lg-peao{display:inline}
.lg-peao .pe-braco{fill:none; stroke:var(--lg-nome); stroke-linecap:round}
.lg-peao .pe-borda{fill:none; stroke:var(--lg-bg); stroke-linecap:round}
.lg-peao .pe-chap{stroke:var(--lg-bg); stroke-width:2.6; stroke-linejoin:round; paint-order:stroke}
.lg-peao .pe-boch{transform-box:fill-box; transform-origin:50% 50%}
.lg-cena,.lg-sopro,.lg-ar{transform-box:view-box; transform-origin:0 0}
.lg-berrante{transform-box:fill-box; transform-origin:6% 96%}
.lg-c1,.lg-c2{transform-box:fill-box; transform-origin:50% 50%}
.lg-macron{transform-box:fill-box; transform-origin:0 50%}

/* ---------- movimento ---------- */
@media (prefers-reduced-motion:no-preference){
  /* o berrante "toca": levanta um pouco e as ondas saem da boca */
  .lg.toca .lg-berrante{animation:lgToque 1.15s var(--lg-mola) both}
  .lg.toca .lg-onda{animation:lgOnda 1.5s cubic-bezier(.2,.6,.3,1) both}
  .lg.toca .lg-o1{animation-delay:.18s} .lg.toca .lg-o2{animation-delay:.36s} .lg.toca .lg-o3{animation-delay:.54s}
  .lg-form.erro{animation:lgErro .5s cubic-bezier(.36,.07,.19,.97) both}
  .lg.saindo .lg-miolo{animation:lgSai .45s var(--lg-mola) both}
}
@keyframes lgToque{0%{transform:none}22%{transform:rotate(-7deg) scale(1.03)}62%{transform:rotate(-7deg) scale(1.03)}100%{transform:none}}
@keyframes lgOnda{0%{opacity:0; transform:scale(.55)}18%{opacity:.85}100%{opacity:0; transform:scale(1.25)}}
@keyframes lgErro{0%,100%{transform:none}15%{transform:translateX(-9px)}30%{transform:translateX(8px)}45%{transform:translateX(-6px)}60%{transform:translateX(4px)}75%{transform:translateX(-2px)}}
@keyframes lgSai{to{opacity:0; transform:scale(.98)}}
/* verificação em duas etapas: voltar para o login de e-mail e senha */
.lg-mfa-voltar{all:unset;cursor:pointer;align-self:center;margin-top:2px;font-size:15px;font-weight:500;color:var(--lg-red);padding:6px 10px;border-radius:8px}
.lg-mfa-voltar:focus-visible{outline:2px solid var(--lg-red);outline-offset:2px}
.lg-mfa input{letter-spacing:.3em;font-variant-numeric:tabular-nums}
