:root {
  color-scheme: light;
  --ink: #172027;
  --muted: #5d6870;
  --line: #d9dfe2;
  --paper: #ffffff;
  --wash: #f3f6f5;
  --green: #176b4d;
  --green-dark: #0e4935;
  --navy: #17324a;
  --danger: #a5362d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); }
button, input { font: inherit; }
a { color: var(--green-dark); }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr); }
.auth-context { background: var(--navy); color: #fff; display: flex; flex-direction: column; min-height: 100vh; padding: clamp(28px, 5vw, 72px); }
.brand { align-items: center; color: #fff; display: inline-flex; gap: 12px; text-decoration: none; width: fit-content; }
.brand-mark { align-items: center; background: #fff; color: var(--navy); display: inline-flex; font-size: 14px; font-weight: 800; height: 42px; justify-content: center; width: 42px; }
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand small { color: #c8d5df; margin-top: 1px; }
.context-copy { margin: auto 0; max-width: 570px; padding: 56px 0; }
.eyebrow { color: #8fd2b6; font-size: 12px; font-weight: 750; text-transform: uppercase; }
h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: 0; margin: 16px 0 24px; }
.context-copy > p:not(.eyebrow) { color: #d9e1e7; font-size: 18px; line-height: 1.65; max-width: 52ch; }
.context-copy ul { display: grid; gap: 12px; list-style: none; margin: 30px 0 0; padding: 0; }
.context-copy li { color: #eef5f2; padding-left: 24px; position: relative; }
.context-copy li::before { color: #8fd2b6; content: "✓"; font-weight: 800; left: 0; position: absolute; }
.independence { color: #aebdc8; font-size: 12px; line-height: 1.5; max-width: 60ch; }
.auth-panel { align-items: center; display: flex; justify-content: center; padding: 28px; }
.auth-box { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 50px rgba(23, 32, 39, 0.09); padding: clamp(24px, 5vw, 48px); width: min(100%, 540px); }
.mode-switch { background: #edf1f0; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 34px; padding: 4px; }
.mode-switch button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-weight: 700; min-height: 42px; }
.mode-switch button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 5px rgba(23, 32, 39, 0.12); color: var(--ink); }
.form-heading { margin-bottom: 26px; }
h2 { font-size: 26px; letter-spacing: 0; margin: 0 0 8px; }
.form-heading p { color: var(--muted); line-height: 1.5; margin: 0; }
form { display: grid; gap: 18px; }
label { color: #36434b; display: grid; font-size: 14px; font-weight: 700; gap: 7px; }
label small { color: var(--muted); font-size: 12px; font-weight: 500; }
input { border: 1px solid #bfc8cc; border-radius: 4px; color: var(--ink); min-height: 46px; padding: 10px 12px; width: 100%; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.14); outline: 0; }
.check-row { align-items: start; display: flex; font-weight: 500; line-height: 1.45; }
.check-row input { flex: 0 0 auto; height: 18px; min-height: 0; margin-top: 2px; width: 18px; }
.primary { background: var(--green); border: 1px solid var(--green); border-radius: 4px; color: #fff; cursor: pointer; font-weight: 750; min-height: 48px; padding: 10px 18px; }
.primary:hover { background: var(--green-dark); }
.primary:disabled { cursor: wait; opacity: 0.65; }
.text-button { background: none; border: 0; color: var(--green-dark); cursor: pointer; justify-self: center; padding: 3px; text-decoration: underline; }
.status { border-left: 4px solid var(--green); background: #eef8f3; color: #164c39; line-height: 1.5; margin: -12px 0 24px; padding: 12px 14px; }
.status.error { background: #fff1f0; border-color: var(--danger); color: #7f2923; }
[hidden] { display: none !important; }

@media (max-width: 800px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-context { min-height: auto; padding: 26px; }
  .context-copy { padding: 48px 0 28px; }
  h1 { font-size: 42px; }
  .auth-panel { padding: 18px; }
  .auth-box { box-shadow: none; }
}
