:root {
  color-scheme: light;
  --ink: #25231f;
  --muted: #766b5d;
  --gold: #b77d27;
  --gold-dark: #895b1c;
  --ivory: #f5f2ea;
  --line: #ded3c1;
  --error: #a03c32;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ivory); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .85), transparent 50%), var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.staff-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 8px 16px;
  color: #fffaf0;
  background: var(--ink);
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.5;
}
.staff-banner span { color: #d9ad68; font-size: 8px; }
.login-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 34px; }
.brand-header { text-align: center; padding: 0 0 35px; }
.brand-header p, .brand-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}
.brand-header p { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.08; }
.brand-header h1 { margin-top: 9px; color: var(--gold-dark); font-size: clamp(1.9rem, 3.9vw, 3.15rem); line-height: 1.08; }
.ornament { display: flex; justify-content: center; align-items: center; gap: 13px; margin-top: 24px; color: var(--gold); }
.ornament span { height: 1px; width: 82px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament i { font-size: 11px; font-style: normal; }
.login-card {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 38px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fffefa;
  box-shadow: 0 26px 70px rgba(66, 52, 31, .13);
}
.eyebrow { margin: 0 0 13px; color: var(--gold-dark); font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.16; font-weight: 400; letter-spacing: -.025em; }
.intro { margin: 16px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.login-form label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.password-control { display: flex; gap: 4px; align-items: center; min-width: 0; margin-bottom: 22px; border: 1px solid #c9b99f; border-radius: 3px; background: #fff; }
.password-control:focus-within { border-color: var(--gold-dark); outline: 3px solid #f1dfbe; outline-offset: 2px; }
.password-control input { width: 100%; min-width: 0; height: 52px; padding: 13px 14px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); outline: none; font-size: 16px; }
.password-control:has([aria-invalid="true"]) { border-color: var(--error); }
.password-toggle { flex: 0 0 auto; min-height: 44px; margin-right: 3px; padding: 7px 9px; border: 0; border-radius: 2px; color: var(--gold-dark); background: transparent; font-size: 11px; font-weight: 700; }
.password-toggle:hover { background: #f5ead7; }
.primary-button, .secondary-button { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 52px; width: 100%; padding: 13px 18px; border-radius: 3px; font-size: 14px; line-height: 1.6; font-weight: 700; text-decoration: none; text-align: center; }
.primary-button { border: 1px solid var(--gold-dark); color: #fff; background: var(--gold-dark); box-shadow: 0 8px 20px rgba(128, 83, 24, .14); }
.primary-button:hover { background: #714915; }
.primary-button:disabled { opacity: .68; cursor: wait; }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--gold-dark); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 4px; }
.login-error { margin: 0 0 22px; padding: 13px 15px; border-left: 3px solid var(--error); background: #fff1ef; color: #8f3026; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.return-note { margin: 0 0 24px; padding: 14px 16px; border-left: 3px solid #c6a26d; background: #f5ead7; color: #65503b; font-size: 13px; line-height: 1.7; }
.success-mark { display: grid; place-items: center; height: 44px; width: 44px; margin-bottom: 22px; border-radius: 50%; background: #e9f1ed; color: #405e54; font-size: 24px; }
.login-footer { margin: 27px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }

@media (max-width: 600px) {
  .login-shell { width: calc(100% - 32px); padding-top: 38px; }
  .brand-header { padding: 0 4px 28px; }
  .brand-header p { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .brand-header h1 { font-size: clamp(1.85rem, 7.4vw, 2.5rem); }
  .login-card { padding: 29px 24px 30px; }
  h2 { font-size: 1.8rem; }
  .staff-banner { font-size: 8px; letter-spacing: .05em; gap: 7px; }
}
@media (max-width: 360px) {
  .login-shell { width: calc(100% - 24px); padding-top: 28px; }
  .login-card { padding: 26px 20px; }
  .password-toggle { font-size: 10px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
