:root {
  --paper: #f8f7f4;
  --paper-strong: #fffefa;
  --ink: #151515;
  --muted: #706d68;
  --line: #ddd9d1;
  --line-strong: #beb9b0;
  --violet: #7547ff;
  --violet-soft: #eee9ff;
  --violet-wash: #f6f3ff;
  --green: #21885a;
  --amber: #ac671a;
  --red: #ba3d36;
  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --space-1: 0.375rem;
  --space-2: 0.625rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.375rem;
  --space-6: 3.75rem;
  --content-max: 1440px;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--font-sans); }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.auth-shell { align-items: center; display: grid; min-height: 100vh; padding: 1rem; place-items: center; }
.auth-panel { background: var(--paper-strong); border: 1px solid var(--line); display: grid; gap: 1rem; max-width: 470px; padding: clamp(1.5rem, 5vw, 3rem); width: 100%; }
.auth-panel h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1; margin: 0; }
.auth-panel p { color: var(--muted); line-height: 1.6; margin: 0; }
.auth-panel label { color: var(--muted); display: grid; font-size: .76rem; font-weight: 700; gap: .45rem; letter-spacing: .04em; text-transform: uppercase; }
.auth-panel input { background: var(--paper); border: 1px solid var(--line); color: var(--ink); min-height: 42px; padding: .7rem; }
.button { align-items: center; border: 1px solid var(--ink); display: inline-flex; font-size: .75rem; font-weight: 800; gap: .5rem; justify-content: center; letter-spacing: .08em; min-height: 40px; padding: 0 .9rem; text-transform: uppercase; }
.button-primary { background: var(--ink); color: white; }
.button-secondary { background: transparent; color: var(--ink); }
.button-violet { background: var(--violet); border-color: var(--violet); color: white; }
.button-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button:hover:not(:disabled) { transform: translateY(-1px); }


/* Native fallback only. Preserve the original form primitives after retiring the admin shell. */
.auth-panel form{display:grid;gap:1rem;min-width:0}
.auth-panel h1{font-family:var(--font-serif)}
.auth-panel input,.auth-panel textarea,.auth-panel select{width:100%;max-width:100%;min-width:0;background:var(--paper);border:1px solid var(--line);color:var(--ink);padding:.7rem}
.auth-panel textarea{min-height:120px;resize:vertical}
.auth-panel details{display:grid;gap:1rem}
.auth-panel details[open]>label{margin-top:1rem}
.auth-panel p a{text-decoration:underline;text-underline-offset:.2em}
.auth-panel [role=alert],.auth-panel label strong{color:var(--red)}
.contact-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media(prefers-reduced-motion:reduce){.button:hover:not(:disabled){transform:none}}
