/* The gateway's login page (#5173, the design the human picked on #5228: V1 «two halves»): on the left a blue half with a large line, what the server promises and harnsy's mark as a net; on the right the form. On a phone the left half is a short header. Dark by default like the dashboard, light by the browser's setting. Everything ships in the binary: no font, picture or script from outside. */
:root {
  color-scheme: dark light;
  --bg: #111317; --panel: #1c1f25; --line: #343a44; --line-soft: #292e36;
  --text: #eef0f3; --text-2: #bdc3cc; --muted: #98a2af;
  --accent: #9bc2ff; --accent-soft: #263c5c; --on-accent: #111317; --red: #f19c9c; --red-soft: #3d2222; --warn: #e1b25a; --ok: #86c99a;
  --art-a: #0d1524; --art-b: #1b3157; --art-ink: #eef0f3; --art-mu: rgba(238, 240, 243, .66);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa; --panel: #ffffff; --line: #d0d7de; --line-soft: #eaeef2;
    --text: #1f2328; --text-2: #424a53; --muted: #5c6670;
    --accent: #0a5fc4; --accent-soft: #ddf4ff; --on-accent: #ffffff; --red: #bf1f2b; --red-soft: #ffebe9; --warn: #875c00; --ok: #1a7232;
    --art-a: #0b2a5c; --art-b: #0a5fc4; --art-ink: #ffffff; --art-mu: rgba(255, 255, 255, .72);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--panel); color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.split { display: flex; min-height: 100%; }

.art { width: 46%; background: linear-gradient(150deg, var(--art-a), var(--art-b)); color: var(--art-ink); padding: 36px 40px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.art .net { position: absolute; right: -120px; top: -130px; width: 440px; height: 440px; opacity: .45; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; position: relative; }
.art h2 { font-size: 38px; line-height: 1.12; letter-spacing: -.025em; margin: auto 0 14px; font-weight: 650; max-width: 440px; white-space: pre-line; position: relative; }
.art p { color: var(--art-mu); font-size: 16px; margin: 0 0 22px; max-width: 400px; position: relative; }
.art p:empty { display: none; }
.art ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; position: relative; }
.art li { display: flex; gap: 8px; align-items: center; }
.trust { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--art-mu); flex-wrap: wrap; margin-top: auto; padding-top: 28px; position: relative; }
.trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.trust svg.i { width: 14px; height: 14px; }

.form { flex: 1; display: flex; flex-direction: column; padding: 24px 56px 32px; min-width: 0; background: var(--panel); }
.top { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.fill { flex: 1; }
.mu { color: var(--muted); font-size: 12.5px; }
.inner { margin: auto 0; max-width: 420px; width: 100%; align-self: center; padding: 24px 0; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--accent); }

h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; letter-spacing: -.015em; font-weight: 650; }
.lead { color: var(--text-2); margin: 0 0 20px; }
.hint { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.hint.with-icon { display: flex; gap: 6px; align-items: center; }
.hint.with-icon:has(#claim-left[hidden]) { display: none; }
form { display: grid; gap: 6px; }
label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 10px; }
input, select { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button { width: 100%; min-height: 46px; margin-top: 18px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 15px/1.2 var(--sans); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.say { margin: 16px 0 0; padding: 9px 12px; border: 1px solid var(--red); border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 13.5px; }
.say.wait { border-color: var(--warn); background: none; color: var(--warn); }
.top select { width: auto; min-height: 34px; padding: 5px 10px; font-size: 12.5px; color: var(--muted); border-color: transparent; background: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin: 6px 0 4px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.mono, code { font-family: var(--mono); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 22px 0 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
/* «that was not you?» opens what to do about it: the reset command is not
   shown to someone who only came to sign in. */
.notyou { margin: 22px 0 0; }
.notyou > summary { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--muted); font-size: 12.5px; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.notyou > summary::-webkit-details-marker { display: none; }
.notyou > summary::before, .notyou > summary::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.notyou > summary:hover, .notyou[open] > summary { color: var(--text); }
.notyou > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cmd { font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 12px; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cmd code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cmd .copy { width: auto; min-height: 32px; margin: 0; padding: 4px 10px; border-color: transparent; background: none; color: var(--accent); font-size: 12.5px; font-weight: 500; }
.opt { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; font-weight: 400; color: var(--text); position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt:has(input:disabled) { opacity: .6; cursor: default; }
.opt .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opt b { font-size: 14.5px; font-weight: 600; }
.opt small { font-size: 12.5px; color: var(--muted); }
.tag { font-style: normal; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
input.code { font-family: var(--mono); font-size: 20px; letter-spacing: .3em; text-align: center; }
.qrrow { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
.qr { width: 148px; height: 148px; flex: none; border-radius: 8px; background: #fff; padding: 6px; }
.key { margin: 4px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.hint.first { margin-top: 0; }
#login-or { margin: 18px 0 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 850px) {
  .split { flex-direction: column; }
  .art { width: 100%; padding: 18px 20px 16px; flex: none; }
  .art h2 { font-size: 22px; margin: 14px 0 4px; }
  .art p { font-size: 13.5px; margin: 0; }
  .art ul, .trust { display: none; }
  .art .net { width: 200px; height: 200px; right: -50px; top: -50px; }
  .form { padding: 12px 20px 24px; }
  .inner { margin: 0; padding: 12px 0; max-width: none; }
}
