/* Admin and staff sign-in in the homepage brand (plum gradient, Fredoka, cream, cyan, glass panel).
   Loaded last by templates/auth/layout.html, after admin.css, auth-core.css and public/headings.css.
   Presentation only: nothing here hides or reorders a field, CSRF input or passkey hook. Fonts and logo come from
   static/public/ through the normal static route. Colours mirror static/public/home.css. */
@font-face{font-family:Fredoka;font-style:normal;font-weight:500;font-display:swap;src:url(public/fredoka-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Fredoka;font-style:normal;font-weight:700;font-display:swap;src:url(public/fredoka-latin-700-normal.woff2) format("woff2")}

body.ab-page{
  --ab-orange:#f28c28;--ab-coral:#e15a45;--ab-cyan:#2ec4e6;--ab-cream:#f6f1e8;--ab-ink:#100814;
  --ab-muted:rgba(246,241,232,.82);
  margin:0;min-height:100vh;min-height:100dvh;font-family:Fredoka,"Avenir Next",sans-serif;font-weight:500;color:var(--ab-cream);
  background:
    radial-gradient(ellipse 120% 95% at 6% -8%,rgba(242,140,40,.42) 0%,rgba(242,140,40,.22) 26%,rgba(242,140,40,.08) 52%,transparent 82%),
    radial-gradient(ellipse 105% 88% at 108% 0%,rgba(225,90,69,.46) 0%,rgba(225,90,69,.24) 28%,rgba(225,90,69,.08) 54%,transparent 80%),
    radial-gradient(ellipse 110% 78% at 70% 118%,rgba(92,22,70,.58) 0%,rgba(92,22,70,.32) 32%,rgba(92,22,70,.10) 58%,transparent 84%),
    linear-gradient(168deg,#2d1232 0%,#160a18 48%,#0a060c 100%);
  background-color:#160a18;background-attachment:fixed}
html:has(body.ab-page){background:#0a060c}
.ab-shell{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
.ab-logo{display:flex;justify-content:center;width:100%;margin:8px 0 4px;min-height:44px;border-radius:12px}
.ab-logo img{display:block;width:150px;height:auto}
.ab-logo:focus-visible{outline:3px solid var(--ab-cyan);outline-offset:4px}
/* compact decorative homepage icon row (aria-hidden in markup, not interactive) */
.ab-icons{display:flex;justify-content:center;align-items:center;gap:14px;margin:2px 0 4px;pointer-events:none}
.ab-icons img{display:block;width:28px;height:28px;filter:invert(96%) sepia(12%) saturate(283%) hue-rotate(341deg) brightness(102%) contrast(93%);opacity:.9}

/* the one glass panel (specificity beats the old admin.css / auth-core.css .auth-form-content rules) */
body.ab-page .ab-panel.auth-form-content{width:100%;max-width:440px;margin:12px 0 0;padding:28px 24px 22px;box-sizing:border-box;
  background:rgba(246,241,232,.09);border:1px solid rgba(246,241,232,.22);border-radius:22px;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 18px 50px rgba(7,5,10,.45)}
.ab-kicker{margin:0 0 6px;font-size:.8125rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ab-orange)}
body.ab-page .ab-panel h1{margin:0 0 8px;font-family:Fredoka,"Avenir Next",sans-serif;font-weight:700;font-size:1.875rem;line-height:1.12;letter-spacing:var(--heading-tracking-display);color:var(--ab-cream)}
body.ab-page .ab-panel :is(.auth-intro,.staff-lead){margin:0 0 20px;font-size:1rem;line-height:1.5;color:var(--ab-muted)}
body.ab-page .ab-panel.auth-form-content .auth-helper{margin:14px 0 0;font-size:.875rem;line-height:1.5;color:var(--ab-muted)}
body.ab-page .ab-panel .auth-divider{margin:14px 0 0;border-top:1px solid rgba(246,241,232,.22)}
.ab-foot{margin-top:auto;padding:22px 0 8px;font-size:.875rem;color:var(--ab-muted);text-align:center}

/* fields */
body.ab-page .ab-panel.auth-form-content label,body.ab-page .ab-panel.auth-form-content .stacked-form label{display:block;margin:0 0 6px;font-size:.9375rem;font-weight:700;color:var(--ab-cream)}
body.ab-page .ab-panel input:not([type=hidden]):not([type=checkbox]){width:100%;box-sizing:border-box;min-height:48px;padding:10px 14px;border-radius:12px;
  font-family:inherit;font-size:1rem;font-weight:500;color:var(--ab-cream);background:rgba(16,8,20,.55);border:1px solid rgba(246,241,232,.45)}
body.ab-page .ab-panel input::placeholder{color:rgba(246,241,232,.6)}
body.ab-page .ab-panel.auth-form-content form small{display:block;margin-top:6px;color:var(--ab-muted);font-size:.875rem}
body.ab-page .ab-panel.auth-form-content .stacked-form>p{color:var(--ab-cream)}
body.ab-page .ab-panel.auth-form-content .staff-pin-form>div{margin:0 0 14px}
body.ab-page .ab-panel :is(input,button,a):focus-visible{outline:3px solid var(--ab-cyan);outline-offset:3px;box-shadow:none}
body.ab-page .ab-panel input:focus{border-color:var(--ab-cyan)}

/* primary button: cyan */
body.ab-page .ab-panel :is(.button,button[type=submit],.passkey-button){display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;
  padding:0 18px;border:1px solid var(--ab-cyan);border-radius:999px;background:var(--ab-cyan);color:var(--ab-ink);
  font-family:inherit;font-size:1.0625rem;font-weight:700;letter-spacing:.01em;text-decoration:none;cursor:pointer}
body.ab-page .ab-panel :is(.button,button[type=submit]):hover{background:#5dd5ef;border-color:#5dd5ef;text-decoration:none}
body.ab-page .ab-panel :is(.button,button[type=submit]):disabled{opacity:.55;cursor:not-allowed}
body.ab-page .ab-panel>.button{margin-top:16px}
/* passkey: secondary (outlined) */
body.ab-page .ab-panel.auth-form-content button.passkey-button{background:transparent;color:var(--ab-cream);border:1.5px solid rgba(246,241,232,.6)}
body.ab-page .ab-panel.auth-form-content button.passkey-button:hover{background:rgba(246,241,232,.12);border-color:var(--ab-cream)}
body.ab-page .ab-panel .passkey-login-action{margin:0 0 16px}
body.ab-page .ab-panel .passkey-login-action.secondary-order{margin:16px 0 0;padding-top:16px;border-top:1px solid rgba(246,241,232,.22)}
body.ab-page .ab-panel.auth-form-content .passkey-login-action>p{margin:8px 0 0;font-size:.875rem;color:var(--ab-muted)}
/* when the passkey leads the page, it takes the primary look and the email button steps back */
body.ab-page .ab-panel.auth-form-content .passkey-login-action:not(.secondary-order) button.passkey-button{background:var(--ab-cyan);border-color:var(--ab-cyan);color:var(--ab-ink)}
body.ab-page .ab-panel.auth-form-content .passkey-login-action:not(.secondary-order) button.passkey-button:hover{background:#5dd5ef;border-color:#5dd5ef}
body.ab-page .ab-panel.auth-form-content .passkey-login-action:not(.secondary-order)~form button[type=submit]{background:transparent;color:var(--ab-cream);border:1.5px solid rgba(246,241,232,.6)}
body.ab-page .ab-panel.auth-form-content .passkey-login-action:not(.secondary-order)~form button[type=submit]:hover{background:rgba(246,241,232,.12)}
body.ab-page .ab-panel .passkey-status{color:var(--ab-cream);font-size:.9375rem}

/* staff: personal-device checkbox and passkey warning stay clear and legible */
body.ab-page .ab-panel.auth-form-content label.passkey-personal-device{display:flex;align-items:center;gap:12px;min-height:44px;margin:0 0 8px;font-size:1rem;font-weight:700;color:var(--ab-cream);cursor:pointer}
body.ab-page .ab-panel input[type=checkbox]{flex:none;width:22px;height:22px;min-height:0;margin:0;padding:0;accent-color:var(--ab-cyan);cursor:pointer}
body.ab-page .ab-panel.auth-form-content .passkey-login-action>p.passkey-warning{margin:0 0 12px;padding:10px 12px;font-size:.9375rem;line-height:1.45;color:var(--ab-cream);
  background:rgba(225,90,69,.18);border:1px solid rgba(225,90,69,.7);border-radius:12px}

/* staff: helper text inherits cream, links cyan */
body.ab-page .ab-panel.auth-form-content :is(.staff-login-help,.staff-login-onboarding,.staff-login-note,.staff-login-note p){margin:14px 0 0;font-size:.9375rem;line-height:1.5;color:var(--ab-cream)}
body.ab-page .ab-panel.auth-form-content .staff-login-note{margin:14px 0 0;padding:14px 0 0;border-top:1px solid rgba(246,241,232,.22)}
body.ab-page .ab-panel.auth-form-content .staff-login-note p{margin:0}
body.ab-page .ab-panel.auth-form-content :is(.staff-login-help,.staff-login-onboarding,.staff-login-note) a{color:var(--ab-cyan);font-weight:700;text-decoration:underline;text-underline-offset:3px}
body.ab-page .ab-panel.auth-form-content :is(.staff-login-help,.staff-login-onboarding,.staff-login-note) a:hover{color:#5dd5ef}
body.ab-page .ab-panel.auth-form-content .staff-login-help{display:flex;align-items:center;min-height:44px;margin-top:8px}
body.ab-page .ab-panel.auth-form-content .staff-login-help a{display:inline-flex;align-items:center;min-height:44px}

/* notices */
body.ab-page .ab-panel .notice{margin:0 0 16px;padding:11px 14px;border-radius:12px;font-size:.9375rem;line-height:1.45;color:var(--ab-cream);
  background:rgba(246,241,232,.1);border:1px solid rgba(246,241,232,.35)}
body.ab-page .ab-panel .notice.error{background:rgba(225,90,69,.2);border:1px solid var(--ab-coral)}

/* links */
body.ab-page .ab-panel.auth-form-content .clock-link{display:inline-flex;align-items:center;min-height:44px;gap:8px;font-size:.9375rem;color:var(--ab-muted);text-decoration:none}
body.ab-page .ab-panel .clock-link:hover{text-decoration:underline}
body.ab-page .ab-panel.auth-form-content .clock-link strong{font-weight:700;color:var(--ab-orange)}
body.ab-page .ab-panel .clock-link .icon{width:16px;height:16px}
body.ab-page .ab-panel .button .icon,body.ab-page .ab-panel .passkey-button .icon{width:18px;height:18px}

@media(min-width:721px){
  .ab-shell{justify-content:center}
  .ab-logo{margin:0 0 6px}.ab-logo img{width:230px}
  body.ab-page .ab-panel.auth-form-content{padding:36px 36px 28px;margin-top:8px}
  body.ab-page .ab-panel h1{font-size:2.125rem}
  .ab-foot{margin-top:0;padding-top:28px}
}
@media(max-width:720px){
  body.ab-page .ab-panel.auth-form-content{margin:8px 0 0;padding:24px 20px 18px}
  body.ab-page .ab-panel h1{font-size:1.75rem}
}
@media(max-width:620px){
  body.ab-page .ab-panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]){font-size:max(1rem,16px)!important}
}
@media(prefers-reduced-motion:no-preference){
  body.ab-page .ab-panel :is(.button,button,input){transition:background-color .15s ease,border-color .15s ease}
}
@media(prefers-contrast:more){
  body.ab-page .ab-panel.auth-form-content{background:rgba(16,8,20,.86)}
}
