/* The complete authentication system; shared styles contain no auth overrides. */
.auth-page { min-height: 100svh; background: #20151c; color: #f7edf2; }
.auth-page .site-header { background: #20151c; border-bottom-color: #ffffff0d; }
.auth-page .site-header__inner { min-height: 76px; }
.auth-page .site-brand__logo img { filter: brightness(0) invert(1); }
.auth-page .site-brand__platform, .auth-page .site-header__controls summary { color: #f0dce6; }
.auth-page .site-header__controls summary:hover { background: #ffffff0d; }
.auth-page__main { position: relative; display: grid; place-items: start center; min-height: calc(100svh - 76px); padding: clamp(30px,5vh,58px) 24px 48px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 42%,#39232f 0,#20151c 70%); }
.auth-card { position: relative; z-index: 2; width: min(100%,472px); margin: 0; padding: clamp(28px,3vw,40px); align-self: start; background: #faf7f8; color: #34242e; border: 1px solid #ffffff90; border-radius: 20px; box-shadow: 0 24px 70px #130c1240; animation: auth-card-enter 220ms ease-out; }
.auth-page--register .auth-card { width: min(100%,580px); }
.auth-card__heading { margin-bottom: 28px; }
.auth-card__eyebrow { margin: 0 0 12px; color: #864260; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.auth-card__heading h1 { margin: 0; font-size: clamp(30px,3vw,38px); font-weight: 600; line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
.auth-card__heading > p:last-child { margin: 12px 0 0; color: #75606d; font-size: 15px; line-height: 1.6; }
.auth-field { margin: 0 0 20px; min-width: 0; }
.auth-field > label { display: block; margin-bottom: 8px; color: #49313f; font-size: 15px; font-weight: 550; line-height: 1.4; }
.auth-input, .auth-password { position: relative; }
.auth-field input { display: block; width: 100%; min-width: 0; min-height: 54px; margin: 0; padding: 14px 15px; border: 1px solid #d9cbd2; border-radius: 9px; background: #fff; color: #34242e; font: inherit; font-size: 16px; line-height: 1.45; transition: border-color 160ms,box-shadow 160ms; }
.auth-field input:hover { border-color: #ba9aaa; }
.auth-field input:focus-visible { outline: 2px solid #863454; outline-offset: 2px; border-color: #863454; box-shadow: 0 0 0 4px #86345412; }
.auth-field input[aria-invalid=true] { border-color: #ae3149; }
.auth-field input:-webkit-autofill { -webkit-text-fill-color: #34242e; -webkit-box-shadow: 0 0 0 1000px #f4edf1 inset; caret-color: #34242e; }
.auth-password input { padding-right: 104px; }
.auth-password__toggle { position: absolute; right: 5px; top: 5px; min-width: 88px; min-height: 44px; padding: 8px; border: 0; border-radius: 6px; color: #74324f; background: transparent; font-size: 13px; font-weight: 550; cursor: pointer; }
.auth-password__toggle:hover { background: #f3e9ed; }
.auth-field__help { margin: 10px 0 0; color: #76616d; font-size: 13px; line-height: 1.55; }
.auth-password-detail { margin-top: 7px; color: #76616d; font-size: 13px; line-height: 1.55; }
.auth-password-detail summary { width: fit-content; min-height: 36px; padding-block: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-password-detail p { margin-top: 8px; }
.auth-field__error { margin: 8px 0 0; color: #a32840; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-card__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.auth-card__forgot { display: flex; align-items: center; justify-content: flex-end; min-height: 44px; width: fit-content; margin: -10px 0 12px auto; color: #71324f; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.auth-card__role-note { margin: 2px 0 20px; color: #76616d; font-size: 14px; line-height: 1.5; }
.auth-card__submit { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; padding: 14px 36px; border: 0; border-radius: 9px; color: #fff; background: #752047; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background 160ms,box-shadow 160ms; }
.auth-card__submit:hover { background: #571733; box-shadow: 0 5px 16px #7520471a; }
.auth-card__submit:disabled { cursor: wait; background: #85516a; }
.auth-submit-arrow { font-size: 20px; line-height: 1; }
.auth-submit-spinner { width: 16px; height: 16px; flex-shrink: 0; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: auth-spin 800ms linear infinite; }
.auth-submit-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.auth-card__switch { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid #e4d9df; text-align: center; color: #75606d; font-size: 14px; line-height: 1.7; }
.auth-card__switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 3px; color: #752047; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.auth-card__alert { margin: 0 0 22px; padding: 14px 16px; border: 1px solid; border-radius: 9px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-card__alert--error { background: #fff0f2; color: #93243a; border-color: #e5bcc6; }
.auth-card__alert--success { background: #eaf5ef; color: #275c43; border-color: #b9d8c8; }
.auth-card__alert:focus { outline: 2px solid currentColor; outline-offset: 3px; }
.auth-page :is(a,button,summary):focus-visible { outline: 2px solid #b46b8a; outline-offset: 3px; }
.auth-page [hidden] { display: none !important; }
@keyframes auth-card-enter { from { opacity: .65; } to { opacity: 1; } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .auth-page .site-header__inner { min-height: 66px; }
  .auth-page__main { min-height: calc(100svh - 66px); padding: 24px 16px 32px; }
  .auth-card { padding: 26px 24px; border-radius: 16px; }
  .auth-card__heading { margin-bottom: 24px; }
  .auth-card__heading h1 { font-size: 30px; }
  .auth-card__row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 380px) { .auth-page .site-brand__platform { display: none; } .auth-page .site-brand__logo img { width: 64px; } }
@media (max-width: 360px) { .auth-card { padding: 24px 20px; } .auth-card__heading h1 { font-size: 28px; } }
@media (max-height: 600px) and (min-width: 701px) { .auth-page__main { padding-top: 22px; } }
@media (prefers-reduced-motion: reduce) { .auth-card,.auth-submit-spinner { animation: none; } .auth-field input,.auth-card__submit { transition: none; } }
