:root {
  color-scheme: light;
  --auth-green: #1c5a45;
  --auth-brass: #9c8150;
  --auth-ink: #111a16;
  --auth-paper: #f3f4f1;
  --auth-sage: #e4ece7;
  --auth-muted: #52645b;
  --auth-error: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--auth-paper); color: var(--auth-ink); font-family: Inter, system-ui, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.auth-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.auth-mobile-title { margin: 0; text-align: center; font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.auth-layout { width: 100%; max-width: 70rem; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 2rem 0; }
.auth-description { display: none; }
.auth-access { min-width: 0; width: 100%; max-width: 28rem; margin-inline: auto; }
.auth-heading { margin: 0; font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.auth-subtitle { margin: .25rem 0 0; color: var(--auth-muted); font-size: .875rem; line-height: 1.5; }
.auth-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.auth-label { display: block; font-size: .875rem; line-height: 1.5; font-weight: 500; }
.auth-input { display: block; width: 100%; min-width: 0; margin-top: .5rem; padding: .625rem .75rem; border: 1px solid #b9c9bf; border-radius: .5rem; background: #fff; color: var(--auth-ink); font-size: .875rem; line-height: 1.5; outline: none; }
.auth-input:focus { border-color: var(--auth-green); box-shadow: 0 0 0 3px #1c5a4526; }
.auth-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.625rem; padding: .625rem 1rem; border: 1px solid transparent; border-radius: .5rem; font-size: .875rem; line-height: 1.5; font-weight: 600; cursor: pointer; }
.auth-button-primary { color: #fff; background: var(--auth-green); }
.auth-button-primary:hover { background: #174b39; }
.auth-button-muted { background: #fff; color: var(--auth-ink); border-color: #b9c9bf; }
.auth-button:disabled { opacity: .65; cursor: wait; }
.auth-button:focus-visible, .auth-link:focus-visible { outline: 3px solid var(--auth-brass); outline-offset: 3px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.25rem; }
.auth-link { display: inline-flex; align-items: center; min-height: 2rem; padding: .25rem 0; border: 0; background: transparent; color: var(--auth-green); font-size: .875rem; line-height: 1.5; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.auth-note { margin: .5rem 0 0; color: var(--auth-muted); font-size: .75rem; line-height: 1.5; }
.auth-status { margin: 0; color: var(--auth-green); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.auth-status:empty { display: none; }
.auth-status[data-error="true"] { color: var(--auth-error); }
.auth-notice { margin: 1rem 0 0; padding: .75rem; border: 1px solid #c4d5c9; border-radius: .5rem; background: var(--auth-sage); font-size: .875rem; line-height: 1.5; }
.auth-details { display: grid; gap: .5rem; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.auth-details dt { font-weight: 500; }
.auth-details dd { margin: 0; color: var(--auth-muted); }
.auth-dialog { width: min(28rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.5rem; border: 1px solid #b9c9bf; border-radius: .75rem; color: var(--auth-ink); background: var(--auth-paper); }
.auth-dialog::backdrop { background: #111a1680; }
.auth-dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.auth-dialog-actions > button { flex: 1; }
@media (min-width: 1024px) {
  .auth-shell { padding: 2.5rem 2rem; }
  .auth-mobile-title { display: none; }
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; padding: 0; }
  .auth-description { display: block; padding: 2rem; }
  .auth-brand { display: inline-flex; margin: 0 0 .75rem; padding: .25rem .75rem; border-radius: 999px; color: var(--auth-green); background: var(--auth-sage); font-size: .75rem; line-height: 1.5; font-weight: 600; }
  .auth-description h1 { margin: 0; font-size: 1.875rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
  .auth-description p:not(.auth-brand) { margin: 1rem 0 0; color: var(--auth-muted); font-size: .875rem; line-height: 1.625; }
  .auth-description ul { margin: 2rem 0 0; padding-left: 1.25rem; color: var(--auth-muted); font-size: .875rem; line-height: 1.5; }
  .auth-description li + li { margin-top: .75rem; }
  .auth-description li::marker { color: var(--auth-brass); }
  .auth-access { padding: 2rem; border: 1px solid #d1ddd5; border-radius: .75rem; background: #fff; box-shadow: 0 8px 30px #111a160f; }
}
