/* Public account pages. Scoped to keep member forms and the admin unchanged. */
.fs-auth {
    --auth-ink: #231d2a;
    --auth-muted: #6b6073;
    --auth-line: #e4d6e9;
    background: radial-gradient(ellipse at 80% 0, #fff8fc 0, #f5e8fa 42%, #efdbf8 90%);
    color: var(--auth-ink);
    padding: 48px 0 64px;
}
.fs-auth-shell { width: min(520px, calc(100% - 40px)); margin: 0 auto; }
.fs-auth--signup .fs-auth-shell { width: min(760px, calc(100% - 40px)); }
.fs-auth-header { margin: 0 auto 28px; text-align: center; }
.fs-auth h1.fs-auth-title { margin: 0; color: #ff69b4; font-family: Poppins, sans-serif; font-weight: 700; font-size: 36px; line-height: 1.3; letter-spacing: -.02em; text-transform: none; text-wrap: balance; overflow-wrap: break-word; }
.fs-auth-intro { margin: 16px auto 0; max-width: 48ch; color: #5c5065; font-size: .95rem; line-height: 1.7; }
.fs-auth-card { min-width: 0; padding: 32px; border: 1px solid var(--auth-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 32px #49225b0a; }
.fs-auth form { margin: 0; }
.fs-auth-field + .fs-auth-field, .fs-auth .signup-field + .signup-field { margin-top: 22px; }
.fs-auth label:not(.sex-option):not(.fs-auth-remember), .fs-auth .signup-field-label { display: block; margin: 0 0 7px; color: #48364f; font: 600 .875rem/1.5 Poppins, sans-serif; letter-spacing: 0; text-transform: none; }
.fs-auth .text-danger { margin-left: 3px; }
.fs-auth :is(input[type="text"], input[type="email"], input[type="password"], select) {
    box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; margin: 0;
    padding: 11px 13px; border: 1px solid #d9cddd; border-radius: 8px;
    background: #fdfbfe; color: var(--auth-ink); font-family: inherit; font-size: 1rem; line-height: 1.5;
    transition: border-color .18s, box-shadow .18s;
}
.fs-auth input::placeholder { color: var(--fs-control-placeholder, #746879); opacity: 1; }
.fs-auth :is(input, select, button, a):focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
.fs-auth :is(input[type="text"], input[type="email"], input[type="password"], select):focus { border-color: #be6f9f; background: #fff; box-shadow: 0 0 0 3px #fbe7f3; }
.fs-auth :is(.signup-field > small, .fs-auth-hint) { display: block; margin-top: 7px; color: var(--auth-muted); font-size: .8rem; font-weight: 400; line-height: 1.6; }
.fs-auth .fs-auth-hint { margin-top: 5px; }
.fs-auth .fs-auth-submit { display: flex; width: 100%; min-height: 48px; margin: 26px 0 0; }
.fs-auth label.fs-auth-remember { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: #514558; font-family: inherit; font-size: .875rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; cursor: pointer; }
.fs-auth-remember input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #9f2368; }
.fs-auth-help { margin-top: 18px; text-align: center; font-size: .875rem; }
.fs-auth-help a { color: #9f2368; text-decoration: underline; text-underline-offset: 3px; }
.fs-auth-help a:hover { color: #801b53; }
.fs-auth-alternative { margin-top: 24px; padding-top: 22px; border-top: 1px solid #eee3f0; text-align: center; }
.fs-auth-alternative p { margin: 0 0 12px; font-size: .875rem; line-height: 1.6; color: var(--auth-muted); }
.fs-auth-alternative > a { width: 100%; min-height: 46px; }
.fs-auth .alert, .fs-auth .mess__err { border-radius: 8px; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.fs-auth .mess__err { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #efb8c6; background: #fff0f3; color: #912343; }
.fs-auth-welcome { margin-bottom: 28px; padding: 18px 20px; border: 1px solid #e7cde3; border-left: 3px solid #ff69b4; border-radius: 10px; background: #fcf1f9; color: #62436b; font-size: .9rem; line-height: 1.6; }
.fs-auth-welcome strong { color: #9f2368; }
.fs-auth .fs-auth-profiles { margin-top: 10px; }
.fs-auth-profiles > .row { margin: 0; }
.fs-auth .sex-options-group { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; }
.fs-auth .sex-option { min-width: 0; margin: 0; padding: 12px 6px; border: 1px solid var(--auth-line); border-radius: 10px; background: #fdfbfe; }
.fs-auth .sex-option-title { display: flex; align-items: center; justify-content: center; min-height: 2.8em; margin: 0 0 6px; font-size: .8rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #53435d; overflow-wrap: anywhere; }
.fs-auth .sex-image-container { width: 76px; min-height: 76px; padding: 4px; border-radius: 8px; }
.fs-auth .sex-option:hover { border-color: #d59abc; background: #fff6fb; }
.fs-auth .sex-option:has(input:checked) { border-color: #b9558d; background: #fff0f8; box-shadow: 0 0 0 1px #b9558d; }
.fs-auth .sex-radio:checked + .sex-option-title + .sex-image-container { box-shadow: none; background: transparent; }
.fs-auth .sex-radio:focus-visible + .sex-option-title + .sex-image-container { outline: 3px solid #005fcc; outline-offset: 2px; }
.fs-auth-birthday { --bs-gutter-x: 12px; --bs-gutter-y: 10px; }
.fs-auth .password-field-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; align-items: start; }
.fs-auth .password-visibility-toggle { width: 48px; height: 48px; margin: 0; border: 1px solid #d9cddd; border-radius: 8px; color: #734f79; background: #f7eff9; }
.fs-auth .password-visibility-toggle:hover { background: #efe0f3; }
.fs-auth-captcha { display: flex; justify-content: center; margin-top: 26px; }
.fs-auth-captcha .g-recaptcha { flex: none; }
.fs-auth--signup .fs-auth-captcha { flex-direction: column; align-items: center; }
.signup-feedback, .fs-auth--signup .signup-field, #signup-captcha { scroll-margin-top: 24px; }
.signup-feedback:focus { outline: 2px solid #9f2368; outline-offset: 6px; border-radius: 8px; }
.signup-errors { margin-bottom: 24px; padding: 16px; background: #fff0f3; border: 1px solid #e3a0b3; border-radius: 8px; color: #81213c; }
.fs-auth .signup-errors h2 { margin: 0 0 10px; font: 600 1rem/1.5 Poppins, sans-serif; color: inherit; }
.signup-errors ul { margin: 0; padding-left: 20px; }
.signup-errors li + li { margin-top: 8px; }
.signup-errors a { color: #81213c; font-size: .875rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.fs-auth .signup-field-invalid :is(input, select) { border-color: #bb3b60; }
.fs-auth .signup-field-invalid .sex-options-group { outline: 1px solid #bb3b60; outline-offset: 4px; border-radius: 8px; }
.fs-auth [hidden] { display: none !important; }
@media (max-width: 767.98px) {
    .fs-auth { padding: 30px 0 40px; }
    .fs-auth-shell, .fs-auth--signup .fs-auth-shell { width: calc(100% - 24px); }
    .fs-auth-header { margin-bottom: 22px; }
    .fs-auth h1.fs-auth-title { font-size: 28px; }
    .fs-auth-card { padding: 24px 20px; border-radius: 12px; }
}
@media (max-width: 575.98px) {
    .fs-auth .sex-options-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-auth-welcome { padding: 14px; }
}
@media (max-width: 379.98px) {
    .fs-auth-card { padding: 22px 14px; }
    .fs-auth-captcha .g-recaptcha { transform: scale(.85); transform-origin: center top; margin-bottom: -12px; }
}
@media (prefers-reduced-motion: reduce) {
    .fs-auth *, .fs-auth *::before { transition: none !important; }
}
