.bbe-auth { --auth-navy: #080845; --auth-navy-hover: #16274d; --auth-ink: #202d43; --auth-muted: #5f6979; --auth-border: #8b909b; --auth-gold: #92702c; --auth-gold-soft: #faf8f3; --auth-line: #e3e7ed; color: var(--auth-ink); font-size: 16px; line-height: 1.6; }
.bbe-auth[hidden], .bbe-auth [hidden] { display: none !important; }
.bbe-auth h3 { margin-block: 1.25rem .75rem; font-size: 1.1rem; font-weight: 600; }
.bbe-auth label { display: block; margin-block: .75rem .35rem; font-weight: 600; }
.bbe-auth input.form-control { box-sizing: border-box; width: 100%; min-height: 48px; padding: .65rem .85rem; border: 1px solid var(--auth-border); border-radius: 4px; font: inherit; font-size: max(1rem, 1em); color: var(--auth-ink); background: #fff; }
.bbe-auth button, .bbe-auth summary { min-height: 48px; font: inherit; cursor: pointer; }
.bbe-auth button { white-space: normal; }
.bbe-auth :is(button, input, summary):focus-visible { outline: 3px solid var(--auth-gold); outline-offset: 3px; }
.bbe-auth button:disabled { cursor: wait; opacity: .65; }
.bbe-auth .bbe-auth-wide { display: block; width: 100%; margin-block: .75rem; }
.bbe-auth .bbe-auth-hint { color: var(--auth-muted); font-size: .94rem; margin-block: .45rem 1rem; }
.bbe-auth .bbe-auth-message { margin-block: 1rem; overflow-wrap: anywhere; }
.bbe-auth .bbe-auth-message:empty { display: none; }
.bbe-auth .bbe-auth-message[data-error="true"] { padding: .75rem; border-inline-start: 3px solid #ad2735; background: #fff5f5; color: #86202c; }
.bbe-auth summary { padding-block: .75rem; font-weight: 600; }
.bbe-auth .bbe-auth-email { margin-block: .75rem; border-block-start: 1px solid #dce0e7; }
.bbe-auth .bbe-auth-actions { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; }
.bbe-auth .bbe-auth-link { padding: .5rem .2rem; border: 0; background: transparent; color: var(--auth-ink); text-decoration: underline; text-underline-offset: .2em; }
.bbe-auth input.bbe-auth-code { max-width: 20rem; font-family: ui-monospace, monospace; font-size: 1.35rem; letter-spacing: .35em; }
.bbe-auth-stage { padding: 2.5rem 1rem 3.5rem; }
.bbe-auth.bbe-auth-login { box-sizing: border-box; max-width: 600px; width: 100%; margin-inline: auto; padding: 1.5rem 2.5rem 2.5rem; background: #fff; border: 1px solid var(--auth-line); border-radius: 2px; box-shadow: 0 2px 14px #0000001c; }
#content .bbe-auth-login .bbe-auth-step-title { margin: 1.75rem 0 1rem; padding: 0; border: 0; color: var(--auth-navy); font-size: 1.75rem; font-weight: 700; line-height: 1.3; text-transform: none; }
.bbe-auth-login .bbe-auth-back { display: flex; align-items: center; justify-content: center; width: 48px; min-height: 48px; margin-inline-start: -.75rem; padding: 0; border: 0; color: var(--auth-navy); background: transparent; }
.bbe-auth-login [data-login-turnstile][data-interactive] { padding-block-start: .75rem; }
.bbe-auth.bbe-auth-login label { font-weight: 500; }
.bbe-auth.bbe-auth-login .bbe-auth-link { color: var(--auth-navy); text-decoration: none; font-weight: 600; }
.bbe-auth.bbe-auth-login .bbe-auth-link:hover:not(:disabled), .bbe-auth-login .bbe-auth-register a:hover, .bbe-auth-login .bbe-auth-forgotten:hover { color: var(--auth-gold); }
.bbe-auth.bbe-auth-login input.form-control:focus { border-color: var(--auth-gold); box-shadow: none; }
.bbe-auth.bbe-auth-login :is(button, input, summary, a):focus-visible { outline: 2px solid var(--auth-gold); outline-offset: 3px; }
#content .bbe-auth-login .bbe-auth-otp-intro { display: block; float: none; clear: both; width: 100%; max-width: none; margin-block: 0 1.75rem; color: var(--auth-ink); font-size: 1rem; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.bbe-auth-login .bbe-auth-otp-component { width: 100%; min-width: 0; text-align: start; }
#content .bbe-auth-login .bbe-auth-otp-component .bbe-auth-step-title { margin-block: 1.75rem .75rem; text-align: start; text-wrap: balance; }
#content .bbe-auth-login .bbe-auth-otp-component .bbe-auth-otp-intro { margin-block: 0; text-align: start; }
#content .bbe-auth-login .bbe-auth-otp-email { display: block; float: none; clear: both; width: 100%; max-width: none; margin: .375rem 0 1.5rem; padding: 0; color: var(--auth-ink); font-size: 1rem; line-height: 1.6; text-align: start; overflow-wrap: anywhere; }
.bbe-auth-login .bbe-auth-otp-email strong { font-weight: 600; }
.bbe-auth-login .bbe-auth-otp-component .bbe-auth-otp-actions { display: grid; justify-items: center; gap: .25rem; text-align: center; margin-block: .75rem 0; }
.bbe-auth-login .bbe-auth-otp-actions .bbe-auth-link { padding-inline: 0; }
.bbe-auth-login .bbe-auth-otp-actions .bbe-auth-resend-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 10rem; max-width: 100%; min-height: 48px; padding: .65rem 1.25rem; border: 1px solid var(--auth-navy); border-radius: 999px; background: #fff; color: var(--auth-navy); text-align: center; }
.bbe-auth-login .bbe-auth-otp-actions .bbe-auth-resend-button:hover:not(:disabled) { background: var(--auth-gold-soft); color: var(--auth-navy-hover); }
.bbe-auth-login .bbe-auth-otp-actions .bbe-auth-resend-button:disabled { border-color: var(--auth-line); background: #f4f5f7; color: var(--auth-muted); opacity: 1; cursor: default; }
#content .bbe-auth-login .bbe-auth-otp-component .bbe-auth-hint { font-size: .875rem; line-height: 1.6; text-align: start; }
.bbe-auth-login .bbe-auth-otp-actions .registration-countdown { margin: 0; font-size: .875rem; font-weight: 400; }
#content .bbe-auth-login .bbe-auth-otp-component .bbe-auth-otp-notice { margin-block: 1rem 0; text-align: center; }
#content .bbe-auth-login .bbe-auth-otp { position: relative; float: none; clear: both; width: 100%; max-width: 100%; margin-block: 1.75rem 1rem; }
#content .bbe-auth-login .bbe-auth-hint { display: block; float: none; clear: both; width: 100%; max-width: 100%; }
.bbe-auth-login .bbe-auth-otp-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 2.4vw, 24px); }
.bbe-auth-login [data-otp-slot] { display: flex; position: relative; align-items: center; justify-content: center; box-sizing: border-box; height: clamp(48px, 8vw, 64px); min-width: 0; border: 1px solid var(--auth-border); border-radius: 10px; background: #fff; color: var(--auth-ink); font: 500 1.75rem/1 ui-monospace, monospace; }
.bbe-auth-login .bbe-auth-otp:focus-within [data-otp-slot][data-active="true"] { border: 2px solid var(--auth-gold); }
.bbe-auth-login .bbe-auth-otp:focus-within [data-otp-slot][data-active="true"]:empty::after { content: ""; height: 1.6rem; border-inline-start: 1px solid var(--auth-ink); }
.bbe-auth-login .bbe-auth-otp[data-invalid="true"] [data-otp-slot] { border-color: #ad2735; }
/* One real input preserves paste, leading zeroes, native selection and autofill. */
.bbe-auth.bbe-auth-login input.bbe-auth-code { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 48px; max-width: none; margin: 0; padding: 0; opacity: 0; cursor: text; font-size: 24px; }
.bbe-auth-login .bbe-auth-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#content .bbe-auth-login button.bbe-auth-wide { min-height: 52px; margin-block: 1rem; border: 1px solid var(--auth-navy); border-radius: 999px; background: var(--auth-navy); color: #fff; font-weight: 600; text-align: center; text-transform: none; }
#content .bbe-auth-login button.bbe-auth-wide:hover:not(:disabled) { background: var(--auth-navy-hover); border-color: var(--auth-navy-hover); color: #fff; }
#content .bbe-auth-login button.bbe-auth-wide:disabled { background: #eeeef0; border-color: #eeeef0; color: #b8bac2; opacity: 1; cursor: not-allowed; }
.bbe-auth-login .bbe-auth-resend { text-align: center; margin-block: .75rem 1.5rem; color: var(--auth-muted); }
.bbe-auth-login .bbe-auth-resend button { padding: .25rem .75rem; }
.bbe-auth-login .bbe-auth-resend button:disabled { color: var(--auth-muted); opacity: 1; cursor: default; }
.bbe-auth-login [data-resend-countdown] { margin: 0; font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bbe-auth-login .bbe-auth-divider { display: flex; align-items: center; gap: .75rem; margin-block: 1.25rem; color: var(--auth-ink); }
.bbe-auth-login .bbe-auth-divider::before, .bbe-auth-login .bbe-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }
.bbe-auth-login .bbe-auth-other { text-align: center; }
.bbe-auth-login [data-login-methods] > summary { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 56px; padding: .75rem 1.25rem; border-radius: 10px; list-style: none; border: 1px solid var(--auth-gold); background: var(--auth-gold-soft); color: var(--auth-navy); font-weight: 600; }
.bbe-auth-login [data-login-methods] > summary::-webkit-details-marker { display: none; }
.bbe-auth-login [data-login-methods][open] > summary svg { transform: rotate(180deg); }
.bbe-auth-login .bbe-auth-method-options { display: grid; gap: .5rem; justify-items: center; padding-block: 1.25rem .25rem; }
.bbe-auth-login .bbe-auth-method-options button { max-width: 100%; padding: .5rem 1rem; }
.bbe-auth-login .bbe-auth-password-control { position: relative; }
.bbe-auth-login .bbe-auth-password-control input { padding-inline-end: 5rem; }
.bbe-auth-login .bbe-auth-password-control button { position: absolute; inset-inline-end: .5rem; inset-block-start: 0; min-width: 3rem; padding-inline: .5rem; }
.bbe-auth-login .bbe-auth-forgotten { color: var(--auth-navy); display: inline-block; min-height: 48px; padding-block: .5rem; box-sizing: border-box; }
.bbe-auth-login .bbe-auth-register { margin-block: 1.75rem 0; text-align: center; color: var(--auth-muted); font-size: .875rem; }
.bbe-auth-login .bbe-auth-register a { color: var(--auth-navy); font-weight: 600; }
.bbe-auth-login .bbe-auth-message { font-size: .875rem; color: var(--auth-muted); }
@media (max-width: 480px) { .bbe-auth-stage { padding: 1.5rem 0 2rem; } .bbe-auth.bbe-auth-login { padding: 1rem 1rem 1.75rem; } #content .bbe-auth-login .bbe-auth-step-title { font-size: 1.5rem; } }
.bbe-auth-manage { max-width: 52rem; padding-block: .5rem 2rem; }
.bbe-auth-manage form[data-add-passkey], .bbe-auth .bbe-auth-reauth { padding: 1.25rem; margin-block: 1.5rem; background: #f7f8fa; border: 1px solid #dce0e7; border-radius: 4px; }
.bbe-auth-manage .bbe-auth-reauth button { margin-block-start: .75rem; }
.bbe-auth .bbe-auth-passkeys { list-style: none; margin: 1.5rem 0; padding: 0; }
.bbe-auth .bbe-auth-passkey { margin-block: 1rem; padding: 1.25rem; border: 1px solid #dce0e7; border-radius: 4px; }
.bbe-auth .bbe-auth-passkey .bbe-auth-dates { margin-block: .75rem; font-size: .9rem; color: #596476; }
.bbe-auth .bbe-auth-passkey .bbe-auth-dates span { display: block; }
.bbe-auth .bbe-auth-rename { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .75rem; align-items: end; }
.bbe-auth .bbe-auth-rename label { grid-column: 1 / -1; }
.bbe-auth .bbe-auth-confirm { margin-block: .75rem; padding: .75rem; border: 1px solid #b29355; }
@media (max-width: 480px) { .bbe-auth .bbe-auth-rename { grid-template-columns: 1fr; } .bbe-auth .bbe-auth-rename label { grid-column: auto; } .bbe-auth .bbe-auth-passkey { padding: 1rem; } }

dialog.bbe-auth-offer { box-sizing: border-box; width: calc(100% - 32px); max-width: 460px; max-height: calc(100dvh - 32px); margin: auto; padding: 2rem; overflow: auto; border: 1px solid var(--auth-line); border-radius: 12px; background: #fff; color: var(--auth-ink); box-shadow: 0 12px 48px #08084533; text-align: center; }
dialog.bbe-auth-offer:modal { overscroll-behavior: contain; }
dialog.bbe-auth-offer::backdrop { background: #08084566; overflow: hidden; overscroll-behavior: contain; }
.bbe-auth-offer form { margin: 0; }
.bbe-auth-offer .bbe-auth-offer-close { display: flex; align-items: center; justify-content: center; position: absolute; inset-block-start: .25rem; inset-inline-end: .25rem; width: 48px; padding: 0; border: 0; background: transparent; color: var(--auth-navy); }
.bbe-auth-offer .bbe-auth-offer-icon { display: block; margin: .5rem auto 1rem; color: var(--auth-gold); }
.bbe-auth-offer #auth-offer-title { margin: 0 0 1rem; padding: 0; border: 0; color: var(--auth-navy); font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1.4; text-transform: none; }
.bbe-auth-offer #auth-offer-description { margin-block: 0 1.5rem; color: var(--auth-muted); }
.bbe-auth-offer .bbe-auth-offer-save { display: block; width: 100%; min-height: 52px; padding: .65rem 1rem; border: 1px solid var(--auth-navy); border-radius: 999px; background: var(--auth-navy); color: #fff; font-weight: 600; }
.bbe-auth-offer .bbe-auth-offer-save:hover:not(:disabled) { background: var(--auth-navy-hover); border-color: var(--auth-navy-hover); }
.bbe-auth-offer .bbe-auth-offer-skip { display: block; width: 100%; margin-block-start: .5rem; color: var(--auth-navy); }

@media (forced-colors: active) {
  .bbe-auth { --auth-navy: ButtonText; --auth-navy-hover: ButtonText; --auth-ink: CanvasText; --auth-muted: CanvasText; --auth-border: ButtonText; --auth-gold: Highlight; --auth-gold-soft: Canvas; --auth-line: CanvasText; }
  .bbe-auth.bbe-auth-login { background: Canvas; box-shadow: none; }
  .bbe-auth-login [data-otp-slot] { background: Field; color: FieldText; }
  dialog.bbe-auth-offer { background: Canvas; border-color: CanvasText; box-shadow: none; }
  .bbe-auth-offer .bbe-auth-offer-save { background: ButtonFace; border-color: ButtonText; color: ButtonText; }
  #content .bbe-auth-login button.bbe-auth-wide, #content .bbe-auth-login button.bbe-auth-wide:hover:not(:disabled) { background: ButtonFace; border-color: ButtonText; color: ButtonText; }
  #content .bbe-auth-login button.bbe-auth-wide:disabled { background: ButtonFace; border-color: GrayText; color: GrayText; }
}
