/* Only loaded by standalone authentication/support pages. Keeps their existing layout. */
html[data-theme="dark"] { color-scheme: dark; }

html[data-theme="dark"] :is(.login-form-container, .register-form-container, .forgot-card, .password-panel, .verify-card, .account-card, .contact-card, .consent-modal-content) {
    background: #172b22;
    border-color: #45634f;
    color: #eaf4ed;
}

html[data-theme="dark"] :is(.login-title h2, .mobile-logo h1, .register-title h2, .forgot-body h5, .reset-heading, .password-title, .verify-title, .identity-name, .contact-value, .consent-modal-body, .success-title) {
    color: #f1f8f3 !important;
    -webkit-text-fill-color: #f1f8f3;
}

html[data-theme="dark"] :is(.login-subtitle, .register-subtitle, .mobile-logo p, .forgot-subtitle, .password-subtitle, .expiry-note, .verify-subtitle, .account-subtitle, .identity-email, .contact-label, .success-text, .email-hint, .otp-hint, .consent-intro, .consent-statement) {
    color: #bfd2c5 !important;
}

html[data-theme="dark"] :is(.login-form-container, .register-form-container, .forgot-card, .password-panel, .verify-card, .account-card, .contact-card, .consent-modal-content) :is(.form-label, .form-group label, .consent-label, .label-info, .text-muted) {
    color: #dcece1 !important;
}

html[data-theme="dark"] :is(.login-form-container, .register-form-container, .forgot-card, .password-panel, .verify-card, .account-card, .contact-card, .consent-modal-content) :is(.form-control, .otp-input, textarea, select, .input-group-text) {
    background: #203a2b;
    color: #f1f8f3;
    border-color: #506f5b;
}

html[data-theme="dark"] :is(.login-form-container, .register-form-container, .forgot-card, .password-panel, .verify-card, .account-card, .contact-card, .consent-modal-content) :is(.form-control, .otp-input, textarea)::placeholder {
    color: #b9cdbf;
    opacity: 1;
}

html[data-theme="dark"] :is(.login-form-container, .register-form-container, .forgot-card, .password-panel, .verify-card, .account-card, .contact-card, .consent-modal-content) :is(.form-control, .otp-input, textarea, select):focus-visible {
    outline: 2px solid #f5d43d;
    outline-offset: 2px;
}

html[data-theme="dark"] :is(.login-form-container, .register-form-container, .account-card) input:-webkit-autofill,
html[data-theme="dark"] :is(.login-form-container, .register-form-container, .account-card) input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #203a2b inset;
    -webkit-text-fill-color: #f1f8f3;
    caret-color: #f1f8f3;
}

html[data-theme="dark"] :is(.login-form-container, .register-form-container, .account-card) .field-info::after {
    background: #243e2e;
    border-color: #5a755f;
    color: #edf7ef;
}

html[data-theme="dark"] :is(.identity-block, .consent-block, .accordion-body, .faq-content) {
    background: #203a2b;
    border-color: #506f5b;
    color: #eaf4ed;
}

html[data-theme="dark"] .accordion-button {
    background: #203a2b;
    color: #eaf4ed;
}

html[data-theme="dark"] :is(.forgot-card, .password-panel, .verify-card, .account-card, .login-form-container, .register-form-container, .contact-card) a:not(.btn) {
    color: #9ce2b5;
}
