/* Account surfaces use the landing shell and the Deck's hardware materials. */
.auth-page { display: flex; flex-direction: column; }
.auth-page [hidden] { display: none !important; }
.auth-skip { position: absolute; top: -100px; padding: 12px; background: var(--bs-accent); color: var(--bs-black); z-index: 10; }
.auth-skip:focus { top: 8px; }
.auth-home { margin-left: auto; gap: 8px; color: var(--bs-muted); font: 650 .65rem/1.4 var(--bs-display); text-decoration: none; }
.auth-home:hover { color: var(--bs-accent-hot); }
.auth-header-status { display: flex; align-items: center; gap: 9px; color: var(--bs-muted); font: 650 .57rem/1.3 var(--bs-display); letter-spacing: .08em; text-transform: uppercase; }
.auth-shell { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: clamp(32px, 6vw, 88px); padding-block: clamp(44px, 7vw, 88px); }
.auth-intro { min-width: 0; }
.auth-intro h1 { font-family: var(--bs-sans); font-size: clamp(2.6rem, 5.1vw, 4.8rem); font-weight: 790; line-height: .98; letter-spacing: -.065em; margin: 22px 0 24px; text-wrap: balance; }
.auth-lede { max-width: 440px; color: #c8bead; font-size: .96rem; line-height: 1.75; }
.auth-steps { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid var(--bs-edge); }
.auth-steps li { display: flex; gap: 9px; align-items: center; color: var(--bs-muted); font: 600 .62rem/1.5 var(--bs-display); }
.auth-steps li > span { display: grid; place-items: center; width: 29px; height: 29px; color: var(--bs-muted); }
.auth-steps li[aria-current] { color: var(--bs-cream); }
.auth-steps li[aria-current] > span { color: var(--bs-accent-hot); border-color: var(--bs-accent-dim); }
.auth-panel { min-width: 0; width: 100%; }
.auth-screw-tl { top: 11px; left: 11px; }
.auth-screw-tr { top: 11px; right: 11px; }
.auth-panel-meta { display: flex; justify-content: space-between; gap: 12px; padding: 28px 28px 19px; border-bottom: 1px solid #30281c; color: var(--bs-muted); font: 700 .6rem/1.4 var(--bs-display); text-transform: uppercase; letter-spacing: .1em; }
.auth-panel-code { color: var(--bs-accent-dim); }
.auth-panel-body { padding: 28px; }
.auth-panel-note { display: flex; align-items: center; gap: 9px; padding: 17px 28px; border-top: 1px solid #30281c; color: var(--bs-muted); font: .65rem/1.6 var(--bs-display); }
.auth-page .auth-form-title { font: 750 1.45rem/1.2 var(--bs-sans); letter-spacing: -.04em; color: var(--bs-cream); margin: 0 0 8px; }
.auth-page .auth-form-subtitle { color: var(--bs-muted); font: .85rem/1.6 var(--bs-sans); }
.auth-page .auth-label { display: block; color: #d4c3a4; font: 650 .67rem/1.5 var(--bs-display); letter-spacing: .04em; }
.account-panel label { margin: 24px 0 8px; }
.auth-page .auth-input { min-height: 46px; padding: 11px 12px; font: 550 .85rem/1.5 var(--bs-display); }
.auth-page select option { background: var(--bs-surface); color: var(--bs-cream); }
.field-hint { color: var(--bs-muted); font-size: .73rem; line-height: 1.6; margin: 8px 0 0; }
.auth-page .auth-submit { display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; padding: 13px 17px; min-height: 48px; font: 750 .8rem/1.4 var(--bs-sans); text-transform: none; }
/* Outrank Clerk's button-state shadows with the shared hardware elevation. */
.auth-page .auth-clerk-root .auth-submit.bs-button--primary {
  box-shadow: inset 0 1px rgba(255, 255, 255, .5), 0 5px 0 #754916, 0 6px 0 #080604, 0 9px 12px rgba(0, 0, 0, .4);
}
.auth-page .auth-clerk-root .auth-submit.bs-button--primary:not(:disabled):active {
  box-shadow: inset 0 2px 5px rgba(74, 39, 0, .45), 0 1px 0 #754916, 0 2px 0 #080604;
  transform: translateY(4px);
}
.account-panel .auth-submit { justify-content: space-between; margin-top: 12px; }
.auth-page button:disabled { opacity: .55; cursor: wait; }
.form-error { color: var(--bs-danger); min-height: 1.5em; font-size: .8rem; line-height: 1.5; margin: 18px 0 0; }
.account-loading { min-height: 170px; display: flex; gap: 14px; align-items: center; justify-content: center; padding: 24px; color: var(--bs-accent-hot); font: .75rem/1.7 var(--bs-display); }
[data-sign-out-retry] { margin-top: 22px; }
.auth-page .auth-clerk-root, .auth-page .auth-clerk-box { width: 100%; max-width: 100%; min-width: 0; }
.auth-page .auth-clerk-box { box-shadow: none; border: 0; border-radius: 0; overflow: visible; }
/* Clerk's raised card uses negative margins to overlap its own border. Our
   surrounding chassis supplies that border; retain room for focus/shadows. */
.auth-page .auth-clerk-card { margin: 0; padding: 0; background: transparent; box-shadow: none; border: 0; gap: 24px; }
.auth-page .auth-social { min-height: 44px; padding: 10px; font-size: .8rem; }
.auth-page .auth-clerk-footer { background: transparent; padding: 26px 0 0; }
.auth-page .auth-clerk-link { color: var(--bs-accent-hot); }
.auth-page .cl-dividerLine { background: var(--bs-edge); }
.auth-page .cl-dividerText, .auth-page .cl-footerActionText { color: var(--bs-muted); }
@media (max-width: 850px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 32px; }
  .auth-intro h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); }
  .auth-steps { margin-top: 24px; padding-top: 18px; }
}
@media (max-width: 600px) {
  .auth-lede--desktop { display: none; }
  .auth-page .auth-clerk-card.cl-signIn-start .auth-form-subtitle,
  .auth-page .auth-clerk-card.cl-signUp-start .auth-form-subtitle { display: none; }
  .auth-steps { display: none; }
  .auth-header-status { display: none; }
  .auth-home { font-size: .6rem; }
  .auth-panel-body { padding: 23px 20px 28px; }
  .auth-panel-meta, .auth-panel-note { padding-inline: 20px; }
  .auth-shell { padding-block: 38px 48px; }
}
