#auth-footer { display: none; }
.auth-page {
  --paper: #f7f5ef;
  --ink: #242c28;
  --muted: #646b60;
  --accent: #b94e2c;
  --line: #dcded3;
  --brand: #b94e2c;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.auth-page ::selection { background: #f0c8a6; color: var(--ink); }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page :focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.auth-page #site-header,
.auth-page #app,
.auth-page #auth-footer { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.auth-page #site-header { min-height: 105px; padding: 0; gap: 24px; background: transparent; border-bottom: 1px solid var(--line); }
.auth-page #site-header a { color: var(--ink); }
.auth-page #site-header span { color: inherit; font-size: inherit; letter-spacing: inherit; margin: 0; }
.auth-page #site-header .auth-wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 31px; font-weight: 750; letter-spacing: -1.6px; line-height: 1; }
.auth-page .auth-brand-mark,
.auth-page #site-header .auth-brand-period { color: var(--accent); }
.auth-page .auth-nav { display: flex; align-items: center; gap: 26px; }
.auth-page .auth-nav a { font-size: 13px; font-weight: 600; transition: color .18s ease, background .18s ease; }
.auth-page .auth-nav a:hover,
.auth-page #site-header .auth-nav-superadmin[aria-current="page"] { color: var(--accent); }
.auth-page .auth-home-link { margin-right: 22px; }
.auth-page #site-header .auth-nav-button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 11px 16px; min-height: 44px; border-radius: 5px; background: var(--ink); color: #fffaf1; }
.auth-page #site-header .auth-nav-button:hover { color: #fffaf1; background: #3e4e42; }
.auth-page .auth-nav-button span { font-size: 19px !important; line-height: 1; }
.auth-page #app { max-width: none; flex: 1; display: flex; align-items: center; padding: 59px 0 65px; margin-block: 0; }
.auth-page .auth-shell { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 90px; width: 100%; }
.auth-page .auth-eyebrow { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: 1.8px; color: var(--muted); }
.auth-page .auth-eyebrow > span { height: 2px; width: 26px; flex: none; background: var(--accent); }
.auth-page .auth-intro h1 { font-size: clamp(57px, 5.2vw, 75px); font-weight: 650; line-height: 1.04; letter-spacing: -3.4px; margin: 26px 0 22px; }
.auth-page .auth-intro em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.04em; }
.auth-page .auth-description { max-width: 400px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.auth-page .auth-route { max-width: 440px; margin-top: 20px; }
.auth-page .auth-route svg { display: block; height: auto; width: 100%; }
.auth-page .auth-scope { display: flex; align-items: center; gap: 14px; margin-top: 15px; }
.auth-page .auth-scope-mark { display: grid; place-items: center; width: 37px; height: 37px; flex: none; border: 1px solid #c7cbbc; border-radius: 50%; color: #52634d; font-size: 21px; }
.auth-page .auth-scope p { margin: 0; line-height: 1.7; }
.auth-page .auth-scope strong { display: block; color: var(--ink); font-size: 12px; font-weight: 650; }
.auth-page .auth-scope p > span { display: block; font-size: 11px; color: var(--muted); }
.auth-page .auth-form-column { min-width: 0; width: 100%; max-width: 470px; justify-self: end; }
.auth-page .auth-form { padding: 35px 36px 29px; background: #fcfbf7; border: 1px solid #d7dacd; border-radius: 8px; box-shadow: 0 12px 40px #242c2805; }
.auth-page .auth-form-heading { margin-bottom: 27px; }
.auth-page .auth-form-kicker { color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.auth-page .auth-form h2 { margin: 12px 0 11px; font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -1px; }
.auth-page .auth-form-heading p { margin: 0; max-width: 340px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-page .auth-field { display: block; margin-top: 21px; color: var(--ink); font-size: 12px; font-weight: 600; }
.auth-page .auth-field label { color: var(--ink); font-size: 12px; font-weight: 600; }
.auth-page .auth-field input { min-height: 49px; border: 1px solid #c7cbbc; border-radius: 5px; color: var(--ink); background: #fffefa; font: 400 14px "Segoe UI", Arial, sans-serif; padding: 13px 14px; margin-top: 9px; transition: border-color .18s ease; }
.auth-page .auth-field input::placeholder { color: #767d72; opacity: 1; }
.auth-page .auth-field input:focus-visible { outline-offset: 2px; }
.auth-page .auth-key-field { display: flex; align-items: center; margin-top: 9px; border: 1px solid #c7cbbc; border-radius: 5px; background: #fffefa; }
.auth-page .auth-key-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #b94e2c26; }
.auth-page .auth-key-field input { margin: 0; min-width: 0; border: 0; background: transparent; }
.auth-page .auth-key-field input:focus-visible { outline: none; }
.auth-page #show-login-key { align-self: stretch; min-height: 47px; flex: none; margin: 0; padding: 9px 14px 9px 8px; border: 0; border-radius: 4px; color: var(--accent); background: transparent; font: 600 11px "Segoe UI", Arial, sans-serif; }
.auth-page #show-login-key:hover { color: #84371f; }
.auth-page #show-login-key:focus-visible { outline-offset: -4px; }
.auth-page .auth-error { margin: 14px 0 0; color: #a13722; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-page .auth-error:empty { display: none; }
.auth-page #login-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 51px; margin: 23px 0 0; padding: 14px 18px; border-radius: 5px; color: #fffaf1; background: var(--accent); font: 650 14px "Segoe UI", Arial, sans-serif; transition: background .18s ease; }
.auth-page #login-submit > span[aria-hidden] { font-size: 20px; line-height: 1; }
.auth-page #login-submit:hover { background: #9b3f23; }
.auth-page #login-submit:disabled { opacity: .65; cursor: wait; }
.auth-page .auth-key-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-page .auth-switch { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line); }
.auth-page .auth-switch p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.7; }
.auth-page .auth-switch a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 11px; font-weight: 650; }
.auth-page .auth-switch a:hover { color: var(--accent); }
.auth-page .auth-switch a span { font-size: 17px; }
.auth-page .auth-access-note { margin: 17px 0 0; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.7; }
.auth-page #auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 23px; border-top: 1px solid var(--line); }
.auth-page #auth-footer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-page #auth-footer a { display: inline-flex; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; font-weight: 600; }
.auth-page #auth-footer a:hover { color: var(--accent); }
.auth-page #auth-footer a span { color: var(--accent); font-size: 18px; }
.auth-page #notice { display: none; }
@media (max-width: 1100px) {
  .auth-page #site-header, .auth-page #app, .auth-page #auth-footer { width: calc(100% - 72px); }
  .auth-page .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 45px; }
  .auth-page .auth-intro h1 { font-size: 60px; letter-spacing: -3px; }
  .auth-page .auth-form { padding: 29px 27px 25px; }
  .auth-page .auth-home-link { margin-right: 5px; }
  .auth-page .auth-nav { gap: 21px; }
}
@media (max-width: 850px) {
  .auth-page #app { padding-block: 43px 48px; }
  .auth-page .auth-shell { gap: 30px; }
  .auth-page .auth-intro h1 { font-size: 48px; letter-spacing: -2.4px; }
  .auth-page .auth-description { font-size: 14px; }
  .auth-page .auth-form { padding: 26px 22px 22px; }
  .auth-page .auth-form h2 { font-size: 26px; }
  .auth-page .auth-form-heading p { font-size: 12px; }
  .auth-page .auth-nav { gap: 19px; }
  .auth-page .auth-home-link { display: none; }
}
@media (max-width: 700px) {
  .auth-page #site-header, .auth-page #app, .auth-page #auth-footer { width: calc(100% - 40px); }
  .auth-page #site-header { min-height: 87px; padding-block: 20px; gap: 20px; }
  .auth-page #site-header .auth-wordmark { font-size: 28px; }
  .auth-page .auth-brand-mark { width: 31px; height: 31px; }
  .auth-page .auth-nav { gap: 14px; }
  .auth-page .auth-nav a { font-size: 11px; }
  .auth-page #site-header .auth-nav-button { padding-inline: 12px; gap: 9px; }
  .auth-page #app { padding-block: 36px 39px; }
  .auth-page .auth-shell { grid-template-columns: minmax(0, 1fr); gap: 31px; }
  .auth-page .auth-intro h1 { font-size: clamp(45px, 8.4vw, 57px); line-height: 1.06; letter-spacing: -2.6px; margin: 21px 0 17px; }
  .auth-page .auth-description { max-width: 420px; font-size: 14px; }
  .auth-page .auth-route, .auth-page .auth-scope { display: none; }
  .auth-page .auth-form-column { max-width: 470px; justify-self: start; }
  .auth-page .auth-form { padding: 28px 25px 25px; }
  .auth-page .auth-form h2 { font-size: 29px; }
  .auth-page .auth-form-heading p { font-size: 13px; }
  .auth-page #auth-footer { padding-block: 22px; flex-wrap: wrap; gap: 10px 20px; }
}
@media (max-width: 430px) {
  .auth-page #site-header { flex-wrap: wrap; gap: 19px; }
  .auth-page .auth-nav { width: 100%; gap: 10px; }
  .auth-page .auth-nav > a:not(.auth-home-link) { display: inline-flex; justify-content: center; align-items: center; flex: 1; min-height: 44px; font-size: 12px; }
  .auth-page .auth-nav-superadmin { border: 1px solid #bfc3b6; border-radius: 5px; }
  .auth-page .auth-form { padding: 26px 21px 22px; }
  .auth-page .auth-intro h1 { font-size: clamp(44px, 13.3vw, 56px); }
  .auth-page .auth-switch { gap: 8px; }
  .auth-page .auth-access-note { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; }
}
