/* G5: styles load only on account entry/recovery/success pages. */
body.bb-theme-halloween:has(.bb-auth) #bb-panel {
  background: #110d25;
  border-color: #71608b;
  overflow: hidden;
}
body.bb-theme-halloween:has(.bb-auth) .bb-seasonal-hero { display: none; }
body.bb-theme-halloween:has(.bb-auth) #bb-page { padding: 20px; }
.bb-auth { color: #f8f2e8; font: 16px/1.65 "Segoe UI", Arial, sans-serif; }
.bb-auth *, .bb-auth *::before, .bb-auth *::after { box-sizing: border-box; }
.bb-auth a { color: #d7c1ff; text-decoration: none; }
.bb-auth a:hover { color: #ffe1a3; text-decoration: underline; }
.bb-auth a:focus-visible, .bb-auth button:focus-visible, .bb-auth input:focus-visible, .bb-auth select:focus-visible {
  outline: 3px solid #ffc772; outline-offset: 3px;
}
.bb-auth .breadcrumb { margin: 0 0 18px; border: 0; background: transparent; padding: 0; font-size: 13px; }
.bb-auth .breadcrumb-item + .breadcrumb-item::before { color: #ae9fbd; }
.bb-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: start; gap: 24px; }
.bb-auth-story { position: relative; padding: 28px; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, #6635737a, transparent 65%), linear-gradient(145deg, #211633, #151c43); border: 1px solid #56416f; }
.bb-auth-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; line-height: 1.65; color: #bfa2f4; }
.bb-auth-story h2 { margin: 14px 0; max-width: 360px; font: 700 clamp(26px, 3vw, 38px)/1.25 "Segoe UI", Arial, sans-serif; color: #ffd094; }
.bb-auth-story > p { color: #d2c7de; max-width: 370px; margin: 0; }
.bb-auth-illustration { position: relative; height: 285px; display: grid; place-items: center; isolation: isolate; }
.bb-auth-illustration img { position: relative; z-index: 1; height: 260px; width: auto; max-width: 85%; object-fit: contain; filter: drop-shadow(0 0 25px #ac65ff55); }
.bb-auth-moon { position: absolute; width: 185px; height: 185px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c5, #ffd47a); top: 25px; box-shadow: 0 0 70px #f7c3633b; }
.bb-auth-star { position: absolute; color: #ffe095; font-size: 23px; }
.bb-auth-star-one { top: 52px; left: 15px; }.bb-auth-star-two { top: 150px; right: 10px; }
.bb-auth-story-note { display: flex; gap: 14px; align-items: center; border-top: 1px solid #87719b55; padding-top: 18px; }
.bb-auth-story-note > span { font-size: 34px; color: #ffcf85; }
.bb-auth-story-note strong, .bb-auth-story-note div > span { display: block; }
.bb-auth-story-note strong { color: #ffdfaa; font-size: 14px; }.bb-auth-story-note div > span { color: #d2c7de; font-size: 13px; }
.bb-auth-card { min-width: 0; padding: 28px; border-radius: 20px; border: 1px solid #554266; background: #23172f; }
.bb-auth #content.bb-auth-card { padding: 28px; }
.bb-auth-tabs { display: flex; gap: 8px; border-bottom: 1px solid #574063; margin: 0 0 24px; padding-bottom: 12px; }
.bb-auth-tabs a { flex: 1; text-align: center; min-height: 44px; display: grid; place-items: center; font-weight: 700; border-radius: 10px; }
.bb-auth-tabs a[aria-current="page"] { background: #44305e; color: #fff0d9; }
.bb-auth h1 { color: #ffcf8d; font: 700 clamp(25px, 2.7vw, 34px)/1.3 "Segoe UI", Arial, sans-serif; margin: 10px 0 12px; overflow-wrap: anywhere; }
.bb-auth-description { color: #d1c4de; margin: 0 0 22px; }
.bb-auth .form-label, .bb-auth .col-form-label { font-weight: 600; color: #f8eee0; font-size: 14px; text-align: left; }
.bb-auth form .row.mb-3 { margin-left: 0; margin-right: 0; }
.bb-auth form .row.mb-3 > .col-12 { padding-left: 0; padding-right: 0; }
.bb-auth .form-control, .bb-auth .form-select {
  min-height: 48px; border: 1px solid #766082; background-color: #150f23; color: #fff5e8; border-radius: 10px; padding: 12px 14px; font: 15px/1.4 "Segoe UI", Arial, sans-serif;
}
.bb-auth .form-control::placeholder { color: #a99cb7; opacity: 1; }.bb-auth .form-control:focus { box-shadow: 0 0 0 3px #b389ee33; border-color: #c49bf2; }
.bb-auth-password { position: relative; }.bb-auth-password .form-control { padding-right: 52px; }
.bb-auth-password button { position: absolute; right: 3px; top: 3px; height: 42px; width: 44px; background: transparent; color: #d7c1ff; border: 0; border-radius: 8px; }
.bb-auth .bb-auth-submit { display: flex; justify-content: center; align-items: center; gap: 16px; width: 100%; min-height: 50px; padding: 12px 18px; margin-top: 18px; background: linear-gradient(110deg, #ffb353, #ffc978); border: 1px solid #ffcf8b; border-radius: 12px; color: #28142d; font-size: 16px; font-weight: 700; text-shadow: none; }
.bb-auth .bb-auth-submit:hover { background: #ffdb9c; color: #28142d; text-decoration: none; }.bb-auth .bb-auth-submit:disabled { opacity: .65; cursor: progress; }
.bb-auth-forgotten { text-align: right; font-size: 14px; }.bb-auth-switch { text-align: center; margin: 22px 0 16px; font-size: 14px; color: #d1c4de; }.bb-auth-switch a { font-weight: 700; }
.bb-auth-back { display: block; text-align: center; font-size: 13px; margin-top: 18px; }
.bb-auth-context { padding: 12px 14px; border: 1px solid #a775415c; border-radius: 10px; background: #51332155; color: #ffe1ad; font-size: 14px; }
.bb-auth-feedback { margin: 12px 0 18px; border-radius: 10px; padding: 12px 14px; border: 1px solid #b36077; background: #492137; color: #ffe1e9; font-size: 14px; overflow-wrap: anywhere; }
.bb-auth-feedback[hidden] { display: none; }.bb-auth-success { border-color: #57856b; background: #173c30; color: #d3f5df; }
.bb-auth .invalid-feedback { color: #ffb8cf; margin-top: 7px; }.bb-auth .form-control.is-invalid { border-color: #fb82a6; }
.bb-auth fieldset { margin: 22px 0 0; }.bb-auth legend { padding-bottom: 8px; margin: 0 0 10px; font-size: 14px; color: #ffdfaa; border-bottom: 1px solid #574063; font-weight: 700; }
.bb-auth-register-actions { margin-top: 18px; }.bb-auth-agree { text-align: left; padding-left: 2.7em; }
.bb-auth .form-check-input { background-color: #150f23; border-color: #9a80ad; min-height: 20px; }.bb-auth .form-check-input:checked { background-color: #a373dc; border-color: #cfaafa; }
.bb-auth .form-switch-lg .form-check-input { margin-top: 5px; }.bb-auth .form-check-label { font-size: 14px; }
.bb-auth-hint { display: block; color: #c4b4d1; font-size: 12px; margin-top: 8px; }
.bb-auth-success-icon { display: block; color: #ffcf8d; font-size: 48px; }.bb-auth-description a { text-decoration: underline; }
@media (min-width: 768px) {
  #account-register #account { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 16px; }
  #account-register #account > legend, #account-register #account > .row { grid-column: 1 / -1; }
  #account-register #account > .row:has(#input-firstname), #account-register #account > .row:has(#input-lastname) { grid-column: span 1; }
}
@media (max-width: 991px) { .bb-auth-layout { grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: 16px; }.bb-auth-story,.bb-auth #content.bb-auth-card { padding: 20px; }.bb-auth-story h2 { font-size: 28px; } }
@media (max-width: 767px) {
  body.bb-theme-halloween:has(.bb-auth) #bb-page { padding: 14px; }
  .bb-auth-layout { grid-template-columns: minmax(0,1fr); }.bb-auth-story { padding: 18px; }.bb-auth-story h2 { margin: 8px 0; font-size: 24px; max-width: none; }.bb-auth-story > p { font-size: 13px; max-width: none; }.bb-auth-illustration,.bb-auth-story-note { display: none; }
  .bb-auth #content.bb-auth-card { padding: 20px 16px; }.bb-auth h1 { font-size: 27px; }.bb-auth-description { font-size: 14px; }.bb-auth .breadcrumb { font-size: 12px; }.bb-auth-kicker { font-size: 10px; letter-spacing: 1px; }
}
