:root {
  color-scheme: light;
  --canvas: #f3efe6;
  --surface: #fffdf8;
  --ink: #172526;
  --soft: #5a6866;
  --line: #d8d2c5;
  --teal: #176c68;
  --teal-dark: #0e5350;
  --plum: #513853;
  --danger: #9b3936;
  font-family: Inter, Aptos, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #101716;
    --surface: #19231f;
    --ink: #edf3ef;
    --soft: #afbfba;
    --line: #3a4742;
    --teal: #79cfc4;
    --teal-dark: #98e3da;
    --plum: #d5b2d6;
    --danger: #f09790;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 32rem),
    var(--canvas);
  color: var(--ink);
}
.auth-shell {
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: 48px 0;
}
.brand-mark { display: flex; gap: 5px; height: 42px; align-items: end; margin-bottom: 28px; }
.brand-mark span { width: 10px; border-radius: 10px; background: var(--teal); transform: rotate(-12deg); }
.brand-mark span:nth-child(1) { height: 27px; }
.brand-mark span:nth-child(2) { height: 40px; background: var(--plum); }
.brand-mark span:nth-child(3) { height: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font: 700 clamp(3.5rem, 9vw, 6.5rem)/.9 Georgia, serif; letter-spacing: -.055em; }
h2 { margin: 0 0 10px; font: 700 2rem/1.1 Georgia, serif; }
.lede { max-width: 520px; margin: 22px 0; color: var(--soft); font-size: 1.15rem; }
.boundary { max-width: 520px; padding-left: 16px; border-left: 3px solid var(--teal); color: var(--soft); }
.auth-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 22px 60px rgba(21, 37, 34, .13);
  padding: clamp(26px, 5vw, 46px);
}
.help { margin: 0 0 26px; color: var(--soft); line-height: 1.55; }
form { display: grid; gap: 10px; }
label { margin-top: 7px; font-size: .88rem; font-weight: 750; }
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}
input:focus { outline: 3px solid color-mix(in srgb, var(--teal) 28%, transparent); border-color: var(--teal); }
button {
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font: 750 1rem/1 inherit;
  cursor: pointer;
}
button:hover { background: var(--teal-dark); }
button:disabled { opacity: .55; cursor: wait; }
.status { min-height: 1.5em; margin: 18px 0 0; color: var(--danger); font-size: .9rem; }
[hidden] { display: none !important; }
@media (max-width: 740px) {
  .auth-shell { grid-template-columns: 1fr; align-content: center; gap: 28px; padding: 28px 0; }
  .identity .boundary { display: none; }
  h1 { font-size: 3.8rem; }
  .lede { margin-bottom: 0; }
}
