/* Central de Câmeras — identidade visual Construtora Terraço (Manual de Marca 2025)
   Cores institucionais: vermelho #e2051a · azul-marinho #1b213e · cinza escuro #373435 · cinza claro #cfcfcf
   Tipografia: Poppins. Atributos: formas simples, arredondado + robusto, composições opacas e sóbrias. */

@font-face { font-family: 'Poppins'; font-weight: 300; font-display: swap; src: url(/fonts/poppins-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url(/fonts/poppins-latin-800-normal.woff2) format('woff2'); }

:root {
  /* marca */
  --t-red: #e2051a;
  --t-blue: #2f6fed;
  --t-blue-hover: #4b82f5;
  --t-navy: #1b213e;
  --t-graphite: #373435;
  --t-gray: #cfcfcf;
  /* superfícies (tons do azul-marinho institucional) */
  --bg: #11152a;
  --bg-2: #161b35;
  --panel: #1b213e;
  --panel-2: #232a4e;
  --line: #2d355e;
  --line-2: #3a4372;
  /* texto */
  --text: #ffffff;
  --muted: #cfcfcf;
  --dim: #8e94b3;
  /* ação e estados */
  --accent: #e2051a;
  --accent-hover: #f2202f;
  --ok: #27c26c;
  --warn: #f4a51c;
  --bad: #e2051a;
  --radius: 12px;
  --sans: 'Poppins', Arial, Calibri, sans-serif;
  --mono: 'Poppins', Arial, sans-serif;
  --band: linear-gradient(90deg, var(--t-red) 0%, var(--t-red) 35%, var(--t-navy) 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: #ff5a68; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
mark { background: var(--t-red); color: #fff; border-radius: 3px; padding: 0 2px; }

/* ---------- Barra superior (inspirada no cabeçalho do Boletim Terraço) */
.topbar {
  height: 64px; display: flex; align-items: stretch; gap: 0; padding: 0;
  background: var(--t-navy); position: sticky; top: 0; z-index: 20;
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--band); }
.topbar .brand-block {
  background: var(--t-red); display: flex; align-items: center; padding: 0 46px 0 22px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
}
.topbar .brand-block img { height: 26px; display: block; }
.topbar .product { display: flex; flex-direction: column; justify-content: center; padding: 0 18px 0 6px; line-height: 1.15; }
.topbar .product b { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.topbar .product span { font-size: 11px; color: var(--muted); font-weight: 300; }
.topbar .inner { display: flex; align-items: center; gap: 18px; flex: 1; padding-right: 18px; }
.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-weight: 500; }
.nav a:hover { color: #fff; background: var(--panel-2); }
.nav a.active { color: #fff; background: var(--panel-2); box-shadow: inset 0 -3px 0 var(--t-red); }
.spacer { flex: 1; }
.clock { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; text-align: right; line-height: 1.1; }
.clock small { display: block; color: var(--muted); font-size: 11px; font-weight: 300; }
.engine { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.user-menu { position: relative; }
.user-btn { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.user-btn .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--t-red); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-btn small { color: var(--muted); display: block; font-size: 11px; line-height: 1.1; font-weight: 300; }
.dropdown { position: absolute; right: 0; top: 48px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; min-width: 200px; padding: 6px; box-shadow: 0 14px 30px #0008; }
.dropdown button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.dropdown button:hover { background: var(--panel-2); }

/* ---------- Layout */
.page { padding: 22px; max-width: 1840px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); font-size: 13px; font-weight: 300; }
.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #ff5a68; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; font-size: 12px; color: var(--muted); }
.stat b { font-size: 16px; color: var(--text); margin-right: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat.ok b { color: var(--ok); } .stat.bad b { color: #ff4655; }

/* ---------- Botões e campos */
.btn { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 16px; cursor: pointer; white-space: nowrap; font-weight: 500; }
.btn:hover { border-color: var(--t-gray); }
a.btn { color: var(--text); display: inline-block; }
.btn.primary { background: var(--t-red); border-color: var(--t-red); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.blue { background: var(--t-blue); border-color: var(--t-blue); color: #fff; font-weight: 600; }
.btn.blue:hover { background: var(--t-blue-hover); border-color: var(--t-blue-hover); }
.btn.danger { color: #ff5a68; }
.btn.danger:hover { border-color: var(--t-red); }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { background: var(--t-navy); border: 1px solid var(--line-2); color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--t-red); border-color: var(--t-red); }
.icon-btn.on { background: var(--t-red); border-color: var(--t-red); }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--t-red); box-shadow: 0 0 0 3px #e2051a33; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; font-weight: 500; }
label.field > span b { color: #ff4655; }
.hint { color: var(--dim); font-size: 12px; margin-top: 4px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 8px; }
.check input { width: 16px; height: 16px; accent-color: var(--t-red); }
.search { max-width: 280px; }

/* ---------- Busca principal do painel */
.searchbar { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 18px; margin-bottom: 16px; }
.searchbar:focus-within { border-color: var(--t-red); box-shadow: 0 0 0 3px #e2051a26; }
.searchbar svg { flex: none; color: var(--muted); }
.searchbar input { border: 0 !important; box-shadow: none !important; background: transparent; font-size: 16px; padding: 10px 4px; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.searchbar .clear { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.searchbar .clear:hover { color: #fff; background: var(--panel-2); }
.searchbar .kbd { font-size: 11px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.searchbar .result { color: var(--muted); font-size: 13px; white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* ---------- Status */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--dim); flex: none; }
.dot.ok { background: var(--ok); }
.dot.bad { background: #ff2e40; }
.dot.warn { background: var(--warn); }
.dot.wait { background: var(--warn); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; font-weight: 500; }
.badge.local { color: #8fe6b4; border-color: #27c26c66; }
.badge.remoto { color: #aab8ff; border-color: #6d7fe066; }
.badge.nuvem { color: #ffcf7a; border-color: #f4a51c66; }
.badge.admin { color: #ff7f8a; border-color: #e2051a88; }

/* ---------- Painel: cards de acesso */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; position: relative; }
.card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--band); opacity: 0; transition: opacity .15s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }
.card .thumb { aspect-ratio: 16/9; background: #080a14; position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb cam-player { display: block; width: 100%; height: 100%; }
.card .thumb cam-player video { width: 100%; height: 100%; object-fit: cover; display: block; background: #080a14; }
.card .thumb .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 9px 10px; pointer-events: none; }
.card .thumb .top, .card .thumb .bottom { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.card .thumb .top .badge { background: var(--t-navy); }
.card .thumb .cam-name { font-size: 11px; font-weight: 600; color: #fff; background: var(--t-navy); padding: 2px 8px; border-radius: 6px; }
.card .thumb .live { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 2px 7px; border-radius: 5px; background: var(--t-red); }
.card .no-signal { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; padding: 20px; background: var(--t-graphite); }
.card .no-signal b { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; font-weight: 600; }
.card .info { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.card .info .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info .meta { color: var(--muted); font-size: 12px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info .grow { flex: 1; min-width: 0; }
.card .info .count { color: var(--muted); font-size: 11px; text-align: right; }
.card .info .count b { color: var(--text); font-size: 18px; display: block; font-weight: 700; line-height: 1.1; }
.card .found { padding: 0 14px 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 2px 9px; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--t-red); }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty b { color: var(--text); display: block; font-size: 16px; margin-bottom: 6px; font-weight: 600; }

/* imagem ainda sem prévia: ocupa espaço (para o carregamento por visibilidade) mas não aparece */
img.off { visibility: hidden; }

/* ---------- Visão "Por local" */
.loc-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.loc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; user-select: none; border-left: 4px solid var(--t-red); }
.loc-head:hover { background: var(--panel-2); }
.loc-head .pin { width: 34px; height: 34px; border-radius: 10px; background: var(--t-red); display: grid; place-items: center; flex: none; }
.loc-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.loc-head .meta { color: var(--muted); font-size: 12px; font-weight: 300; }
.loc-head .chev { margin-left: auto; transition: transform .15s; color: var(--muted); }
.loc-group.closed .chev { transform: rotate(-90deg); }
.loc-group.closed .loc-body { display: none; }
.loc-body { border-top: 1px solid var(--line); }
.acc-row { padding: 12px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.acc-row:last-child { border-bottom: 0; }
.acc-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.acc-line .name { font-weight: 600; font-size: 15px; }
.acc-line .meta { color: var(--muted); font-size: 12px; font-weight: 300; }
.cam-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cam-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; transition: border-color .15s; }
.cam-item:hover { border-color: var(--t-red); }
.cam-item .shot { aspect-ratio: 16/9; background: var(--t-graphite); position: relative; }
.cam-item .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-item .shot .ns { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; padding: 8px; }
.cam-item .cap { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 12px; }
.cam-item .cap .n { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-item .cap .ch { color: var(--dim); font-size: 11px; font-weight: 500; }
.cam-item.match { border-color: #e2051a99; }

/* ---------- Mosaico de câmeras */
.view-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { background: none; border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg button.on { background: var(--t-red); color: #fff; }
.seg-label { padding: 6px 8px; color: var(--dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; align-self: center; font-variant-numeric: tabular-nums; }
.seg button[data-nav] { font-size: 16px; line-height: 1; padding: 6px 10px; color: var(--text); }
.mosaic { display: grid; gap: 6px; background: #070912; padding: 6px; border-radius: var(--radius); border: 1px solid var(--line); height: calc(100vh - 168px); min-height: 360px; }
.tile { position: relative; background: #05070e; border-radius: 8px; overflow: hidden; min-height: 0; border: 1px solid #ffffff12; }
.tile.selected { outline: 2px solid var(--t-red); }
.tile video, .tile img.frame { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tile cam-player { display: block; width: 100%; height: 100%; }
.tile .label { position: absolute; left: 6px; top: 6px; right: 6px; display: flex; gap: 8px; align-items: center; font-size: 12px; pointer-events: none; }
.tile .label > *:not(.dot) { background: var(--t-navy); }
.tile .label .dot { box-shadow: 0 0 0 3px var(--t-navy); }
.tile .label .name { font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.tile .label .ch { color: var(--t-gray); font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 6px; }
.tile .label .main-tag { color: #fff; background: var(--t-red) !important; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; }
.tile .label .st { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .06em; color: #fff; padding: 2px 7px; border-radius: 6px; }
.tile .tools { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.tile:hover .tools { opacity: 1; }
.tile .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 12px; pointer-events: none; }
.tile.empty-slot { display: grid; place-items: center; color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.fullview { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; }
.fullview .bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--t-navy); border-bottom: 3px solid var(--t-red); }
.fullview .stage { flex: 1; position: relative; min-height: 0; }
.fullview .stage cam-player, .fullview .stage video { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Tabelas (admin) */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; padding: 10px 16px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs button.on { color: var(--text); border-color: var(--t-red); font-weight: 600; }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--t-gray); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: var(--bg-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #ffffff06; }
td.actions { text-align: right; white-space: nowrap; }
td .muted, .muted { color: var(--muted); font-size: 12px; font-weight: 300; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Modal */
.modal-bg { position: fixed; inset: 0; background: #070912e6; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; width: min(760px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 50px #000a; overflow: hidden; }
.modal.wide { width: min(1040px, 100%); }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; position: relative; }
.modal header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--band); }
.modal header h2 { margin: 0; font-size: 17px; font-weight: 700; flex: 1; }
.modal .body { padding: 20px; overflow: auto; }
.modal footer { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal footer .left { margin-right: auto; }
.section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #ff5a68; margin: 20px 0 10px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section-title:first-child { margin-top: 0; }
.notice { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 10px; padding: 10px 14px; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.notice.warn { border-color: #f4a51c66; color: #ffd48a; }
.cam-table td { padding: 6px 8px; }
.cam-table input[type=text], .cam-table input[type=number] { padding: 6px 9px; }
.test-result { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); }
.test-result.ok { border-color: #27c26c88; } .test-result.bad { border-color: #e2051a88; }
.test-result img { width: 200px; border-radius: 8px; }
.pick-list { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.pick-list .item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.pick-list .item:last-child { border-bottom: 0; }
.pick-list .item .grow { flex: 1; }

/* ---------- Toast */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--t-gray); padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 30px #000a; max-width: 380px; }
.toast.ok { border-left-color: var(--ok); } .toast.bad { border-left-color: var(--t-red); }

/* ---------- Login (versão positiva da marca, fundo claro como no manual) */
.login-page { background: #f4f4f5; color: var(--t-graphite); min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-side { background: var(--t-navy); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login-side::before { content: ''; position: absolute; top: 0; right: -60px; width: 58%; height: 110px; background: var(--t-red); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.login-side .foot { color: var(--t-gray); font-size: 13px; font-weight: 300; }
.login-side .bar { height: 6px; background: var(--band); margin: 0 -48px -48px; }
.login-main { display: grid; place-items: center; padding: 32px; }
.login-box { width: min(400px, 100%); }
.login-box .logo { height: 40px; margin-bottom: 30px; display: block; }
.login-box h1 { font-size: 26px; font-weight: 700; margin: 0 0 4px; color: var(--t-graphite); }
.login-box p.lead { margin: 0 0 24px; color: #6b686a; font-weight: 300; }
.login-box label.field > span { color: var(--t-graphite); }
.login-box input[type=text], .login-box input[type=password] { background: #fff; border: 1px solid #cfcfcf; color: var(--t-graphite); padding: 12px 14px; }
.login-box input:focus { border-color: var(--t-red); }
.login-box .error { color: var(--t-red); font-size: 13px; min-height: 20px; margin-bottom: 8px; font-weight: 500; }
.login-box .btn { width: 100%; padding: 12px; font-size: 15px; }
.login-box .muted { color: #6b686a; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-side { display: none; }
}
@media (max-width: 760px) {
  .nav, .topbar .product { display: none; }
  .clock small, .engine span { display: none; }
  .mosaic { height: auto; }
  .mosaic .tile { aspect-ratio: 16/9; }
}

/* ===== Login: ilustração lateral e botão "ver senha" ===== */
.login-side .login-art { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.login-side .login-art img { width: min(100%, 420px); height: auto; }

.pass-wrap { position: relative; }
.pass-wrap > input { width: 100%; padding-right: 44px; }
.pass-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; color: #8a90a6; }
.pass-eye:hover { color: var(--t-navy); background: rgba(27,33,62,.06); }
.pass-eye:focus-visible { outline: 2px solid var(--t-red); outline-offset: 1px; }
.pass-eye svg { width: 20px; height: 20px; display: block; }
.pass-eye .eye-off { display: none; }
.pass-eye.on .eye-on { display: none; }
.pass-eye.on .eye-off { display: block; }

@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-side { display: none; }
}
