:root {
  color-scheme: light dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
  --brand: #0041f2;
  --surface: #fff;
  --canvas: #f4f7fb;
  --text: #172235;
  --muted: #64748b;
  --border: #dfe6ef;
  --danger: #b42346;
}

* { box-sizing: border-box; }

body {
  background: radial-gradient(circle at 90% 5%, #e8efff, transparent 24rem), var(--canvas);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

.shell {
  display: grid;
  min-height: 100vh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  place-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  box-shadow: 0 22px 55px rgba(23, 34, 53, .12);
  max-width: 30rem;
  padding: clamp(1.25rem, 5vw, 2rem);
  width: 100%;
}

.brand {
  align-items: center;
  background: var(--brand);
  border-radius: .75rem;
  color: #fff;
  display: flex;
  font-size: 1.5rem;
  font-weight: 800;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.eyebrow {
  color: var(--brand);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin: 1.25rem 0 .35rem;
  text-transform: uppercase;
}

h1 { font-size: 1.55rem; margin: 0; }
.copy, .hint { color: var(--muted); line-height: 1.5; }
.hint { font-size: .8rem; margin: 1.25rem 0 0; }

form { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; font-size: .82rem; font-weight: 700; gap: .4rem; }

input, button {
  border: 1px solid var(--border);
  border-radius: .4rem;
  font: inherit;
  min-height: 2.75rem;
  padding: .7rem .8rem;
}

input { background: var(--surface); color: var(--text); }
input:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 65, 242, .24); outline-offset: 1px; }

button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

button.secondary { background: transparent; color: var(--brand); margin-top: .75rem; width: 100%; }
button:disabled { cursor: wait; opacity: .55; }

.status { color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 1rem; min-height: 1.25rem; }
.status.is-error { color: var(--danger); }

@media (prefers-color-scheme: dark) {
  :root { --surface: #151c28; --canvas: #0c111b; --text: #edf2f8; --muted: #a8b4c5; --border: #2b3749; }
  body { background: radial-gradient(circle at 90% 5%, rgba(82, 118, 255, .12), transparent 24rem), var(--canvas); }
}
