:root {
  color-scheme: dark;
  --bg: #101214;
  --surface: #171a1d;
  --surface-2: #202428;
  --ink: #d8d6d0;
  --muted: #999a98;
  --line: #555a5e;
  --accent: #b9a7e8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--bg); }
a { color: inherit; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.auth-card {
  width: min(100%, 590px);
  padding: clamp(30px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 42px; text-decoration: none; font-size: 1.1rem; font-weight: 850; }
.brand img { width: 38px; height: 38px; padding: 6px; border-radius: 7px; background: #080a0c; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.25rem, 7vw, 3.8rem); line-height: 0.98; letter-spacing: -0.045em; }
.intro { margin: 18px 0 0; color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 9px; margin-top: 28px; }
label { margin-top: 8px; color: #b9b9b5; font-size: 0.86rem; font-weight: 750; }
input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #111416;
  font: inherit;
}
input:focus { outline: 3px solid rgb(185 167 232 / 32%); border-color: var(--accent); }
.field-help { margin: 4px 0 0; color: #777b7e; font-size: 0.78rem; line-height: 1.45; }
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: #080a0c; background: var(--accent); border-color: var(--accent); }
.button:hover,
.button:focus-visible { color: #080a0c; background: var(--ink); }
.button:focus-visible,
.brand:focus-visible,
.text-link:focus-visible { outline: 3px solid rgb(185 167 232 / 36%); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: 0.65; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; }
.text-link { color: var(--accent); font-size: 0.88rem; font-weight: 750; text-underline-offset: 4px; }
.status { min-height: 1.5em; margin: 20px 0 0; color: #c5b9e2; font-size: 0.9rem; line-height: 1.55; }
.status[data-kind="error"] { color: #e4aaa7; }
.status[data-kind="success"] { padding: 14px 15px; border-left: 3px solid var(--accent); color: #c9c7c2; background: var(--surface-2); }
.privacy-note { margin: 24px 0 0; color: #777b7e; font-size: 0.8rem; line-height: 1.5; }
.status-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 24px; border-radius: 9px; color: #080a0c; background: var(--accent); font-size: 1.5rem; font-weight: 900; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.confirm-actions .button { margin-top: 0; }
.has-error .status-icon { background: #b5a4df; }
[hidden] { display: none !important; }

@media (max-width: 500px) {
  .auth-links { display: grid; }
  .confirm-actions,
  .confirm-actions .button { width: 100%; }
}
