/* Interport 360 — shared look for sign-in pages and Settings (DG Matrix: Ink Navy, Brand Blue, Libre Franklin). */
:root {
  --ink: #09132B; --brand: #005CFF; --sky: #C4D2E8; --lime: #B3D843; --kicker: #4F6FD8;
  --bg: #F4F7FB; --panel: #FFFFFF; --panel-2: #F4F7FB; --line: #DCE3EE; --fg: #182036; --muted: #5B6478; --chip: #EAF1FF; --chip-fg: #1E2761; --link: #005CFF;
  --ok: #0E6E3A; --ok-bg: #E6F4EA; --warn: #8A5A00; --warn-bg: #FFF4D6; --err: #C4351A; --err-bg: #FDECE8;
  --shadow: 0 1px 2px rgba(9, 19, 43, .08), 0 4px 14px rgba(9, 19, 43, .06);
  --font: 'Libre Franklin', Calibri, Arial, sans-serif; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #060C1D; --panel: #0B1430; --panel-2: #0F1A39; --line: #1C2848; --fg: #E7ECF6; --muted: #9BA7C0; --chip: #13224A; --chip-fg: #C9D7F5; --link: #7AA5FF; --kicker: #8EA3EC;
  --ok: #7FD69A; --ok-bg: #12301F; --warn: #F2C062; --warn-bg: #33270C; --err: #FF9C86; --err-bg: #3A1513; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #060C1D; --panel: #0B1430; --panel-2: #0F1A39; --line: #1C2848; --fg: #E7ECF6; --muted: #9BA7C0; --chip: #13224A; --chip-fg: #C9D7F5; --link: #7AA5FF; --kicker: #8EA3EC;
  --ok: #7FD69A; --ok-bg: #12301F; --warn: #F2C062; --warn-bg: #33270C; --err: #FF9C86; --err-bg: #3A1513; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.45 var(--font); color: var(--fg); background: var(--bg); }
[hidden] { display: none !important; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── sign-in pages: navy hero with one card ── */
body.hero { background: var(--ink); background-image: radial-gradient(60vmax 60vmax at 0% 100%, rgba(0, 92, 255, .38), rgba(0, 92, 255, 0) 60%); display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; }
.hero > header { padding: 26px max(16px, 4vw) 0; }
.hero > header svg { height: 24px; width: auto; display: block; }
.hero > main { display: grid; place-items: center; padding: 24px 16px; }
.wrap { width: min(440px, 100%); display: grid; gap: 22px; }
.intro .proj { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.intro h1 { margin: 8px 0 0; font-weight: 200; font-size: 38px; line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.intro h1 b { font-weight: 700; }
.intro p { margin: 10px 0 0; color: var(--sky); font-size: 14.5px; }
.card { background: var(--panel); border-radius: 12px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hero > footer { padding: 18px max(16px, 4vw) 24px; color: var(--sky); font-size: 12px; }
.hero > footer b { color: #fff; font-weight: 600; }
.sig::before { content: ""; display: inline-block; vertical-align: middle; width: 18px; height: 2px; margin-right: 8px; background: var(--lime); }

/* ── form controls ── */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.field .hint { font-weight: 500; letter-spacing: 0; }
.input { width: 100%; font: 500 15px/1.2 var(--font); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
.input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input.code { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.pw { position: relative; }
.pw .input { padding-right: 64px; }
.pw .show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font: 600 12px var(--font); padding: 6px 8px; cursor: pointer; border-radius: 6px; }
.meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--err); transition: width .2s, background .2s; }
.btn { border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 14px 16px; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.btn.danger { background: var(--err); color: #fff; }
.btn.small { padding: 9px 12px; font-size: 12px; letter-spacing: .04em; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--link); font: 600 13px var(--font); cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.msg { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.msg.err { background: var(--err-bg); color: var(--err); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.step { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; border-radius: 6px; padding: 9px 8px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }
.note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.popup { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; max-width: min(440px, calc(100% - 32px)); background: var(--panel); color: var(--fg); box-shadow: 0 24px 60px rgba(9, 19, 43, .45); }
.popup::backdrop { background: rgba(9, 19, 43, .62); }
.popup .kick { margin: 0 0 4px; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.popup h2 { margin: 0 0 10px; font-size: 24px; font-weight: 300; } .popup h2 b { font-weight: 700; }
.popup p { line-height: 1.5; } .popup .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; } .popup .row .btn { text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); z-index: 50; max-width: calc(100% - 32px); }
.toast.err { background: var(--err); }
@media (max-width: 480px) { .intro h1 { font-size: 30px; } .card { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
