/* Shared typography, form controls, card and watermark come from login.css. */
body.password-reset-page { color-scheme: light; }
.password-reset-shell { max-width: 1180px; }
.password-reset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 620px; }
.password-reset-page .login-card .card-body { max-width: 550px; }
.password-reset-page .auth-input { padding-right: 14px; }
.password-reset-page .auth-input::placeholder { color: #707d90; opacity: 1; }
.password-reset-page .auth-field-error { margin-bottom: 0; }
.reset-email-field { margin-bottom: 18px; }
.reset-turnstile { min-width: 0; min-height: 65px; }
.reset-turnstile .cf-turnstile { width: 100%; }
.password-reset-page #reset-turnstile-error { margin-bottom: 18px; }
.reset-back { margin-top: 20px; text-align: center; }
.reset-back a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.reset-noscript { margin: 16px 0 0; color: var(--ydv-muted); font-size: 13px; }
.reset-security { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.reset-security .application-center-header { margin-bottom: 0; }
.reset-security-list { display: grid; gap: 25px; padding: 0; margin: 0; list-style: none; }
.reset-security-list li { display: flex; align-items: flex-start; gap: 16px; }
.reset-security-list .bi { flex: 0 0 24px; color: var(--ydv-gold-soft); font-size: 22px; line-height: 1.4; }
.reset-security-list h3 { margin: 0 0 5px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; }
.reset-security-list p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.65; }
.reset-security-note { margin: 4px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.65); font-size: 11.5px; line-height: 1.6; }
.password-reset-page :focus-visible { outline: 3px solid #977025; outline-offset: 3px; }
.password-reset-page .auth-submit:focus-visible { outline-color: #977025; }
.password-reset-page .auth-alert { overflow-wrap: anywhere; }

/* Respect explicit themes used by the application and Bootstrap 5.3. */
body.password-reset-page.dark,
[data-bs-theme="dark"] body.password-reset-page,
body.password-reset-page[data-bs-theme="dark"] {
    --ydv-bg: #080f1c;
    --ydv-surface: #152238;
    --ydv-text: #edf2fa;
    --ydv-muted: #b3bfd1;
    --ydv-border: #53617a;
    color-scheme: dark;
}
.password-reset-page .login-card { background: var(--ydv-surface); }
.password-reset-page:is(.dark, [data-bs-theme="dark"]) .auth-heading,
.password-reset-page:is(.dark, [data-bs-theme="dark"]) .brand-title,
.password-reset-page:is(.dark, [data-bs-theme="dark"]) .auth-link,
[data-bs-theme="dark"] .password-reset-page :is(.auth-heading, .brand-title, .auth-link) { color: #edf2fa; }
.password-reset-page:is(.dark, [data-bs-theme="dark"]) .auth-input,
[data-bs-theme="dark"] .password-reset-page .auth-input { background: #0e192a; color: var(--ydv-text); }
.password-reset-page:is(.dark, [data-bs-theme="dark"]) .auth-field-error,
[data-bs-theme="dark"] .password-reset-page .auth-field-error { color: #ffacb6; }
.password-reset-page:is(.dark, [data-bs-theme="dark"]) .auth-submit,
[data-bs-theme="dark"] .password-reset-page .auth-submit { background: #ead6a9; color: #102443; }
.password-reset-page:is(.dark, [data-bs-theme="dark"]) .auth-alert,
[data-bs-theme="dark"] .password-reset-page .auth-alert { background: #223551; color: #edf2fa; border-color: #53617a; }

@media (max-width: 991.98px) {
    .password-reset-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .password-reset-page .login-card .card-body { max-width: 620px; }
    .reset-security { gap: 26px; }
}
@media (max-width: 575.98px) {
    .password-reset-page .auth-input { font-size: 16px; }
    .reset-security { gap: 24px; }
    .reset-security-list { gap: 20px; }
}
/* Turnstile's flexible size has a 300px minimum; JS selects compact below it. */
@media (max-width: 331.98px) {
    .reset-turnstile { min-height: 140px; }
}
