/* Scorpius Tracking ADMINISTRATIVO - login no tema Cockpit (Opcao A)
   v2026-10-08 17h43: igual ao desenho do projeto (A-Login): mapa de rotas ao fundo,
   marca a esquerda e cartao "Entrar" a direita. */
:root {
	--bg:#F3F3EF; --hero:#ECEBE4; --surface:#FFFFFF; --surface2:#ECECE6; --border:#D9D9D0; --text:#1C1D15; --muted:#5C5D50;
	--gold:#CCB067; --gold-ink:#7A6424; --ok:#4E6E1F; --ok-bg:rgba(78,110,31,.10); --err:#B3261E; --err-bg:rgba(179,38,30,.09);
	--line:rgba(79,79,61,.20); --field:#FFFFFF; --hover:rgba(28,29,21,.035);
	--mono:"JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; color-scheme: light;
}
body.escuro {
	--bg:#111210; --hero:#0E0F0C; --surface:#191A16; --surface2:#21231D; --border:#30322A; --text:#ECECE4; --muted:#A2A393;
	--gold-ink:#CCB067; --ok:#9CC45E; --ok-bg:rgba(156,196,94,.13); --err:#E86A5F; --err-bg:rgba(232,106,95,.15);
	--line:rgba(204,176,103,.22); --field:#141511; --hover:rgba(236,236,228,.045); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--hero); color: var(--text); font: 400 13px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.ck-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ck-muted { color: var(--muted); }
.ck-ouro { color: var(--gold-ink); }
.ck-ok { color: var(--ok); }
.ck-flex { flex: 1 1 auto; }

.ck-app { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: var(--hero); }

/* ---------- Mapa ao fundo ---------- */
.ck-mapa { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ck-mapa .ck-ln { stroke: var(--line); }
.ck-mapa .ck-fade0 { stop-color: var(--hero); stop-opacity: 0; }
.ck-mapa .ck-fade1 { stop-color: var(--hero); stop-opacity: .92; }
.ck-hub circle { fill: #8BB54E; }
.ck-hub circle.hub-ring { fill: none; stroke: #8BB54E; stroke-width: 1.2; }
.ck-hub text { fill: var(--muted); font: 10px var(--mono); letter-spacing: 1.5px; }
@keyframes ckDash { to { stroke-dashoffset: -240; } }
@keyframes ckDashR { to { stroke-dashoffset: 240; } }
@keyframes ckBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ckPulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes ckDrive { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.ck-mapa .rt { stroke-dasharray: 6 16; animation: ckDash 9s linear infinite; }
.ck-mapa .rt2 { stroke-dasharray: 2 10; animation: ckDashR 14s linear infinite; }
.ck-mapa .hub-ring { transform-box: fill-box; transform-origin: center; animation: ckPulse 2.8s ease-out infinite; }
.ck-mapa .veh { offset-rotate: 0deg; animation: ckDrive 16s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ck-mapa .rt, .ck-mapa .rt2, .ck-mapa .hub-ring, .ck-mapa .veh, .ck-ponto, .ck-transito i { animation: none !important; } }

/* ---------- Topo ---------- */
.ck-topo { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 32px; flex-wrap: wrap; }
.ck-aovivo { display: inline-flex; align-items: center; gap: 8px; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ck-ponto { width: 6px; height: 6px; border-radius: 50%; background: #8BB54E; animation: ckBlink 2.4s infinite; }
.ck-topo-acoes { display: flex; align-items: center; gap: 8px; }
.ck-ico-btn { height: 34px; min-width: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); cursor: pointer; font: 500 12.5px Inter, sans-serif; }
.ck-ico-btn:hover { background: var(--surface2); }
.ck-tema-btn { padding: 0; width: 34px; }
.ck-tema-btn .sol { display: none; }
body.escuro .ck-tema-btn .sol { display: block; }
body.escuro .ck-tema-btn .lua { display: none; }
.ck-ajuda-wrap { position: relative; }
.ck-ajuda-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.ck-ajuda-wrap.aberto .ck-ajuda-menu { display: block; }
.ck-ajuda-menu a, .ck-ajuda-menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-decoration: none; text-align: left; cursor: pointer; font: 500 12.5px Inter, sans-serif; }
.ck-ajuda-menu a:hover, .ck-ajuda-menu button:hover { background: var(--surface2); }
.ck-ajuda-menu .fa { width: 16px; text-align: center; color: var(--gold-ink); font-size: 15px; }
.ck-ajuda-menu small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }

/* ---------- Centro: marca + cartao ---------- */
.ck-centro { position: relative; z-index: 2; flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding: 24px 64px 40px; }
.ck-hero { flex: 1 1 520px; min-width: 0; max-width: 680px; padding: 24px; margin: -24px; border-radius: 24px; background: radial-gradient(ellipse at 35% 55%, var(--hero) 35%, transparent 75%); }
.ck-logo { height: 150px; width: auto; display: block; margin-left: -8px; }
.ck-logo.claro { display: block; } .ck-logo.escuro { display: none; }
body.escuro .ck-logo.claro { display: none; } body.escuro .ck-logo.escuro { display: block; }
.ck-hero h1 { margin: 28px 0 0; font: 700 34px/1.18 Montserrat, Inter, sans-serif; letter-spacing: -.015em; max-width: 600px; }
.ck-hero > p { margin: 14px 0 0; font-size: 15px; color: var(--muted); max-width: 520px; }
.ck-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ck-chips span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; }
.ck-chips svg { flex: 0 0 auto; color: var(--gold-ink); }
.ck-viagem { position: relative; margin-top: 28px; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.ck-viagem-l1 { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ck-viagem-l1 b { font-weight: 600; }
.ck-transito { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; font-size: 11.5px; }
.ck-transito i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ckBlink 2s infinite; }
.ck-barra { position: relative; height: 6px; border-radius: 3px; background: var(--surface2); margin: 10px 0 6px; }
.ck-barra div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #CCB067; }
.ck-barra span { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--surface); border: 3px solid #CCB067; }
.ck-viagem-l3 { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.ck-exemplo { position: absolute; right: 8px; top: -9px; font-size: 10px; padding: 0 6px; border-radius: 4px; border: 1px dashed var(--border); background: var(--surface); color: var(--muted); }

.ck-card { flex: 0 1 420px; width: 100%; max-width: 440px; min-width: 0; margin-left: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 28px 28px 22px; }
.ck-card h2 { margin: 0; font: 700 22px Montserrat, Inter, sans-serif; }
.ck-sub { margin: 4px 0 20px; color: var(--muted); font-size: 13px; }
.ck-aviso { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; margin-bottom: 14px; border-radius: 6px; background: var(--err-bg); color: var(--err); font-weight: 500; font-size: 12.5px; }
.campo { margin-bottom: 14px; }
.campo label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 12px; color: var(--muted); }
.campo-ico { position: relative; }
.campo-ico > svg { position: absolute; left: 12px; top: 12px; color: var(--muted); pointer-events: none; }
.campo input, .campo select {
	width: 100%; height: 40px; padding: 0 12px 0 38px; border: 1px solid var(--border); border-radius: 6px;
	background: var(--field); color: var(--text); font: 400 14px Inter, sans-serif; outline: none;
}
.campo select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 32px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A2A393' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; }
.campo select option { background: var(--surface); color: var(--text); }
.campo input::placeholder { color: var(--muted); opacity: 1; }
.campo input:focus, .campo select:focus { border-color: #CCB067; box-shadow: 0 0 0 3px rgba(204,176,103,.22); }
.campo [aria-invalid="true"] { border-color: var(--err); }
.senha-wrap input { padding-right: 44px; }
.ver-senha { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ver-senha:hover, .ver-senha.on { background: var(--hover); color: var(--gold-ink); }
.btn-entrar { width: 100%; height: 42px; margin-top: 4px; border: 0; border-radius: 6px; background: #CCB067; color: #1A1C10; font: 700 14px Montserrat, Inter, sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: filter .12s ease; }
.btn-entrar:hover { filter: brightness(1.08); }
.btn-entrar.carregando { opacity: .75; pointer-events: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #CCB067; outline-offset: 1px; }
.ck-nota { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12px; color: var(--muted); }
.ck-nota svg { flex: 0 0 auto; margin-top: 1px; }
.ck-nota kbd { font: 500 10.5px var(--mono); padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface2); color: var(--text); }
.ck-card-rodape { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.ck-card-rodape .ck-nota { margin-top: 0; align-items: center; }
.ck-lk { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; text-decoration: none; width: fit-content; }
.ck-lk:hover { text-decoration: underline; }
.ck-lk .fa { width: 15px; text-align: center; }

.ck-rodape { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 32px 22px; font-size: 11.5px; color: var(--muted); }

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) { .ck-centro { padding: 16px 32px 32px; } .ck-hero h1 { font-size: 28px; } }
@media (max-width: 900px) {
	.ck-centro { justify-content: center; }
	.ck-hero { flex-basis: 100%; margin: 0; padding: 0; background: none; }
	.ck-logo { height: 110px; }
	.ck-viagem { display: none; }
	.ck-card { margin: 0 auto; }
}
@media (max-width: 560px) {
	.ck-topo { padding: 14px 16px; justify-content: flex-end; } .ck-aovivo { display: none; }
	.ck-centro { padding: 8px 16px 24px; gap: 24px; }
	.ck-hero h1 { font-size: 22px; } .ck-hero > p, .ck-chips { display: none; }
	.ck-card { padding: 22px 18px 18px; }
	.ck-rodape { padding: 12px 16px 18px; }
}
