/* ==========================================================
   MERITZA CLASSES
   STUDENT / PARENT REGISTRATION
   register.css
   Aligned with Tutor Registration UI
========================================================== */


/* ==========================================================
   PAGE
========================================================== */

.mc-register-page {
    width: 100%;
    min-height: 100vh;

    background: #f7f9fc;

    box-sizing: border-box;
}


/* ==========================================================
   MAIN SECTION
   IMPORTANT:
   Navbar is fixed, therefore reserve its height here.
========================================================== */

.mc-register-section {
    width: 100%;

    box-sizing: border-box;

    /*
     * This prevents the card from going behind
     * the fixed navbar.
     *
     * The extra 24px creates clean breathing space
     * between navbar and card.
     */
    padding-top:
        calc(var(--mc-navbar-height, 78px) + 24px);

    padding-right: 20px;

    padding-bottom: 45px;

    padding-left: 20px;
}


/* ==========================================================
   MAIN CARD
========================================================== */

.mc-register-layout {
    width: 100%;

    max-width: 1050px;

    margin:
        0 auto;

    background:
        #ffffff;

    border:
        1px solid rgba(10, 25, 70, 0.08);

    border-radius:
        20px;

    overflow:
        hidden;

    box-shadow:
        0 16px 45px rgba(10, 25, 70, 0.07);

    box-sizing:
        border-box;
}


/* ==========================================================
   BLUE HEADER
========================================================== */

.mc-register-heading-card {
    position: relative;

    overflow: hidden;

    width: 100%;

    padding:
        31px 38px 29px;

    background:
        linear-gradient(
            135deg,
            #081638 0%,
            #0A1946 55%,
            #10265E 100%
        );

    color:
        #ffffff;

    text-align:
        center;

    box-sizing:
        border-box;
}


/* Decorative glow */

.mc-register-heading-card::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -115px;
    top: -135px;

    border-radius:
        50%;

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.16) 0%,
            rgba(212, 175, 55, 0) 70%
        );

    pointer-events:
        none;
}

/* ==========================================================
   HEADER ICON REMOVED
========================================================== */

.mc-register-heading-icon {
    display: none !important;
}


/* ==========================================================
   HEADER TITLE
========================================================== */

.mc-register-heading-card h1 {
    position: relative;

    z-index: 2;

    margin:
        0;

    color:
        #ffffff;

    font-family:
        'Poppins',
        sans-serif;

    font-size:
        clamp(28px, 4vw, 42px);

    font-weight:
        800;

    line-height:
        1.15;

    letter-spacing:
        -0.3px;
}
.mc-register-heading-card h1 span {
    color: #D4AF37;
}

/* ==========================================================
   HEADER SUBTITLE
========================================================== */

.mc-register-heading-card p {
    position: relative;

    z-index: 2;

    max-width:
        760px;

    margin:
        11px auto 0;

    color:
        rgba(255, 255, 255, 0.82);

    font-size:
        14px;

    line-height:
        1.6;
}


/* ==========================================================
   WHITE FORM BODY
========================================================== */

.mc-register-form-card {
    width: 100%;

    padding:
        32px 38px 30px;

    background:
        #ffffff;

    box-sizing:
        border-box;
}


/* ==========================================================
   ALERT
========================================================== */

.mc-register-alert {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    width:
        100%;

    margin:
        0 0 22px;

    padding:
        13px 15px;

    box-sizing:
        border-box;

    border:
        1px solid #efb6b6;

    border-radius:
        10px;

    background:
        #fff4f4;

    color:
        #9f1d1d;

    font-size:
        13px;

    line-height:
        1.5;
}


.mc-register-alert i {
    flex:
        0 0 auto;

    margin-top:
        2px;
}


/* ==========================================================
   ACCOUNT TYPE
========================================================== */

.mc-register-type {
    width:
        100%;

    padding-bottom:
        26px;

    margin-bottom:
        27px;

    border-bottom:
        1px solid #E9EDF4;

    box-sizing:
        border-box;
}


/* ==========================================================
   ACCOUNT TYPE LABEL
========================================================== */

.mc-register-type-label {
    margin-bottom:
        10px;

    color:
        #253352;

    font-size:
        12px;

    font-weight:
        700;

    line-height:
        1.4;

    text-align:
        center;
}


/* ==========================================================
   ACCOUNT TYPE SWITCH
========================================================== */

.mc-register-type-switch {
    display:
        flex;

    width:
        100%;

    max-width:
        500px;

    min-height:
        52px;

    margin:
        0 auto;

    padding:
        4px;

    gap:
        4px;

    box-sizing:
        border-box;

    border-radius:
        50px;

    background:
        #F3F5F8;
}


/* ==========================================================
   ACCOUNT TYPE BUTTON
========================================================== */

.mc-register-type-option {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    flex:
        1 1 0;

    min-width:
        0;

    min-height:
        44px;

    padding:
        0 20px;

    border:
        0;

    border-radius:
        50px;

    background:
        transparent;

    color:
        #69778B;

    font-family:
        inherit;

    font-size:
        12px;

    font-weight:
        700;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.mc-register-type-option i {
    font-size:
        14px;
}


.mc-register-type-option:hover {
    color:
        #0A1946;
}


/* Active */

.mc-register-type-option.active {
    background:
        #0A1946;

    color:
        #ffffff;

    box-shadow:
        0 5px 14px rgba(10, 25, 70, 0.14);
}


/* ==========================================================
   FORM SECTION
========================================================== */

.mc-register-form-section,
.mc-register-role-section {
    width:
        100%;

    box-sizing:
        border-box;
}


/* ==========================================================
   ROLE SECTION
========================================================== */

.mc-register-role-section {
    display:
        none;

    padding-bottom:
        27px;

    margin-bottom:
        27px;

    border-bottom:
        1px solid #E9EDF4;
}


.mc-register-role-section.active {
    display:
        block;
}


/* ==========================================================
   SECTION HEADING
========================================================== */

.mc-register-section-heading {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        13px;

    width:
        100%;

    margin-bottom:
        20px;

    box-sizing:
        border-box;
}
/* ==========================================================
   SPACE AFTER BASIC DETAILS
========================================================== */

.mc-register-form-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #E9EDF4;
}

/* Extra breathing room below Basic Details */
.mc-register-form-section > .mc-register-grid {
    margin-bottom: 2px;
}

/*
|--------------------------------------------------------------------------
| IMPORTANT
|--------------------------------------------------------------------------
| DO NOT use ::before for the number.
|
| PHP already contains:
|
| <span>01</span>
|
| Therefore only the actual HTML span is displayed.
|--------------------------------------------------------------------------
*/

.mc-register-section-heading::before,
.mc-register-section-heading::after {
    content: none !important;
    display: none !important;
}


/* ==========================================================
   SECTION NUMBER
========================================================== */

.mc-register-section-heading > span {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        36px;

    height:
        36px;

    min-width:
        36px;

    flex:
        0 0 36px;

    margin:
        0;

    border-radius:
        50%;

    background:
        #0A1946;

    color:
        #D4AF37;

    font-size:
        11px;

    font-weight:
        800;

    line-height:
        1;

    box-sizing:
        border-box;
}


/* ==========================================================
   SECTION HEADING TEXT
========================================================== */

.mc-register-section-heading > div {
    min-width:
        0;

    flex:
        1 1 auto;
}


.mc-register-section-heading h2 {
    margin:
        0 0 3px;

    color:
        #0A1946;

    font-family:
        'Poppins',
        sans-serif;

    font-size:
        20px;

    font-weight:
        700;

    line-height:
        1.25;
}


.mc-register-section-heading p {
    margin:
        0;

    color:
        #7A8799;

    font-size:
        12px;

    line-height:
        1.5;
}


/* ==========================================================
   FORM GRID
========================================================== */

.mc-register-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        17px;

    width:
        100%;

    box-sizing:
        border-box;
}


/* Full-width field */

.mc-register-field-full {
    grid-column:
        1 / -1;
}


/* ==========================================================
   FIELD
========================================================== */

.mc-register-field {
    min-width:
        0;

    width:
        100%;
}


/* ==========================================================
   LABEL
========================================================== */

.mc-register-field label {
    display:
        block;

    margin:
        0 0 6px;

    color:
        #253352;

    font-size:
        12px;

    font-weight:
        700;

    line-height:
        1.4;
}


.mc-register-field label span {
    color:
        #D4AF37;
}


/* ==========================================================
   INPUT WRAPPER
========================================================== */

.mc-register-input-wrap {
    position:
        relative;

    width:
        100%;
}


/* ==========================================================
   INPUT / SELECT / TEXTAREA
========================================================== */

.mc-register-input-wrap input,
.mc-register-input-wrap select,
.mc-register-field textarea {
    width:
        100%;

    box-sizing:
        border-box;

    border:
        1px solid #D9E0EA;

    border-radius:
        10px;

    background:
        #FFFFFF;

    color:
        #18233F;

    font-family:
        inherit;

    font-size:
        13px;

    outline:
        none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* ==========================================================
   INPUT / SELECT
========================================================== */

.mc-register-input-wrap input,
.mc-register-input-wrap select {
    min-height:
        46px;

    padding:
        0 13px 0 42px;
}


/* ==========================================================
   TEXTAREA
========================================================== */

.mc-register-field textarea {
    min-height:
        120px;

    padding:
        11px 13px;

    resize:
        vertical;
}


/* ==========================================================
   INPUT ICON
========================================================== */

.mc-register-input-wrap > i {
    position:
        absolute;

    left:
        14px;

    top:
        50%;

    z-index:
        2;

    transform:
        translateY(-50%);

    color:
        #7A8799;

    font-size:
        14px;

    pointer-events:
        none;
}


/* ==========================================================
   FOCUS
========================================================== */

.mc-register-input-wrap input:focus,
.mc-register-input-wrap select:focus,
.mc-register-field textarea:focus {
    border-color:
        #0A1946;

    background:
        #FFFFFF;

    box-shadow:
        0 0 0 3px rgba(10, 25, 70, 0.07);

    outline:
        none;
}


/* ==========================================================
   PLACEHOLDER
========================================================== */

.mc-register-input-wrap input::placeholder,
.mc-register-field textarea::placeholder {
    color:
        #98A2B1;

    opacity:
        1;
}


/* ==========================================================
   PASSWORD TOGGLE
========================================================== */

.mc-register-password-toggle {
    position:
        absolute;

    right:
        7px;

    top:
        50%;

    width:
        34px;

    height:
        34px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    transform:
        translateY(-50%);

    border:
        0;

    border-radius:
        8px;

    background:
        transparent;

    color:
        #7A8799;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.mc-register-password-toggle:hover {
    background:
        #F3F5F8;

    color:
        #0A1946;
}


/* Password right padding */

.mc-register-input-wrap
input[type="password"],

.mc-register-input-wrap
input[data-password-visible="true"] {
    padding-right:
        48px;
}


/* ==========================================================
   TERMS
========================================================== */

.mc-register-terms {
    width:
        100%;

    padding-top:
        4px;

    box-sizing:
        border-box;
}


.mc-register-terms label {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    margin:
        0;

    color:
        #69778B;

    font-size:
        11px;

    font-weight:
        400;

    line-height:
        1.65;

    cursor:
        pointer;
}


.mc-register-terms input[type="checkbox"] {
    width:
        18px;

    height:
        18px;

    min-width:
        18px;

    margin:
        2px 0 0;

    accent-color:
        #0A1946;

    cursor:
        pointer;
}


.mc-register-terms a {
    color:
        #0A1946;

    font-weight:
        700;

    text-decoration:
        none;
}


.mc-register-terms a:hover {
    color:
        #D4AF37;

    text-decoration:
        underline;
}


/* ==========================================================
   FORM FOOTER
========================================================== */

.mc-register-form-footer {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;

    width:
        100%;

    padding-top:
        18px;

    box-sizing:
        border-box;
}


/* ==========================================================
   LOGIN LINK
========================================================== */

.mc-register-login {
    display:
        flex;

    align-items:
        center;

    gap:
        5px;

    color:
        #69778B;

    font-size:
        11px;

    line-height:
        1.4;
}


.mc-register-login a {
    color:
        #0A1946;

    font-weight:
        700;

    text-decoration:
        none;
}


.mc-register-login a:hover {
    color:
        #D4AF37;

    text-decoration:
        underline;
}


/* ==========================================================
   SUBMIT BUTTON
========================================================== */

.mc-register-submit {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    min-width:
        165px;

    min-height:
        46px;

    padding:
        0 23px;

    border:
        0;

    border-radius:
        9px;

    background:
        #0A1946;

    color:
        #FFFFFF;

    font-family:
        inherit;

    font-size:
        13px;

    font-weight:
        800;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.mc-register-submit:hover {
    background:
        #13265D;

    color:
        #FFFFFF;

    transform:
        translateY(-1px);

    box-shadow:
        0 7px 20px rgba(10, 25, 70, 0.16);
}


.mc-register-submit:active {
    transform:
        translateY(0);
}


.mc-register-submit:disabled {
    opacity:
        0.65;

    cursor:
        not-allowed;

    transform:
        none;

    box-shadow:
        none;
}


/* ==========================================================
   SECURITY NOTE
========================================================== */

.mc-register-security {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        6px;

    margin-top:
        12px;

    color:
        #8A95A6;

    font-size:
        10px;

    line-height:
        1.4;

    text-align:
        center;
}


.mc-register-security i {
    color:
        #198754;
}


/* ==========================================================
   SUCCESS
========================================================== */

.mc-register-success {
    width:
        100%;

    padding:
        20px 0 10px;

    text-align:
        center;

    box-sizing:
        border-box;
}


.mc-register-success-icon {
    width:
        64px;

    height:
        64px;

    margin:
        0 auto 15px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(212, 175, 55, 0.12);

    border:
        1px solid rgba(212, 175, 55, 0.32);

    color:
        #0A1946;

    font-size:
        27px;
}


.mc-register-success h2 {
    margin:
        0 0 9px;

    color:
        #0A1946;

    font-family:
        'Poppins',
        sans-serif;

    font-size:
        25px;

    font-weight:
        800;

    line-height:
        1.3;
}


.mc-register-success p {
    max-width:
        360px;

    margin:
        0 auto 18px;

    color:
        #69778B;

    font-size:
        13px;

    line-height:
        1.6;
}


.mc-register-login-button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    min-height:
        43px;

    padding:
        0 22px;

    border:
        0;

    border-radius:
        9px;

    background:
        #0A1946;

    color:
        #FFFFFF;

    font-size:
        13px;

    font-weight:
        700;

    text-decoration:
        none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.mc-register-login-button:hover {
    background:
        #13265D;

    color:
        #FFFFFF;

    transform:
        translateY(-1px);
}


/* ==========================================================
   VALIDATION
========================================================== */

.mc-register-field.is-invalid
input,

.mc-register-field.is-invalid
select,

.mc-register-field.is-invalid
textarea {
    border-color:
        #dc3545;

    background:
        #fff8f8;
}


.mc-register-field.is-valid
input,

.mc-register-field.is-valid
select,

.mc-register-field.is-valid
textarea {
    border-color:
        #198754;
}


/* ==========================================================
   DESKTOP HEIGHT CONTROL
========================================================== */

@media (min-width: 769px) {

    /*
     * Prevent unnecessary huge vertical spacing.
     * Card should finish naturally after the form.
     */

    .mc-register-section {
        padding-bottom:
            38px;
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    .mc-register-section {
        padding-left:
            15px;

        padding-right:
            15px;
    }


    .mc-register-layout {
        max-width:
            100%;
    }


    .mc-register-form-card {
        padding-left:
            28px;

        padding-right:
            28px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .mc-register-section {

        /*
         * The mobile/PWA topbar is sticky and remains in normal document flow.
         * Do not reserve the desktop navbar height here.
         */
        padding-top: 6px !important;

        padding-right:
            12px;

        padding-bottom:
            30px;

        padding-left:
            12px;
    }


    .mc-register-layout {
        border-radius:
            16px;
    }


    .mc-register-heading-card {
        padding:
            27px 20px 25px;
    }


    .mc-register-heading-card h1 {
        font-size:
            31px;
    }


    .mc-register-heading-card p {
        font-size:
            12px;
    }


    .mc-register-form-card {
        padding:
            26px 20px 27px;
    }


    .mc-register-grid {
        grid-template-columns:
            1fr;

        gap:
            15px;
    }


    .mc-register-field-full {
        grid-column:
            auto;
    }


    .mc-register-section-heading h2 {
        font-size:
            18px;
    }


    .mc-register-form-footer {

        align-items:
            stretch;

        flex-direction:
            column;

        gap:
            16px;
    }


    .mc-register-login {
        justify-content:
            center;

        order:
            1;
    }


    .mc-register-submit {
        width:
            100%;

        order:
            2;
    }


    .mc-register-type-switch {
        max-width:
            none;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .mc-register-section {

        padding-top: 5px !important;

        padding-right:
            8px;

        padding-bottom:
            25px;

        padding-left:
            8px;
    }


    .mc-register-layout {
        border-radius:
            14px;
    }


    .mc-register-heading-card {
        padding:
            23px 16px 22px;
    }


    .mc-register-heading-card h1 {
        font-size:
            26px;
    }


    .mc-register-heading-card p {
        font-size:
            11.5px;

        margin-top:
            9px;
    }


    .mc-register-form-card {
        padding:
            21px 15px 23px;
    }


    .mc-register-type {
        padding-bottom:
            22px;

        margin-bottom:
            23px;
    }


    .mc-register-type-option {
        min-height:
            42px;

        padding:
            0 8px;

        font-size:
            11px;
    }


    .mc-register-type-option i {
        font-size:
            12px;
    }


    .mc-register-section-heading {
        gap:
            10px;
    }


    .mc-register-section-heading > span {
        width:
            32px;

        height:
            32px;

        min-width:
            32px;

        flex-basis:
            32px;

        font-size:
            10px;
    }


    .mc-register-section-heading h2 {
        font-size:
            17px;
    }


    .mc-register-section-heading p {
        font-size:
            11px;
    }


    .mc-register-input-wrap input,
    .mc-register-input-wrap select {
        min-height:
            44px;

        font-size:
            12px;
    }


    .mc-register-field textarea {
        min-height:
            100px;

        font-size:
            12px;
    }


    .mc-register-submit {
        min-height:
            45px;

        font-size:
            12px;
    }


    .mc-register-login {
        font-size:
            10.5px;
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .mc-register-type-option,
    .mc-register-submit,
    .mc-register-login-button,
    .mc-register-password-toggle {

        transition:
            none !important;
    }

}
/* ==========================================================
   FINAL FORM SPACING CLEANUP
========================================================== */

/* Remove divider and unnecessary space after the final
   Student / Parent details section */
.mc-register-role-section.active {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}


/* Keep a small, clean gap before Terms */
.mc-register-terms {
    padding-top: 18px !important;
}


/* Reduce unnecessary space below the security message */
.mc-register-security {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}


/* Reduce bottom padding inside the white card */
.mc-register-form-card {
    padding-bottom: 16px !important;
}
.mc-register-policy-links span,
.mc-register-policy-links a,
.mc-register-policy-links a:hover,
@media(max-width:600px){

/* Validation feedback: preserve entered values and highlight only the field that needs attention. */
.mc-register-field.is-invalid input,
.mc-register-field.is-invalid select,
.mc-register-field.is-invalid textarea,
.mc-tutor-field.is-invalid input,
.mc-tutor-field.is-invalid select,
.mc-tutor-field.is-invalid textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220,53,69,.08);
}
.mc-register-field.is-invalid label,
.mc-tutor-field.is-invalid label {
    color: #c62828;
}
.mc-form-success {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #edf9f1;
    border: 1px solid #b9e5c7;
    color: #176b34;
    font-weight: 600;
}