/* Tela de login — PM2 Truck Center */
:root {
  --lg-bg: #070b16;
  --lg-azul: #7c9cff;
  --lg-azul-forte: #4f6bff;
  --lg-ambar: #f5a524;
  --lg-laranja: #f97316;
  --lg-ouro: #ffd166;
  --lg-txt: #eef2ff;
  --lg-txt-2: #a8b3d6;
  --lg-txt-3: #6f7aa3;
  --lg-vidro: rgba(16, 22, 44, .62);
  --lg-borda: rgba(140, 165, 255, .18);
  --lg-ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; }
html, body { min-height: 100%; }
body.lg { background: var(--lg-bg); color: var(--lg-txt); font-family: 'Hanken Grotesk', system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Fundo animado */
.lg-fundo { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.lg-aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: lg-flutua 18s ease-in-out infinite alternate; }
.lg-aurora--1 { width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax; background: radial-gradient(circle, #3047ff 0%, transparent 65%); }
.lg-aurora--2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 10vmax; background: radial-gradient(circle, #b45309 0%, transparent 65%); opacity: .38; animation-duration: 22s; animation-delay: -6s; }
.lg-aurora--3 { width: 45vmax; height: 45vmax; left: 25vmax; bottom: -25vmax; background: radial-gradient(circle, #1e3a8a 0%, transparent 65%); opacity: .35; animation-duration: 26s; animation-delay: -12s; }
@keyframes lg-flutua { to { transform: translate(6vmax, 4vmax) scale(1.12); } }
.lg-grade { position: absolute; inset: 0; background-image: linear-gradient(rgba(124,156,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(124,156,255,.06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%); }
.lg-particulas { position: absolute; inset: 0; }

/* Layout */
.lg-palco { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); align-items: center; gap: 4vw; padding: 4vh 6vw; max-width: 1500px; margin: 0 auto; }

/* Lado esquerdo */
.lg-hero { display: grid; gap: 22px; max-width: 640px; }
.lg-marca { display: flex; align-items: center; gap: 14px; animation: lg-sobe .8s var(--lg-ease) both; }
.lg-logo { height: 44px; width: auto; max-width: 170px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.95); padding: 4px 8px; }
.lg-marca-nome { font-family: 'Schibsted Grotesk', sans-serif; font-size: .95rem; letter-spacing: .18em; color: var(--lg-txt-2); }
.lg-marca-nome b { color: var(--lg-txt); }
.lg-titulo { font-family: 'Schibsted Grotesk', sans-serif; font-weight: 900; font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.lg-linha { display: block; animation: lg-sobe .9s var(--lg-ease) both; }
.lg-linha:nth-child(2) { animation-delay: .08s; } .lg-linha:nth-child(3) { animation-delay: .16s; }
.lg-destaque { background: linear-gradient(100deg, var(--lg-ouro) 0%, var(--lg-ambar) 45%, var(--lg-laranja) 70%, var(--lg-ouro) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: lg-sobe .9s var(--lg-ease) .16s both, lg-brilho 6s linear infinite; }
@keyframes lg-brilho { to { background-position: -200% 0; } }
.lg-sub { font-size: 1.08rem; line-height: 1.6; color: var(--lg-txt-2); max-width: 52ch; animation: lg-sobe .9s var(--lg-ease) .24s both; }
@keyframes lg-sobe { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }

.lg-cena { margin: 4px 0 -6px; max-width: 560px; animation: lg-sobe 1s var(--lg-ease) .32s both; }
.lg-estrada { width: 100%; height: auto; display: block; overflow: visible; }
.lg-faixa { animation: lg-faixa .7s linear infinite; }
@keyframes lg-faixa { to { stroke-dashoffset: -36; } }
.lg-caminhao { animation: lg-balanca 1.6s ease-in-out infinite; transform-origin: 340px 190px; }
@keyframes lg-balanca { 50% { transform: translateY(-2px); } }
.lg-luz { animation: lg-pisca 3.2s ease-in-out infinite; }
@keyframes lg-pisca { 50% { opacity: .55; } }
.lg-caminhao-txt { font: 900 22px 'Schibsted Grotesk', sans-serif; fill: var(--lg-azul); letter-spacing: .12em; }

.lg-recursos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-recursos li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: .86rem; font-weight: 600; color: var(--lg-txt);
  background: rgba(124,156,255,.08); border: 1px solid var(--lg-borda); backdrop-filter: blur(8px); animation: lg-sobe .8s var(--lg-ease) both; }
.lg-recursos li:nth-child(1) { animation-delay: .4s; } .lg-recursos li:nth-child(2) { animation-delay: .46s; } .lg-recursos li:nth-child(3) { animation-delay: .52s; }
.lg-recursos li:nth-child(4) { animation-delay: .58s; } .lg-recursos li:nth-child(5) { animation-delay: .64s; }

/* Cartão de login */
.lg-painel { display: grid; gap: 16px; justify-items: center; }
.lg-cartao { --mx: 50%; --my: 0%; position: relative; width: 100%; max-width: 430px; padding: 36px 34px 30px; border-radius: 28px; isolation: isolate;
  background: var(--lg-vidro); border: 1px solid var(--lg-borda); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); animation: lg-cartao 1s var(--lg-ease) .2s both; }
.lg-cartao::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--lg-ang, 0deg), transparent 0 70%, var(--lg-azul) 80%, var(--lg-ambar) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: lg-gira 6s linear infinite; }
.lg-cartao::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(124,156,255,.13), transparent 60%); }
@property --lg-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes lg-gira { to { --lg-ang: 360deg; } }
@keyframes lg-cartao { from { opacity: 0; transform: translateY(30px) scale(.97); } }

.lg-cartao-cab { margin-bottom: 24px; }
.lg-selo { display: inline-block; font-size: .74rem; font-weight: 700; color: #4ade80; padding: 4px 10px; border-radius: 99px; background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); margin-bottom: 14px; }
.lg-cartao-cab h2 { font-family: 'Schibsted Grotesk', sans-serif; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.lg-cartao-cab p { color: var(--lg-txt-2); margin-top: 4px; }

.lg-erro { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; font-size: .9rem; font-weight: 600; color: #ffb4b4;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); animation: lg-treme .45s; }
.lg-erro span { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #ef4444; color: #fff; font-weight: 900; font-size: .8rem; }

.lg-form { display: grid; gap: 14px; }
.lg-campo { position: relative; }
.lg-campo input { width: 100%; height: 60px; padding: 22px 48px 6px 48px; border-radius: 16px; border: 1.5px solid var(--lg-borda); background: rgba(8,12,28,.6);
  color: var(--lg-txt); font: 600 1rem 'Hanken Grotesk', sans-serif; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-campo input:hover { border-color: rgba(140,165,255,.35); }
.lg-campo input:focus { border-color: var(--lg-azul); background: rgba(8,12,28,.85); box-shadow: 0 0 0 4px rgba(124,156,255,.18); }
.lg-campo label { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); color: var(--lg-txt-3); font-size: 1rem; pointer-events: none; transition: all .2s var(--lg-ease); }
.lg-campo input:focus + label, .lg-campo input:not(:placeholder-shown) + label { top: 17px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--lg-azul); }
.lg-ic { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--lg-txt-3); stroke-width: 1.8; stroke-linecap: round; transition: stroke .2s; }
.lg-campo input:focus ~ .lg-ic { stroke: var(--lg-azul); }
.lg-campo.is-erro input { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.15); }
.lg-olho { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.lg-olho svg { width: 20px; height: 20px; fill: none; stroke: var(--lg-txt-3); stroke-width: 1.8; }
.lg-olho:hover { background: rgba(124,156,255,.1); } .lg-olho.is-ativo svg { stroke: var(--lg-azul); }
.lg-olho:focus-visible { outline: 2px solid var(--lg-azul); }
.lg-caps { font-size: .8rem; font-weight: 600; color: var(--lg-ouro); margin-top: -6px; }
.lg-lembrar { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--lg-txt-2); cursor: pointer; user-select: none; }
.lg-lembrar input { width: 18px; height: 18px; accent-color: var(--lg-azul-forte); }

.lg-entrar { position: relative; margin-top: 6px; height: 58px; border: 0; border-radius: 16px; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 1.05rem 'Schibsted Grotesk', sans-serif; letter-spacing: .01em; color: #fff;
  background: linear-gradient(110deg, #2f54e6, #3b82f6); box-shadow: 0 14px 34px -10px rgba(47,84,230,.7); transition: transform .2s var(--lg-ease), box-shadow .2s; }
.lg-entrar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s var(--lg-ease); }
.lg-entrar:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(47,84,230,.85); }
.lg-entrar:hover::before { transform: translateX(100%); }
.lg-entrar:active { transform: translateY(0) scale(.99); }
.lg-entrar:focus-visible { outline: 3px solid var(--lg-ouro); outline-offset: 3px; }
.lg-entrar-seta { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lg-entrar:hover .lg-entrar-seta { transform: translateX(4px); }
.lg-giro { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lg-roda .7s linear infinite; }
.lg-entrar.is-carregando .lg-giro { display: block; } .lg-entrar.is-carregando .lg-entrar-seta { display: none; }
.lg-entrar:disabled { cursor: progress; }
@keyframes lg-roda { to { transform: rotate(360deg); } }
.lg-treme { animation: lg-treme .45s; }
@keyframes lg-treme { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.lg-dev { display: grid; gap: 6px; margin-top: 20px; padding: 12px; border-radius: 14px; border: 1px dashed rgba(255,209,102,.4); background: rgba(255,209,102,.06); font-size: .78rem; color: var(--lg-txt-2); }
.lg-dev strong { color: var(--lg-ouro); font-size: .74rem; }
.lg-dev button { text-align: left; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--lg-borda); background: rgba(8,12,28,.5); color: var(--lg-txt); font: 600 .82rem 'Hanken Grotesk', sans-serif; cursor: pointer; }
.lg-dev button:hover { border-color: var(--lg-azul); }
.lg-rodape { font-size: .78rem; color: var(--lg-txt-3); }

/* Telas menores */
@media (max-width: 1000px) {
  .lg-palco { grid-template-columns: 1fr; gap: 28px; padding: 28px 18px 24px; align-content: start; }
  .lg-hero { max-width: none; gap: 14px; text-align: center; justify-items: center; }
  .lg-titulo { font-size: clamp(2rem, 8.5vw, 3rem); }
  .lg-titulo .lg-linha { display: block; }
  .lg-sub { font-size: .95rem; }
  .lg-cena, .lg-recursos { display: none; }
  .lg-cartao { padding: 28px 22px 24px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Caminhão de frente, vindo pela estrada */
.lg-caminhao { transform-box: view-box; transform-origin: 320px 214px; animation: lg-vem 2.4s ease-in-out infinite; }
@keyframes lg-vem { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.015); } }
.lg-farol { filter: drop-shadow(0 0 8px #fff6c8); animation: lg-pisca 3.2s ease-in-out infinite; }
.lg-caminhao-txt { font-size: 16px; }
.lg-faixa { animation-direction: reverse; }

/* Avisos da oficina chegando ao vivo */
.lg-feed { list-style: none; padding: 0; margin: 6px 0 2px; width: 100%; max-width: 560px; height: 236px; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.lg-aviso { --c: #5b7cff; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; flex: 0 0 auto;
  background: rgba(16,22,44,.72); border: 1px solid var(--lg-borda); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -14px rgba(0,0,0,.6);
  transition: opacity .65s var(--lg-ease), border-color .4s, box-shadow .4s; }
.lg-aviso:first-child { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent), 0 14px 34px -12px color-mix(in srgb, var(--c) 45%, transparent); }
.lg-aviso:nth-child(2) { opacity: .75; } .lg-aviso:nth-child(3) { opacity: .45; }
.lg-aviso.is-saindo { opacity: 0 !important; }
.lg-aviso > div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.lg-aviso b { font-size: .95rem; }
.lg-aviso small { font-size: .8rem; color: var(--lg-txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-aviso time { font-size: .72rem; color: var(--lg-txt-3); font-weight: 600; white-space: nowrap; }
.lg-aviso:first-child time { color: var(--c); }
.lg-aviso-ic { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; font-size: 1.1rem;
  background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.lg-c-azul { --c: #5b7cff; } .lg-c-ambar { --c: #f5a524; } .lg-c-verde { --c: #22c55e; }
@keyframes lg-chega { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
@media (max-width: 1000px) { .lg-feed { display: none; } }

/* Fluxo dos módulos: um pulso de luz percorre a linha e acende cada etapa */
.lg-fluxo { position: relative; width: 100%; max-width: 560px; margin-top: 6px; animation: lg-sobe .9s var(--lg-ease) .4s both; }
.lg-fluxo ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; position: relative; }
.lg-fluxo li { display: grid; justify-items: center; text-align: center; gap: 4px; }
.lg-fluxo-linha { position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(124,156,255,.15), rgba(245,165,36,.25)); overflow: hidden; }
.lg-fluxo-linha i { position: absolute; top: -3px; left: -20%; width: 20%; height: 8px; border-radius: 8px; filter: blur(2px);
  background: linear-gradient(90deg, transparent, var(--lg-ambar), #fff6c8, transparent); animation: lg-pulso 5s linear infinite; }
@keyframes lg-pulso { to { left: 100%; } }
.lg-no-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 4px;
  background: linear-gradient(160deg, rgba(30,42,86,.95), rgba(12,17,36,.95)); border: 1px solid var(--lg-borda);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); animation: lg-acende 5s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--n) * 1.0417s - .25s); /* a ponta do pulso encosta na borda do ícone n (28px antes do centro) em n × 1,042 s − 0,25 s */ }
.lg-no-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--lg-azul); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.lg-fluxo li b { font-size: .86rem; font-weight: 700; }
.lg-fluxo li small { font-size: .72rem; color: var(--lg-txt-3); line-height: 1.3; }
/* A etapa brilha quando o pulso passa por ela */
@keyframes lg-acende {
  /* Começa a acender quando a ponta da luz encosta, chega ao máximo no meio da passagem e apaga devagar */
  0%, 30%, 100% { border-color: var(--lg-borda); box-shadow: 0 10px 24px -12px rgba(0,0,0,.7), 0 0 0 0 rgba(245,165,36,0), inset 0 1px 0 rgba(255,255,255,.06); transform: translateY(0); }
  3% { border-color: rgba(245,165,36,.4); box-shadow: 0 10px 24px -12px rgba(245,165,36,.2), 0 0 0 2px rgba(245,165,36,.06), inset 0 1px 0 rgba(255,255,255,.06); transform: translateY(-1px); }
  9% { border-color: rgba(245,165,36,.75); box-shadow: 0 12px 30px -8px rgba(245,165,36,.45), 0 0 0 4px rgba(245,165,36,.13), inset 0 1px 0 rgba(255,255,255,.08); transform: translateY(-3px); }
}
.lg-fluxo li:hover .lg-no-ic { border-color: var(--lg-azul); }
@media (max-width: 1000px) { .lg-fluxo { display: none; } }
.lg-fluxo li b { font-size: .8rem; white-space: nowrap; }
.lg-fluxo li small { font-size: .68rem; white-space: nowrap; }
.lg-fluxo ol { gap: 4px; }
