/* The gateway's login page (#5173, two halves #5228; the picture, the code in six cells and no blue: #5512, built on #5517): on the left a picture on its own black with harnsy's logo on top and a line at the bottom; on the right the form. On a phone the picture is a 250 px header. Dark by default like the dashboard, light by the browser's setting; the left half is black in both. 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;
  --red: #f19c9c; --red-soft: #3d2222; --warn: #e1b25a; --ok: #86c99a;
  --art-bg: #050608; --art-ink: #ffffff; --art-mu: #9aa3ab; /* the picture's own black: no seam when the half is wider than the picture */
  --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;
    --red: #bf1f2b; --red-soft: #ffebe9; --warn: #875c00; --ok: #1a7232;
  }
}
/* No blue (#5512): the main button and the focus are ink, like the site's main button. */
:root { --accent: var(--text); --accent-soft: color-mix(in srgb, var(--text) 16%, transparent); --on-accent: var(--panel); }
* { 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: var(--art-bg); color: var(--art-ink); padding: 36px 48px 44px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.art picture, .art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.art img { object-fit: cover; object-position: 50% 0; }
.art::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--art-bg) 70%); } /* the words always stand on black */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -.01em; position: relative; z-index: 1; }
.words { position: relative; z-index: 1; margin-top: auto; max-width: 470px; }
.art h2 { margin: 0; font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; white-space: pre-line; }
.art p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--art-mu); max-width: 430px; }
.art p:empty { display: none; }

.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, a.btn { 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, a.btn.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; }
/* The code's six cells: code6.css, one look with the dashboard (#5524). */
.qrrow { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
/* №3 #6062: on the phone that will hold the codes, the same secret opens in its app; the QR and the key stay. */
a.btn { text-decoration: none; margin: 0 0 18px; }
.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%; height: 250px; padding: 16px 20px 18px; flex: none; }
  .art::after { inset: 35% 0 0; }
  .art img { object-position: 50% 30%; }
  .art h2 { font-size: 23px; line-height: 1.15; }
  .art p { display: none; }
  .form { padding: 8px 20px 24px; }
  .top { position: absolute; top: 14px; right: 16px; z-index: 2; }
  .top select { background: rgba(20, 22, 26, .7); color: #fff; border-color: rgba(255, 255, 255, .2); }
  .top .mu { color: rgba(255, 255, 255, .75); }
  .inner { margin: 0; padding: 14px 0; max-width: none; }
  h1 { font-size: 24px; }
}
