/* The console's type and colour, inlined so the sign-in page stands alone: Geist and Geist Mono from the same
   self-hosted files (static/console/app.css), and the console's ink, ground, line and orbit-blue accent. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/fonts/geist-latin-300-600.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/geist-mono-latin-400-500.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --orbit-blue: #1766D2;
  --ink: #111111;
  --ground: #F7F4EF;
  --ledger: #5B6472;
  --line: rgb(17 17 17 / 18%);
  --line-strong: rgb(17 17 17 / 42%);
  --veil: rgb(17 17 17 / 4%);
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 22px 80px rgb(17 17 17 / 12%);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  /* Geist Mono ships 400-500 only: never smear a heavier weight into a faux bold. */
  font-synthesis-weight: none;
  background:
    linear-gradient(90deg, rgb(17 17 17 / 5%) 1px, transparent 1px),
    linear-gradient(180deg, rgb(17 17 17 / 4%) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-repeat: repeat, repeat;
  background-color: var(--ground);
}
.signin-card {
  width: min(30rem, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(247 244 239 / 92%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 44px;
  height: auto;
  flex: none;
  mix-blend-mode: multiply;  /* the raster carries a paper-white ground, as in the console */
}
.brand-word {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
}
.brand-word a { color: inherit; text-decoration: none; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--orbit-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.95;
  letter-spacing: 0;
}
.lede {
  margin: 10px 0 0;
  color: var(--ledger);
  font-size: 14px;
  line-height: 1.5;
}
.signin-field { display: grid; gap: 5px; margin: 0; }
.signin-field[hidden] { display: none; }
.signin-field span {
  color: var(--ledger);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.signin-field input, .signin-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(247 244 239 / 60%);
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
  outline: none;
}
.signin-field input:focus, .signin-field select:focus {
  border-color: var(--orbit-blue);
  box-shadow: 0 0 0 1px var(--orbit-blue);
}
.signin-submit {
  margin-top: 12px;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--orbit-blue);
  border-radius: 6px;
  background: var(--orbit-blue);
  color: var(--ground);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
/* The console's primary button: orbit blue, ink on hover. */
.signin-submit:hover { background: var(--ink); border-color: var(--ink); }
.signin-submit:focus-visible { outline: 2px solid var(--orbit-blue); outline-offset: 2px; }
.signin-submit:disabled { opacity: 0.6; cursor: wait; }
.signin-status {
  margin-top: 10px;
  min-height: 1.2rem;
  color: var(--ledger);
  font-size: 13px;
  line-height: 1.45;
}
.signin-divider { display: flex; align-items: center; gap: 12px; color: var(--ledger); font-size: 12px; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.wallet-signin { display: grid; gap: 10px; min-width: 0; }
.wallet-submit { margin-top: 0; color: var(--ink); background: transparent; border-color: var(--line-strong); }
.wallet-submit:hover { color: var(--ground); }
.wallet-help { margin: 0; color: var(--ledger); font-size: 12px; line-height: 1.5; }
.wallet-signin .signin-status { margin-top: 0; overflow-wrap: anywhere; }
.wallet-cancel { justify-self: start; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.wallet-cancel:hover { border-color: var(--orbit-blue); }
.wallet-check { justify-self: start; min-height: 36px; display: inline-flex; align-items: center; font-size: 13px; }
.signin-field select { min-height: 44px; text-overflow: ellipsis; }
/* A neutral notice (signed out): the orbit-blue rule, where a failure gets ink. */
.signin-notice {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orbit-blue);
  border-radius: 6px;
  background: var(--veil);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.signin-expired {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);  /* the console's failure rule: ink, never colour alone */
  border-radius: 6px;
  background: var(--veil);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.signin-fine {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.signin-fine p {
  margin: 0;
  color: var(--ledger);
  font-size: 12px;
  line-height: 1.5;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip-row a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgb(247 244 239 / 60%);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}
.chip-row a:hover { border-color: var(--orbit-blue); color: var(--orbit-blue); }
a { color: var(--orbit-blue); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--orbit-blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.quick-signin { display: grid; gap: 10px; min-width: 0; }
.quick-signin .signin-submit, .quick-signin .signin-status { margin-top: 0; }
.signin-text-button { border: 0; background: none; color: var(--orbit-blue); font: inherit; font-size: 13px; min-height: 36px; cursor: pointer; }
.signin-text-button:disabled { opacity: .6; cursor: wait; }
.social-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.social-options .signin-submit { font-size: 14px; padding: 8px; }
