/* =============================================================================
   Nativos Trips · Gestão — tema
   Cores da marca (site nativostrips.com.br e planilha): #FF1800 (laranja-vermelho),
   #151515 (grafite), #EEEEEE; verde da planilha #1F4E3D para indicadores positivos.
   ========================================================================== */
:root {
  --brand: #FF1800;
  --brand-strong: #C81200;
  --brand-soft: #FFE9E6;
  --graphite: #151515;
  --forest: #1F4E3D;

  --bg: #F5F5F3;
  --surface: #FFFFFF;
  --surface-2: #FAFAF9;
  --text: #151515;
  --muted: #62666C;
  --border: #E4E4E0;
  --link: #C81200;

  --ok: #1F7A4D;   --ok-soft: #E3F3EA;
  --warn: #9A6200; --warn-soft: #FFF3D6;
  --bad: #C81E1E;  --bad-soft: #FDE7E7;
  --info: #1D5FD1; --info-soft: #E5EEFD;

  --sidebar-bg: #151515;
  --sidebar-text: #CFCFCF;
  --sidebar-active: #FFFFFF;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 21, 21, .05), 0 4px 16px rgba(21, 21, 21, .05);
  --font: 'Catamaran', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0F10; --surface: #17191A; --surface-2: #1D1F21; --text: #ECECEC; --muted: #A2A6AB; --border: #2A2D30;
    --link: #FF6A57; --brand-soft: #3A1612;
    --ok: #4CC38A; --ok-soft: #12291E; --warn: #E8B04B; --warn-soft: #2E2410; --bad: #FF6B6B; --bad-soft: #321516; --info: #7AA7FF; --info-soft: #14213A;
    --sidebar-bg: #0A0A0A; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0F10; --surface: #17191A; --surface-2: #1D1F21; --text: #ECECEC; --muted: #A2A6AB; --border: #2A2D30;
  --link: #FF6A57; --brand-soft: #3A1612;
  --ok: #4CC38A; --ok-soft: #12291E; --warn: #E8B04B; --warn-soft: #2E2410; --bad: #FF6B6B; --bad-soft: #321516; --info: #7AA7FF; --info-soft: #14213A;
  --sidebar-bg: #0A0A0A; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- layout */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.brand img { height: 92px; width: auto; max-width: 180px; object-fit: contain; }
.brand:hover { text-decoration: none; }
.nav { padding: 10px 10px 24px; }
.nav h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #8A8A8A; margin: 16px 10px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--sidebar-text); font-size: .93rem; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.active { background: var(--brand); color: var(--sidebar-active); font-weight: 600; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; min-height: 58px; }
.topbar .spacer { flex: 1; }
.topbar .who { text-align: right; line-height: 1.2; }
.topbar .who small { color: var(--muted); display: block; font-size: .78rem; }
.topbar .brand-sm { display: none; }
.topbar .brand-sm img { height: 38px; width: 38px; border-radius: 8px; display: block; }
.content-center { margin: 0 auto; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; } .mt-0 { margin-top: 0; }
.w-auto { width: auto; }
.content { padding: 24px; max-width: 1400px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.menu-toggle { display: none; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; } :root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 10px 14px; }
  .topbar .brand-sm { display: flex; }
  .topbar .who { display: none; }
  .content { padding: 16px; }
}

/* ---------------------------------------------------------------- componentes */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card, .section + .section { margin-top: 18px; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card .card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border); }
.kpi.accent::before { background: var(--brand); } .kpi.ok::before { background: var(--ok); } .kpi.bad::before { background: var(--bad); } .kpi.warn::before { background: var(--warn); }
.kpi .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kpi .value { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: .8rem; color: var(--muted); }
@media (max-width: 960px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .9rem/1 var(--font-head); padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn svg.i { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-strong); }
.btn-dark { background: var(--graphite); color: #fff; } :root[data-theme="dark"] .btn-dark { background: #2A2D30; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); } .btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--bad); border-color: currentColor; } .btn-danger:hover { background: var(--bad-soft); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: .8rem; }
.btn[disabled], .btn.loading { opacity: .65; pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.inline-form { display: inline; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
:root[data-theme="dark"] .badge.brand { color: #FF8A7A; }
.alert-text { color: var(--warn); font-size: .82rem; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.alert-text svg.i { width: 14px; height: 14px; }

/* tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.t th { font-family: var(--font-head); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tfoot td { font-weight: 700; background: var(--surface-2); }
table.t .actions { white-space: nowrap; text-align: right; }
table.t tr.clickable { cursor: pointer; }
table.t.compact th, table.t.compact td { padding: 7px 10px; }
.empty { text-align: center; padding: 36px 12px; color: var(--muted); }
@media (max-width: 720px) {
  .hide-sm { display: none; }
  table.t.stack thead { display: none; }
  table.t.stack, table.t.stack tbody, table.t.stack tr, table.t.stack td { display: block; width: 100%; }
  table.t.stack tr { border-bottom: 1px solid var(--border); padding: 8px 4px; }
  table.t.stack td { border: 0; padding: 4px 10px; display: flex; justify-content: space-between; gap: 10px; text-align: right; }
  table.t.stack td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-align: left; font-weight: 600; }
  table.t.stack td.actions { justify-content: flex-end; }
  table.t.stack td.actions::before { content: none; }
}

/* filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 150px; }
.filters .field.grow { flex: 1; min-width: 200px; }

/* formulários */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-weight: 600; font-size: .86rem; }
.field label .req { color: var(--brand); margin-left: 2px; }
.field .help { font-size: .78rem; color: var(--muted); }
.field .err { font-size: .8rem; color: var(--bad); font-weight: 600; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 11px; width: 100%; min-height: 40px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 0; border-color: var(--brand); }
input[readonly] { background: var(--surface-2); color: var(--muted); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .was-validated :invalid { border-color: var(--bad); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.form-actions.start { justify-content: flex-start; }
.form-error { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }

/* mensagens */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(0,0,0,.15); border-left: 4px solid var(--info); animation: slidein .2s ease; }
.toast.success { border-left-color: var(--ok); } .toast.error { border-left-color: var(--bad); } .toast.warning { border-left-color: var(--warn); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } }
.callout { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--text); border-left: 4px solid var(--info); margin-bottom: 14px; }
.callout.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.callout.bad { background: var(--bad-soft); border-left-color: var(--bad); }
.callout.ok { background: var(--ok-soft); border-left-color: var(--ok); }

/* barra de progresso / modal */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--brand); z-index: 200; transition: width .3s ease; }
.progress.run { width: 70%; transition: width 8s cubic-bezier(.1,.7,.2,1); }
dialog.modal { border: 0; border-radius: var(--radius); padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.modal::backdrop { background: rgba(10,10,10,.55); }
dialog.modal .mbody { padding: 22px; }
dialog.modal .mfoot { padding: 14px 22px; display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); border-top: 1px solid var(--border); }

/* paginação, abas, listas de definição */
.pager { display: flex; gap: 6px; justify-content: flex-end; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: .86rem; } .dl dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 230px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.meter { height: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; min-width: 70px; }
.meter > span { display: block; height: 100%; background: var(--brand); }
.meter.ok > span { background: var(--ok); }

/* ---------------------------------------------------------------- login
   Duas áreas: gestão (esquerda, segue o tema claro/escuro) e marca + acesso (direita, foto do
   site da Nativos com sobreposição escura). No celular o acesso vem primeiro. */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }

.login-info {
  --lpx: 56px; /* margem lateral; o rodapé escuro usa para ocupar a largura toda */
  /* Lado esquerdo sempre claro, mesmo com o tema escuro (pedido da agência): fixa as cores do tema claro. */
  --bg: #F5F5F3; --surface: #FFFFFF; --surface-2: #FAFAF9; --text: #151515; --muted: #62666C; --border: #E4E4E0;
  --link: #C81200; --brand-soft: #FFE9E6; --ok: #1F7A4D; --ok-soft: #E3F3EA;
  --shadow: 0 1px 2px rgba(21, 21, 21, .05), 0 4px 16px rgba(21, 21, 21, .05);
  color-scheme: light; color: var(--text);
  position: relative; display: flex; flex-direction: column; padding: 36px var(--lpx) 0;
  background: radial-gradient(900px 500px at -10% -10%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 60%), var(--bg);
}
.login-mark { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; }
.login-mark img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent); }
.login-mark b { color: var(--brand); font-weight: 800; }

.login-pitch { flex: 1; width: 100%; max-width: 540px; margin: 36px auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.login-eyebrow { font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-strong); margin: 0 0 14px; }
.login-pitch h1 { font-size: clamp(2.1rem, 3.3vw, 3.15rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; margin: 0 0 16px; }
.login-pitch h1 em { font-style: normal; color: var(--brand); }
.login-lead { font-size: 1.12rem; line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.login-features { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; text-align: left; }
.login-features li { display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.login-features li > svg.i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); stroke-width: 1.9; }
.login-features b { font-weight: 600; }

/* ilustração de painel (desenhada em código, sem imagens de terceiros) */
.login-visual { position: relative; margin: 0; width: 100%; max-width: 470px; text-align: left; }
.lv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 12px; box-shadow: 0 18px 50px rgba(21,21,21,.10), 0 2px 6px rgba(21,21,21,.05); }
.lv-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: .86rem; margin-bottom: 12px; }
.lv-chip { font-size: .72rem; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.lv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.lv-kpis div { padding: 9px 11px; border-radius: 10px; background: var(--surface-2); }
.lv-kpis small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lv-kpis strong { font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-chart { width: 100%; height: auto; display: block; }
.lv-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.lv-axis { stroke: var(--border); stroke-width: 1.2; }
.lv-bar { fill: color-mix(in srgb, var(--text) 14%, transparent); }
.lv-bar-hi { fill: var(--brand); }
.lv-line { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .75; }
.lv-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2.5; }
.lv-float { position: absolute; right: -18px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 34px rgba(21,21,21,.16); }
.lv-float small { display: block; font-size: .7rem; color: var(--muted); }
.lv-float strong { font-family: var(--font-head); font-size: .88rem; }
.lv-float-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.lv-float-icon svg.i { width: 17px; height: 17px; stroke-width: 2.4; }

.login-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 calc(-1 * var(--lpx)); padding: 18px var(--lpx); background: #000; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; color: rgba(255,255,255,.72); }
.login-social { display: flex; gap: 10px; }
.login-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: #fff; transition: background .15s, color .15s, border-color .15s; }
.login-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }
.login-social svg.i { width: 18px; height: 18px; }

/* lado da marca: carrossel de fotos do site + sobreposição escura.
   A 1ª foto também fica no fundo da seção (aparece mesmo sem JavaScript). As demais só são
   baixadas depois que a página carrega (classe .is-on, posta pelo app.js). */
.login-brand {
  --shade: linear-gradient(180deg, rgba(8,8,8,.46) 0%, rgba(8,8,8,.16) 28%, rgba(8,8,8,.30) 52%, rgba(8,8,8,.86) 100%);
  position: relative; overflow: hidden; display: flex; justify-content: center; padding: 40px 28px 44px; color: #fff;
  background: var(--shade), url("/static/img/login-bg.jpg") center 38% / cover no-repeat, #151515;
}
.login-brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand); z-index: 2; }
.login-slides { position: absolute; inset: 0; z-index: 0; }
.login-slide { --photo: none; position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-in-out; background: var(--shade), var(--photo) var(--pos, center) / cover no-repeat; }
.login-slide.is-active { opacity: 1; }
.login-slide:nth-child(1) { --photo: url("/static/img/login-bg.jpg"); --pos: center 38%; }
.login-slides.is-on .login-slide:nth-child(2) { --photo: url("/static/img/login-bg-2.jpg"); --pos: center 55%; }
.login-slides.is-on .login-slide:nth-child(3) { --photo: url("/static/img/login-bg-3.jpg"); --pos: center 45%; }
.login-slides.is-on .login-slide:nth-child(4) { --photo: url("/static/img/login-bg-4.jpg"); --pos: center 50%; }
@media (prefers-reduced-motion: reduce) { .login-slide { transition: none; } }
.login-brand-inner { position: relative; z-index: 1; width: min(410px, 100%); min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 32px; }
.login-access { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.login-logo { height: 112px; width: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.login-card {
  --surface: rgba(255,255,255,.07); --surface-2: rgba(255,255,255,.1); --text: #fff; --muted: #C9CCD0; --border: rgba(255,255,255,.2);
  width: 100%; padding: 30px 28px 24px; border-radius: 18px; color: var(--text);
  background: rgba(12,12,12,.62); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.login-card h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 4px; }
.login-card-sub { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }
.login-card .field + .field { margin-top: 14px; }
.login-card input { min-height: 46px; }
.login-card input::placeholder { color: rgba(255,255,255,.45); }
.login-card .form-error { background: rgba(200,30,30,.22); color: #FFB4B4; }
.login-card .callout.ok { background: rgba(76,195,138,.16); color: #CFF5E1; }
.btn-block { width: 100%; margin-top: 22px; padding: 14px 16px; font-size: 1rem; }
.login-help { text-align: center; color: var(--muted); font-size: .84rem; margin: 16px 0 0; }
.login-secure { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255,255,255,.72); margin: 0; }
.login-secure svg.i { width: 15px; height: 15px; }

@media (max-width: 1100px) { .login-info { --lpx: 36px; padding: 32px var(--lpx) 0; } .lv-float { right: 8px; } }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { --shade: linear-gradient(180deg, rgba(8,8,8,.30) 0%, rgba(8,8,8,.5) 50%, rgba(8,8,8,.85) 100%); order: -1; padding: 36px 16px 44px; background-image: var(--shade), url("/static/img/login-bg-sm.jpg"); }
  .login-slide:nth-child(1) { --photo: url("/static/img/login-bg-sm.jpg"); }
  .login-slides.is-on .login-slide:nth-child(2) { --photo: url("/static/img/login-bg-2-sm.jpg"); }
  .login-slides.is-on .login-slide:nth-child(3) { --photo: url("/static/img/login-bg-3-sm.jpg"); }
  .login-slides.is-on .login-slide:nth-child(4) { --photo: url("/static/img/login-bg-4-sm.jpg"); }
  .login-logo { height: 92px; }
  .login-info { --lpx: 16px; padding: 28px var(--lpx) 0; }
  .login-pitch { margin: 28px 0; }
  .login-pitch h1 { font-size: 1.9rem; }
  .login-visual { max-width: 100%; }
  .lv-float { position: static; margin-top: 12px; width: fit-content; }
  .login-footer { flex-direction: column-reverse; align-items: center; text-align: center; }
}
@media (max-width: 420px) { .lv-kpis strong { font-size: .9rem; } .login-card { padding: 24px 18px 20px; } }

.pw-reveal { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; padding: 14px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); text-align: center; letter-spacing: .05em; user-select: all; }
