:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #6c746f;
  --green: #173d32;
  --green-2: #285f4d;
  --gold: #c59a52;
  --paper: #f5f1e9;
  --line: #ddd7cc;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--green); }
button, input { font: inherit; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: radial-gradient(circle at 85% 5%, rgba(197,154,82,.2), transparent 31%), linear-gradient(135deg, #102c24 0%, #1a493a 100%); }
.auth-card { width: min(100%, 510px); padding: 42px; border: 1px solid rgba(255,255,255,.4); background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.27); }
.setup-card { width: min(100%, 900px); }
.auth-brand { display: inline-grid; line-height: .82; letter-spacing: .19em; margin-bottom: 34px; }
.auth-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 37px; font-weight: 500; }
.auth-brand span { margin-top: 10px; text-align: center; font-size: 11px; letter-spacing: .58em; color: var(--gold); }
.auth-kicker { margin: 0 0 8px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 6vw, 49px); line-height: 1.03; font-weight: 500; }
h1 + p { margin: 18px 0 28px; color: var(--muted); line-height: 1.65; }
form { display: grid; gap: 19px; }
fieldset { min-width: 0; margin: 4px 0; padding: 22px; border: 1px solid var(--line); }
legend { padding: 0 9px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
label { display: grid; gap: 8px; color: #39413d; font-size: 13px; font-weight: 750; }
label small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c9c4ba; border-radius: 2px; color: var(--ink); background: #fff; outline: none; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,154,82,.17); }
.auth-grid { display: grid; gap: 16px; }
.auth-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 22px; border: 0; border-radius: 2px; color: #fff; background: var(--green); font-weight: 800; text-decoration: none; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.auth-button:hover { background: var(--green-2); transform: translateY(-1px); }
.auth-alert { margin: 0 0 21px; padding: 13px 15px; border-left: 3px solid; font-size: 13px; line-height: 1.5; }
.auth-alert.error { border-color: #b14c43; color: #722d27; background: #f8e8e5; }
.auth-alert.success { border-color: #3f8469; color: #245d48; background: #e3f2eb; }
.auth-check { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--line); background: #fff; }
.auth-check input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.auth-check span { display: grid; gap: 4px; }
.auth-check strong { color: var(--ink); }
.auth-foot { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.auth-online { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #4e9e7e; box-shadow: 0 0 0 3px rgba(78,158,126,.15); }
@media (max-width: 720px) {
  .auth-shell { padding: 0; place-items: stretch; background: var(--paper); }
  .auth-card { width: 100%; min-height: 100vh; padding: 34px 22px; border: 0; box-shadow: none; }
  .auth-grid.two, .auth-grid.three { grid-template-columns: 1fr; }
  fieldset { padding: 18px 15px; }
}
