/* Forgot / set password — aligned with Moove split-screen login (GS English). */

.gs-forgot-password-page #page-footer,
.gs-forgot-password-page .login-cookiesnotice {
    display: none !important;
}

.gs-forgot-password-page #region-main.login-layout-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
}

.gs-forgot-password-page .login-layout-right-content,
.gs-forgot-password-page .login-container,
.gs-forgot-password-page #region-main-box {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
}

.gs-forgot-password-page .login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
}

.gs-forgot-password-page .login-container [role="main"] {
    width: 100%;
}

/* Shell header (logo + title + lead). */
.gs-forgot-password-shell {
    width: 100%;
}

.gs-forgot-password-logo {
    max-height: 72px;
    width: auto;
}

.gs-forgot-password-lead {
    font-size: 0.95rem;
    line-height: 1.55;
}

.gs-forgot-password-back {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.gs-forgot-password-back:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Moodle form — flat, login-like. */
.gs-forgot-password-page .gs-forgot-password-shell .mform {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.gs-forgot-password-page .gs-forgot-password-shell .mform fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.gs-forgot-password-page .gs-forgot-password-shell .mform fieldset > .d-flex.align-items-center.mb-2 {
    display: none !important;
}

.gs-forgot-password-page .gs-forgot-password-shell #id_searchbyemail {
    position: relative;
    margin-top: 0.25rem;
}

.gs-forgot-password-page .gs-forgot-password-shell #id_searchbyemail::before {
    content: "OR";
    display: block;
    margin: 1rem 0 1.15rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.gs-forgot-password-page .gs-forgot-password-shell .fitem.row {
    flex-direction: column;
    margin-bottom: 1rem;
}

.gs-forgot-password-page .gs-forgot-password-shell .fitem .col-md-3,
.gs-forgot-password-page .gs-forgot-password-shell .fitem .col-md-9 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
}

.gs-forgot-password-page .gs-forgot-password-shell .fitem .col-form-label {
    padding-bottom: 0.35rem;
    font-weight: 600;
    color: #334155;
}

.gs-forgot-password-page .gs-forgot-password-shell .form-control {
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.gs-forgot-password-page .gs-forgot-password-shell .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

.gs-forgot-password-page .gs-forgot-password-shell .form-control:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.gs-forgot-password-page .gs-forgot-password-shell .mform hr {
    display: none;
}

.gs-forgot-password-page .gs-forgot-password-shell #fitem_id_submit,
.gs-forgot-password-page .gs-forgot-password-shell #fgroup_id_buttonar {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.gs-forgot-password-page .gs-forgot-password-shell #fitem_id_submit .col-md-3,
.gs-forgot-password-page .gs-forgot-password-shell #fitem_id_submit .col-md-9,
.gs-forgot-password-page .gs-forgot-password-shell #fgroup_id_buttonar .col-md-9 {
    width: 100%;
    flex: 0 0 100%;
    padding: 0;
}

.gs-forgot-password-page .gs-forgot-password-shell #id_submit,
.gs-forgot-password-page .gs-forgot-password-shell #id_submitbutton,
.gs-forgot-password-page .gs-forgot-password-shell .fsubmit .btn-primary {
    width: 100%;
    min-height: 48px;
    font-weight: 700;
    border-radius: 0.5rem;
}

.gs-forgot-password-page .gs-forgot-password-shell .fdescription.required {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.gs-forgot-password-page .gs-forgot-password-shell .form-control-feedback.invalid-feedback {
    font-size: 0.85rem;
}

.gs-forgot-password-page .gs-forgot-password-shell .fitem .form-label-addon {
    display: none;
}

/* Set-password form only: hide the duplicate hidden username input row. */
.gs-forgot-password-page .gs-forgot-password-shell #id_setpassword #fitem_id_username {
    display: none;
}

.gs-forgot-password-page .gs-forgot-password-shell #id_setpassword h3 {
    display: none;
}

.gs-forgot-password-page .alert,
.gs-forgot-password-page .notifymessage {
    border-radius: 0.75rem;
}

@media (max-width: 991.98px) {
    .gs-forgot-password-page #region-main.login-layout-right {
        min-height: auto;
        padding: 2rem 1.25rem 2.5rem;
    }

    .gs-forgot-password-page .login-container {
        max-width: 100%;
    }
}
