/* Genesis native sign-in. Dark on purpose, including when the device is in light mode. */
:root {
  color-scheme: dark;
  --bg: #0d0e10;
  --ink: #f5f3ef;
  --muted: #ddd6c8;
  --faint: #c8bfb0;
  --gold: #d9ba78;
  --gold-deep: #c9a157;
  --line: #444750;
  --card: #18191d;
  --field: #111214;
  --danger: #ffd0d0;
  --danger-bg: #3a2226;
  --ok: #d7f5df;
  --focus: #f3d48a;
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
  html, body { background: #0d0e10; color: #f5f3ef; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0d0e10; color: #f5f3ef; }
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  background:
    radial-gradient(880px 460px at 8% 0%, rgba(201, 161, 87, .18), transparent 62%),
    radial-gradient(640px 380px at 100% 100%, rgba(244, 239, 232, .06), transparent 55%),
    var(--bg);
}
button, input { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.shell {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 12px;
  margin-bottom: 22px;
}
.mark {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45));
}
.word {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.05;
}
.lede {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 20px 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .4);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 { font-size: 32px; }
h2 { font-size: 26px; }
.sub { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
label, .label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
input:not([type]),
input[type="text"], input[type="password"], input[type="email"] {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  padding: 0 14px;
  font-size: 16px;
}
input::placeholder { color: var(--faint); }
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-deep); }
.primary, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 750;
  font-size: 16px;
}
.primary { background: linear-gradient(180deg, #f3d7a0, var(--gold-deep)); color: #1b1408; }
.primary:disabled, .ghost:disabled { opacity: .6; cursor: wait; }
.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}
.linkish {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.error {
  min-height: 1.3em;
  margin: 12px 0 0;
  padding: 0;
  color: var(--danger);
  font-size: 15px;
  font-weight: 650;
}
.error:not(:empty) {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-bg);
}
.fine {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.step { display: none; }
.step.on { display: block; }
.code-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.code-row input {
  height: 58px;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}
.qr-frame {
  display: grid;
  place-items: center;
  width: min(240px, 100%);
  margin: 8px auto 16px;
  padding: 16px;
  border-radius: 18px;
  background: #f4efe8;
  color: #1b1408;
}
.qr-frame svg { width: 100%; height: auto; display: block; }
.manual {
  display: flex;
  gap: 8px;
  align-items: center;
}
.manual code {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: .04em;
  word-break: break-all;
}
.codes {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.codes li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--field);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
}
.warning {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(201, 161, 87, .12);
  color: var(--ink);
  font-size: 15px;
}
.people { display: grid; gap: 10px; margin-top: 8px; }
.person {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0e0f13;
}
.person strong { display: block; font-size: 16px; }
.person span { color: var(--muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions button, .small {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1a1b20;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.stack { display: grid; gap: 18px; }
.audit { margin: 8px 0 0; padding: 0; list-style: none; }
.audit li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 960px) {
  .shell.wide {
    width: min(1080px, calc(100% - 64px));
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 440px;
    gap: 72px;
    align-items: center;
    padding: 48px 0;
  }
  .shell.wide .brand { align-items: center; text-align: left; margin: 0; }
  .shell.wide .mark { width: 96px; height: 96px; flex-basis: 96px; }
  .shell.wide .word { font-size: 40px; }
  .admin-shell { width: min(760px, calc(100% - 48px)); padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
