/* Password recovery only. Native Moodle form and validation remain in place. */
body#page-login-forgot_password .login-layout-right-content { max-width: 32rem; width: 100%; }
body.belong-set-password .login-container .generalbox { display: none; }
body.belong-set-password .mform fieldset { border: 0; padding: 0; margin: 0; }
body.belong-set-password .mform legend { margin: 0 0 .8rem; padding: 0; }
body.belong-set-password .mform #id_setpassword > .d-flex h3 { color: var(--belong-violet); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.035em; }
body.belong-set-password .belong-password-intro { color: var(--belong-muted); line-height: 1.6; margin: 0 0 1.6rem; }
body.belong-set-password .mform .fitem { margin: 0 0 1.25rem; }
body.belong-set-password .mform .fitem > div { flex: 0 0 100%; max-width: 100%; padding: 0; }
body.belong-set-password .mform .fitem .col-form-label { padding: 0 0 .5rem; font-weight: 700; line-height: 1.4; }
body.belong-set-password #fitem_id_username2 { padding: .9rem 1rem; border: 1px solid var(--belong-border); border-radius: .65rem; background: #fff; overflow-wrap: anywhere; }
body.belong-set-password #fitem_id_username2 .form-control-static { font-size: .9rem; color: var(--belong-muted); }
body.belong-set-password #fitem_id_passwordpolicyinfo { padding: .9rem 1rem; border-radius: .65rem; background: #f4edf2; font-size: .9rem; line-height: 1.65; }
body.belong-set-password #fitem_id_passwordpolicyinfo .form-control-static { margin: 0; }
body.belong-set-password input[type=password],
body.belong-set-password input.belong-password-visible { min-height: 3.3rem; width: 100%; max-width: 100%; border: 1px solid var(--belong-border); border-radius: .6rem; background: #fff; font-size: 1rem; }
body.belong-set-password #fitem_id_logoutothersessions { font-size: .9rem; color: var(--belong-muted); }
body.belong-set-password #fitem_id_logoutothersessions .col-form-label { padding: 0; }
body.belong-set-password .fdescription { font-size: .875rem; color: var(--belong-muted); }
body.belong-set-password .form-control-feedback { font-size: .9rem; margin-top: .45rem; }
body.belong-set-password .belong-show-passwords { padding: .45rem 0; margin: -.5rem 0 1.1rem; background: transparent; border: 0; color: var(--belong-violet); text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }
body.belong-set-password #fgroup_id_buttonar { border-top: 0; padding: .25rem 0 0; }
body.belong-set-password #fgroup_id_buttonar .felement { gap: .65rem; }
body.belong-set-password #fgroup_id_buttonar input[type=submit] { min-height: 3.3rem; border-radius: .6rem; font-weight: 700; white-space: normal; }
body.belong-set-password #id_submitbutton { background: var(--belong-violet); border-color: var(--belong-violet); }
body.belong-set-password #id_submitbutton:hover { background: var(--belong-violet-deep); }
body.belong-set-password #id_cancel { background: transparent; color: var(--belong-violet); border-color: var(--belong-border); }
@media (max-width: 991.98px) {
    body#page-login-forgot_password .login-layout-left { padding: 1.2rem 1.5rem; }
    body#page-login-forgot_password .belong-login-logo { margin-bottom: 1rem !important; }
    body#page-login-forgot_password .belong-login-editorial-title { font-size: 1.6rem; }
    body#page-login-forgot_password .belong-login-editorial-title span { display: inline; margin-right: .15em; }
    body#page-login-forgot_password .belong-login-editorial-tagline { margin-top: .6rem; font-size: .95rem; }
    body#page-login-forgot_password .login-layout-right { padding: 1.75rem 1.5rem 2.5rem; }
}
@media (max-width: 420px) {
    body#page-login-forgot_password .login-layout-left,
    body#page-login-forgot_password .login-layout-right { padding-left: 1rem; padding-right: 1rem; }
    body.belong-set-password #fgroup_id_buttonar input[type=submit] { width: 100%; margin: 0 !important; }
}

body.belong-set-password #fitem_id_username { display: none; }
@media (max-width: 991.98px) {
    body#page-login-forgot_password .login-layout-left { min-height: 0 !important; height: auto !important; align-items: flex-start; }
    body#page-login-forgot_password .login-layout-right { align-items: flex-start; }
    body#page-login-forgot_password .login-container { padding: 0; margin: 0; }
}

body.belong-set-password #fgroup_id_buttonar .felement > .w-100 > .d-flex { gap: .65rem; }
@media (max-width: 420px) {
    body.belong-set-password #fgroup_id_buttonar .felement > .w-100 > .d-flex > .fitem { width: 100%; margin-bottom: .4rem; }
    body.belong-set-password #fgroup_id_buttonar [data-fieldtype=submit] { display: block; width: 100%; }
}
