/* =========================================================
   MIND POWER ARTISTS
   MPA OS AUTH SYSTEM
   LOGIN + REGISTER
   FINAL RESPONSIVE AUTH DESIGN
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;

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

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 121, 0, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 75%,
            rgba(255, 121, 0, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #02060d 0%,
            #07101d 48%,
            #02060d 100%
        );

    color: #ffffff;
    overflow-x: hidden;
}

:root {
    --mpa-orange: #ff7900;
    --mpa-orange-light: #ff922f;
    --mpa-orange-dark: #ed6500;

    --mpa-navy: #030914;
    --mpa-navy-2: #07111f;
    --mpa-navy-3: #0b1728;

    --mpa-white: #ffffff;

    --mpa-text: #111827;
    --mpa-muted: #667085;

    --mpa-border: #d7dce3;

    --mpa-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   AUTH WRAPPER
   ========================================================= */

.auth-wrapper {
    width: min(1420px, calc(100% - 48px));

    min-height: calc(100vh - 40px);

    margin: 20px auto;

    display: flex;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.20);

    border-radius: 24px;

    background: rgba(2, 8, 18, 0.86);

    box-shadow: var(--mpa-shadow);
}


/* =========================================================
   LEFT IMAGE
   DESKTOP = 45%
   ========================================================= */

.left-panel {
    position: relative;

    flex: 0 0 45%;
    width: 45%;

    min-height: 780px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    text-align: center;

    padding: 62px 38px 45px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(2, 7, 15, 0.05),
            rgba(2, 7, 15, 0.38)
        ),
        url("/frontend/src/assets/images/auth-b.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Image overlay */

.left-panel::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.03),
            rgba(0, 0, 0, 0.40)
        );

    z-index: 1;
}


/* Orange cinematic glow */

.left-panel::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -220px;
    bottom: -250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 121, 0, 0.22),
            transparent 68%
        );

    filter: blur(25px);

    pointer-events: none;

    z-index: 1;
}


.left-panel > * {
    position: relative;
    z-index: 2;
}


/* =========================================================
   LOGO
   ========================================================= */

.left-panel .logo {
    width: 135px;
    height: auto;

    object-fit: contain;

    margin-bottom: 20px;

    filter:
        drop-shadow(
            0 8px 24px rgba(255, 121, 0, 0.20)
        );
}


/* =========================================================
   LEFT TITLE
   ========================================================= */

.left-panel h1 {
    margin: 0 0 14px;

    color: var(--mpa-orange);

    font-size: clamp(24px, 2.3vw, 36px);

    line-height: 1.15;

    font-weight: 600;

    letter-spacing: 0.2px;
}


/* =========================================================
   LEFT DESCRIPTION
   ========================================================= */

.left-panel p {
    max-width: 350px;

    margin: 0;

    color: #f4f6f8;

    font-size: 16px;

    line-height: 1.75;

    font-weight: 400;
}


/* =========================================================
   RIGHT PANEL
   DESKTOP = 55%
   ========================================================= */

.right-panel {
    flex: 0 0 55%;

    width: 55%;

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 38px 48px;

    background:
        linear-gradient(
            135deg,
            #f7f8fa,
            #ffffff 48%,
            #f7f8fa
        );

    /*
      IMPORTANT:
      Form panel itself can scroll.
      This prevents the long service/course area
      from breaking the complete page.
    */
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: rgba(255, 121, 0, 0.45) transparent;
}

.right-panel::-webkit-scrollbar {
    width: 7px;
}

.right-panel::-webkit-scrollbar-track {
    background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 121, 0, 0.45);
    border-radius: 20px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background: var(--mpa-orange);
}


/* =========================================================
   AUTH CARD
   ========================================================= */

.auth-card {
    width: 100%;

    max-width: 690px;

    padding: 34px 42px;

    background: #ffffff;

    color: var(--mpa-text);

    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   AUTH HEADING
   ========================================================= */

.auth-heading {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 25px;
}


/* =========================================================
   PERSON ICON
   HIDDEN
   ========================================================= */

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


/* =========================================================
   CREATE ACCOUNT TITLE
   ========================================================= */

.auth-card h2 {
    margin: 0 0 7px;

    color: var(--mpa-orange);

    font-size: clamp(28px, 2.6vw, 36px);

    font-weight: 700;

    line-height: 1.18;

    letter-spacing: -0.6px;
}


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

.auth-card > p {
    margin: 0 0 25px;

    color: #667085;

    font-size: 14px;

    line-height: 1.6;
}


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

.auth-card form {
    width: 100%;
}


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

.auth-card form .form-row {
    display: grid;

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

    gap: 17px 20px;

    margin-bottom: 17px;
}


.auth-card form .form-group {
    min-width: 0;
}


/* =========================================================
   FULL WIDTH
   ========================================================= */

.auth-card form .form-group.full-width {
    grid-column: 1 / -1;
}


/* =========================================================
   LABELS
   ========================================================= */

.auth-card label {
    display: block;

    margin-bottom: 7px;

    color: #101828;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.4;
}


/* =========================================================
   INPUTS + SELECTS
   ========================================================= */

.auth-card .form-control {
    width: 100%;

    min-height: 50px;

    padding: 11px 14px;

    border: 1px solid var(--mpa-border);

    border-radius: 10px;

    background: #ffffff;

    color: #101828;

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

    font-size: 13px;

    outline: none;

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


.auth-card .form-control:hover {
    border-color: #b9c1cc;
}


.auth-card .form-control:focus {
    border-color: var(--mpa-orange);

    background: #ffffff;

    color: #101828;

    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(255, 121, 0, 0.10);
}


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

.auth-card select.form-control {
    cursor: pointer;
    appearance: auto;
    max-height: 52px;
    overflow: hidden;
}

.auth-card select.form-control option {
    color: #101828;
    background: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    padding: 10px;
}

/* =========================================================
   CUSTOM COURSE / SERVICE DROPDOWN
   Only replaces the browser popup; the original select
   remains in the DOM for the existing form/JS logic.
   ========================================================= */

.mpa-custom-select {
    position: relative;
    width: 100%;
    z-index: 30;
}

.mpa-custom-trigger {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--mpa-border);
    border-radius: 10px;
    background: #ffffff;
    color: #667085;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mpa-custom-trigger:hover,
.mpa-custom-select.is-open .mpa-custom-trigger {
    border-color: var(--mpa-orange);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, .10);
}

.mpa-custom-trigger.has-value {
    color: #101828;
}

.mpa-custom-arrow {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease, border-color .2s ease;
}

.mpa-custom-select.is-open .mpa-custom-arrow {
    transform: rotate(225deg) translateY(-1px);
    border-color: var(--mpa-orange);
}

.mpa-custom-menu {
    position: fixed;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 7px;
    background: #ffffff;
    border: 1px solid rgba(255, 121, 0, .22);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    z-index: 100000;
    scrollbar-width: thin;
    scrollbar-color: var(--mpa-orange) #f1f1f1;
}

.mpa-custom-menu::-webkit-scrollbar {
    width: 7px;
}

.mpa-custom-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 20px;
}

.mpa-custom-menu::-webkit-scrollbar-thumb {
    background: var(--mpa-orange);
    border-radius: 20px;
}

.mpa-option-group {
    padding: 9px 11px 6px;
    color: var(--mpa-orange);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.mpa-custom-option {
    width: 100%;
    padding: 10px 11px;
    border-radius: 8px;
    color: #344054;
    background: transparent;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.mpa-custom-option:hover {
    color: #101828;
    background: rgba(255, 121, 0, .08);
}

.mpa-custom-option.is-selected {
    color: #ffffff;
    background: linear-gradient(135deg, var(--mpa-orange-light), var(--mpa-orange));
    font-weight: 600;
}

@media (max-width: 480px) {
    .mpa-custom-menu {
        max-height: 220px;
        padding: 6px;
    }

    .mpa-custom-option {
        padding: 9px;
        font-size: 11.5px;
    }

    .mpa-option-group {
        padding: 8px 9px 5px;
        font-size: 9px;
    }
}


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

.auth-card .form-control::placeholder {
    color: #98a2b3;
}


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

.password-wrapper {
    position: relative;
}


.password-wrapper .form-control {
    padding-right: 48px;
}


.password-wrapper i {
    position: absolute;

    top: 50%;

    right: 15px;

    transform: translateY(-50%);

    color: #667085;

    font-size: 17px;

    cursor: pointer;

    transition: color 0.2s ease;
}


.password-wrapper i:hover {
    color: var(--mpa-orange);
}


/* =========================================================
   INTERESTED IN
   ========================================================= */

.interest-group {
    margin-top: 2px;
}


/* =========================================================
   INTEREST RADIO / OPTIONS
   ========================================================= */

.interest-options {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 22px;

    margin-top: 8px;
}

.interest-options label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin: 0;

    color: #475467;

    font-size: 13px;

    font-weight: 500;

    cursor: pointer;
}

.interest-options input[type="radio"] {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--mpa-orange);

    cursor: pointer;
}


/* =========================================================
   DYNAMIC COURSE / SERVICE AREA
   ========================================================= */

#itemSelection {
    width: 100%;

    margin-top: 16px;

    padding: 15px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 121, 0, 0.055),
            rgba(255, 121, 0, 0.015)
        );

    border: 1px solid rgba(255, 121, 0, 0.20);

    /*
      IMPORTANT:
      Long service list will not stretch the registration card.
      User can scroll inside this section.
    */
    max-height: 235px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 121, 0, 0.55)
        transparent;

    animation:
        selectionReveal 0.25s ease;
}


#itemSelection::-webkit-scrollbar {
    width: 6px;
}

#itemSelection::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);

    border-radius: 20px;
}

#itemSelection::-webkit-scrollbar-thumb {
    background: rgba(255, 121, 0, 0.55);

    border-radius: 20px;
}

#itemSelection::-webkit-scrollbar-thumb:hover {
    background: var(--mpa-orange);
}


/* Hidden state */

#itemSelection[hidden] {
    display: none !important;
}


/* Visible state */

#itemSelection:not([hidden]) {
    display: block;
}


/* =========================================================
   COURSE / SERVICE SELECT WRAPPER
   ========================================================= */

#courseSelection,
#serviceSelection {
    width: 100%;

    min-width: 0;
}


/* =========================================================
   DYNAMIC SELECT
   ========================================================= */

#courseSelect,
#serviceSelect {
    width: 100%;

    min-width: 0;

    display: block;
}


/* =========================================================
   SELECTION ANIMATION
   ========================================================= */

@keyframes selectionReveal {
    from {
        opacity: 0;

        transform:
            translateY(-5px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   SELECTED ITEM PREVIEW
   ========================================================= */

.selection-preview {
    display: none;

    align-items: center;

    gap: 10px;

    margin-top: 9px;

    padding: 9px 11px;

    border-radius: 8px;

    background:
        rgba(255, 121, 0, 0.06);

    border:
        1px solid
        rgba(255, 121, 0, 0.16);
}


.selection-preview.visible {
    display: flex;
}


/* =========================================================
   PREVIEW ICON
   ========================================================= */

.selection-preview-icon {
    width: 25px;

    height: 25px;

    flex: 0 0 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--mpa-orange);

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   PREVIEW CONTENT
   ========================================================= */

.selection-preview-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.selection-preview-content strong {
    color: #101828;

    font-size: 12px;

    font-weight: 600;
}


.selection-preview-content span {
    color: #667085;

    font-size: 11px;
}


/* =========================================================
   TERMS & CONDITIONS
   FIXED ALIGNMENT
   ========================================================= */

.form-check {
    width: 100%;

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 17px;

    padding: 0;

    /*
      Prevent Bootstrap/default styles from pushing
      checkbox outside the card.
    */
    margin-left: 0 !important;
    margin-right: 0 !important;
}


.form-check-input {
    position: relative;

    flex: 0 0 18px;

    width: 18px;

    height: 18px;

    min-width: 18px;

    min-height: 18px;

    margin: 2px 0 0 0 !important;

    padding: 0;

    cursor: pointer;

    border:
        1px solid #c7cdd6;

    border-radius: 5px;

    accent-color: var(--mpa-orange);
}


.form-check-input:checked {
    background-color: var(--mpa-orange);

    border-color: var(--mpa-orange);
}


.form-check-input:focus {
    box-shadow:
        0 0 0 3px
        rgba(255, 121, 0, 0.12);
}


/*
   IMPORTANT:
   Label stays beside checkbox instead of moving
   to the far left/right.
*/

.form-check-label {
    flex: 1 1 auto;

    min-width: 0;

    margin: 0 !important;

    padding: 0 !important;

    color: #667085 !important;

    font-size: 12px !important;

    font-weight: 400 !important;

    line-height: 1.55;

    text-align: left;
}


.form-check-label a {
    color: var(--mpa-orange);

    text-decoration: none;

    font-weight: 500;
}


.form-check-label a:hover {
    color: var(--mpa-orange-dark);

    text-decoration: underline;
}


/* =========================================================
   CREATE ACCOUNT BUTTON
   ========================================================= */

.auth-btn {
    width: 100%;

    min-height: 53px;

    margin-top: 19px;

    padding: 12px 18px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--mpa-orange-light),
            var(--mpa-orange)
        );

    color: #ffffff;

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

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 22px
        rgba(255, 121, 0, 0.20);

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


.auth-btn:hover {
    color: #ffffff;

    transform: translateY(-1px);

    filter: brightness(1.03);

    box-shadow:
        0 12px 28px
        rgba(255, 121, 0, 0.28);
}


.auth-btn:active {
    transform: translateY(0);
}


.auth-btn:disabled {
    opacity: 0.75;

    cursor: not-allowed;

    transform: none;
}


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

.bottom-link {
    margin-top: 19px;

    text-align: center;

    color: #667085;

    font-size: 13px;
}


.bottom-link a {
    margin-left: 5px;

    color: var(--mpa-orange);

    text-decoration: none;

    font-weight: 600;
}


.bottom-link a:hover {
    color: var(--mpa-orange-dark);

    text-decoration: underline;
}


/* =========================================================
   TOAST
   ========================================================= */

.mpa-toast {
    position: fixed;

    top: 24px;

    right: 24px;

    z-index: 99999;

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 300px;

    max-width: 420px;

    padding: 13px 16px;

    border-radius: 11px;

    background: #ffffff;

    color: #101828;

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.20);

    border-left: 4px solid;

    opacity: 0;

    transform: translateY(-12px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.mpa-toast.show {
    opacity: 1;

    transform: translateY(0);
}


.mpa-toast-success {
    border-left-color: #12b76a;
}


.mpa-toast-danger {
    border-left-color: #f04438;
}


.mpa-toast-icon {
    width: 28px;

    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 28px;

    border-radius: 50%;

    background:
        rgba(255, 121, 0, 0.10);

    color: var(--mpa-orange);

    font-weight: 700;
}


.mpa-toast-message {
    font-size: 12px;

    line-height: 1.5;
}


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

@media (max-width: 1150px) {

    .auth-wrapper {
        width: calc(100% - 32px);

        min-height: calc(100vh - 32px);

        margin: 16px auto;
    }


    .left-panel {
        flex-basis: 45%;

        width: 45%;

        padding: 48px 25px;

        background-position: center center;
    }


    .right-panel {
        flex-basis: 55%;

        width: 55%;

        padding: 28px;
    }


    .auth-card {
        max-width: 680px;

        padding: 32px 34px;
    }


    #itemSelection {
        max-height: 220px;
    }
}


/* =========================================================
   SMALL LAPTOP / TABLET
   ========================================================= */

@media (max-width: 950px) {

    .auth-wrapper {
        width: calc(100% - 24px);
    }


    .left-panel {
        flex-basis: 42%;

        width: 42%;

        padding: 40px 20px;

        background-position: 65% center;
    }


    .right-panel {
        flex-basis: 58%;

        width: 58%;

        padding: 24px;
    }


    .left-panel .logo {
        width: 110px;
    }


    .left-panel h1 {
        font-size: 25px;
    }


    .left-panel p {
        font-size: 13px;
    }


    .auth-card {
        padding: 28px;
    }


    .auth-card form .form-row {
        gap: 15px;
    }


    #itemSelection {
        max-height: 210px;
    }
}


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

@media (max-width: 900px) {

    body {
        min-height: 100vh;

        background:
            radial-gradient(
                circle at 50% 0%,
                rgba(255, 121, 0, 0.10),
                transparent 30%
            ),
            #030914;
    }


    .auth-wrapper {
        width: 100%;

        min-height: 100vh;

        margin: 0;

        border: 0;

        border-radius: 0;

        display: block;

        background: transparent;

        box-shadow: none;
    }


    /* =============================================
       IMAGE
       ============================================== */

    .left-panel {
        width: 100%;

        flex: none;

        min-height: 300px;

        height: 300px;

        padding: 30px 20px 24px;

        background-position: center center;
    }


    .left-panel .logo {
        width: 95px;

        margin-bottom: 12px;
    }


    .left-panel h1 {
        font-size: 22px;

        margin-bottom: 8px;
    }


    .left-panel p {
        max-width: 320px;

        font-size: 12px;

        line-height: 1.6;
    }


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

    .right-panel {
        width: 100%;

        flex: none;

        min-height: auto;

        padding: 20px 14px 30px;

        background: #f7f8fa;

        overflow: visible;
    }


    .auth-card {
        width: 100%;

        max-width: 680px;

        margin: 0 auto;

        padding: 28px 20px;

        border-radius: 16px;

        box-shadow:
            0 10px 30px
            rgba(15, 23, 42, 0.08);
    }


    .auth-card h2 {
        font-size: 27px;
    }


    .auth-card > p {
        font-size: 13px;

        margin-bottom: 23px;
    }


    .auth-card form .form-row {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-bottom: 15px;
    }


    .auth-card form .form-group.full-width {
        grid-column: auto;
    }


    .auth-card .form-control {
        min-height: 52px;
    }


    /* =============================================
       COURSE / SERVICE SELECTION
       ============================================== */

    #itemSelection {
        width: 100%;

        max-height: 230px;

        padding: 12px;

        margin-top: 14px;

        overflow-y: auto;

        overflow-x: hidden;
    }


    #courseSelect,
    #serviceSelect {
        width: 100%;

        min-width: 0;
    }


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

    .form-check {
        width: 100%;

        gap: 8px;

        align-items: flex-start;

        margin-top: 16px;
    }


    .form-check-input {
        flex: 0 0 18px;

        width: 18px;

        height: 18px;

        margin-top: 2px !important;
    }


    .form-check-label {
        font-size: 12px !important;

        line-height: 1.55;

        word-break: normal;
    }


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

    .auth-btn {
        min-height: 54px;

        font-size: 14px;

        padding: 12px 16px;
    }
}


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

@media (max-width: 480px) {

    .left-panel {
        min-height: 245px;

        height: 245px;

        padding: 25px 16px;

        background-position: center center;
    }


    .left-panel .logo {
        width: 82px;
    }


    .left-panel h1 {
        font-size: 20px;
    }


    .left-panel p {
        max-width: 280px;

        font-size: 11.5px;
    }


    .right-panel {
        padding: 14px 9px 25px;
    }


    .auth-card {
        padding: 24px 16px;

        border-radius: 14px;
    }


    .auth-card h2 {
        font-size: 24px;
    }


    .auth-card > p {
        font-size: 12px;

        margin-bottom: 20px;
    }


    .auth-card label {
        font-size: 12.5px;
    }


    .auth-card .form-control {
        min-height: 50px;

        font-size: 13px;
    }


    /* Long course/service list */
    #itemSelection {
        max-height: 215px;

        padding: 11px;
    }


    .selection-preview {
        padding: 8px;
    }


    .selection-preview-content strong {
        font-size: 11px;
    }


    .selection-preview-content span {
        font-size: 10px;
    }


    /* Terms remain inside card */
    .form-check {
        align-items: flex-start;

        gap: 7px;
    }


    .form-check-input {
        flex-basis: 17px;

        width: 17px;

        height: 17px;

        min-width: 17px;

        min-height: 17px;
    }


    .form-check-label {
        font-size: 11.5px !important;

        line-height: 1.5;
    }


    .auth-btn {
        min-height: 52px;

        font-size: 13px;
    }


    .bottom-link {
        font-size: 12px;
    }


    .mpa-toast {
        left: 12px;

        right: 12px;

        min-width: 0;

        width: auto;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .left-panel {
        min-height: 220px;

        height: 220px;

        padding: 22px 14px;
    }


    .left-panel .logo {
        width: 72px;
    }


    .left-panel h1 {
        font-size: 19px;
    }


    .auth-card {
        padding: 22px 14px;
    }


    .auth-card h2 {
        font-size: 22px;
    }


    .auth-btn {
        font-size: 12px;

        padding-left: 10px;

        padding-right: 10px;
    }


    #itemSelection {
        max-height: 200px;
    }
}


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

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
/* =========================================================
   MPA CUSTOM COURSE / SERVICE DROPDOWN
   FINAL FIX
   ========================================================= */

/* Dynamic selection container */
#itemSelection {
    position: relative !important;

    width: 100% !important;

    margin-top: 14px !important;

    padding: 12px !important;

    border-radius: 12px !important;

    overflow: visible !important;

    max-height: none !important;

    min-height: 0 !important;

    box-sizing: border-box !important;

    z-index: 50 !important;
}


/* Native select is kept in DOM for form validation,
   but visually hidden */
.mpa-native-select-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   DROPDOWN WRAPPER
   ========================================================= */

.mpa-custom-dropdown {
    position: relative !important;

    width: 100% !important;

    display: block !important;

    z-index: 100 !important;

    font-family: "Poppins", sans-serif !important;
}


/* =========================================================
   DROPDOWN BUTTON
   ========================================================= */

.mpa-custom-dropdown-button {
    position: relative !important;

    width: 100% !important;

    min-height: 48px !important;

    padding: 12px 42px 12px 14px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: space-between !important;

    gap: 10px !important;

    border: 1px solid #d0d5dd !important;

    border-radius: 10px !important;

    background: #ffffff !important;

    color: #101828 !important;

    font-family: "Poppins", sans-serif !important;

    font-size: 13px !important;

    font-weight: 500 !important;

    line-height: 1.4 !important;

    text-align: left !important;

    cursor: pointer !important;

    outline: none !important;

    box-sizing: border-box !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease !important;
}


.mpa-custom-dropdown-button:hover {
    border-color: #ff7900 !important;
}


.mpa-custom-dropdown.open
.mpa-custom-dropdown-button {

    border-color: #ff7900 !important;

    box-shadow:
        0 0 0 3px rgba(255, 121, 0, 0.10) !important;
}


/* Text */

.mpa-dropdown-text {
    min-width: 0 !important;

    flex: 1 1 auto !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    white-space: nowrap !important;
}


/* =========================================================
   ARROW
   ========================================================= */

.mpa-dropdown-arrow {

    position: absolute !important;

    top: 50% !important;

    right: 13px !important;

    width: 18px !important;

    height: 18px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    transform: translateY(-50%) !important;

    color: #667085 !important;

    pointer-events: none !important;

    transition: transform .2s ease !important;
}


.mpa-dropdown-arrow svg {

    display: block !important;

    width: 18px !important;

    height: 18px !important;

    max-width: 18px !important;

    max-height: 18px !important;

    fill: none !important;

    stroke: currentColor !important;

    stroke-width: 2 !important;
}


/* Rotate arrow when open */

.mpa-custom-dropdown.open
.mpa-dropdown-arrow {

    transform:
        translateY(-50%)
        rotate(180deg) !important;

    color: #ff7900 !important;
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.mpa-custom-dropdown-menu {

    position: absolute !important;

    top: calc(100% + 6px) !important;

    left: 0 !important;

    right: 0 !important;

    width: 100% !important;

    max-height: 250px !important;

    overflow-y: auto !important;

    overflow-x: hidden !important;

    padding: 6px !important;

    border: 1px solid #e4e7ec !important;

    border-radius: 10px !important;

    background: #ffffff !important;

    box-shadow:
        0 12px 30px rgba(16, 24, 40, 0.16) !important;

    z-index: 99999 !important;

    box-sizing: border-box !important;

    display: none !important;

    scrollbar-width: thin !important;

    scrollbar-color:
        rgba(255, 121, 0, .55)
        transparent !important;
}


/* OPEN */

.mpa-custom-dropdown.open
.mpa-custom-dropdown-menu {

    display: block !important;
}


/* Chrome scrollbar */

.mpa-custom-dropdown-menu::-webkit-scrollbar {

    width: 6px !important;
}


.mpa-custom-dropdown-menu::-webkit-scrollbar-track {

    background: transparent !important;
}


.mpa-custom-dropdown-menu::-webkit-scrollbar-thumb {

    background:
        rgba(255, 121, 0, .55) !important;

    border-radius: 20px !important;
}


.mpa-custom-dropdown-menu::-webkit-scrollbar-thumb:hover {

    background:
        #ff7900 !important;
}


/* =========================================================
   GROUP TITLE
   ========================================================= */

.mpa-dropdown-group-title {

    padding:
        9px 10px 6px !important;

    color: #ff7900 !important;

    font-family: "Poppins", sans-serif !important;

    font-size: 11px !important;

    font-weight: 700 !important;

    text-transform: uppercase !important;

    letter-spacing: .4px !important;

    line-height: 1.3 !important;

    background: #fffaf5 !important;

    border-radius: 6px !important;

    margin-bottom: 3px !important;

    pointer-events: none !important;
}


/* =========================================================
   OPTIONS
   ========================================================= */

.mpa-custom-dropdown-option {

    width: 100% !important;

    min-height: 42px !important;

    padding:
        9px 10px !important;

    display: flex !important;

    align-items: center !important;

    border: 0 !important;

    border-radius: 7px !important;

    background: transparent !important;

    color: #101828 !important;

    font-family: "Poppins", sans-serif !important;

    font-size: 12px !important;

    font-weight: 500 !important;

    line-height: 1.45 !important;

    text-align: left !important;

    cursor: pointer !important;

    box-sizing: border-box !important;

    transition:
        background .15s ease,
        color .15s ease !important;
}


/* Hover */

.mpa-custom-dropdown-option:hover {

    background:
        rgba(255, 121, 0, .08) !important;

    color: #e86e00 !important;
}


/* Selected */

.mpa-custom-dropdown-option.selected {

    background:
        rgba(255, 121, 0, .12) !important;

    color: #e86e00 !important;

    font-weight: 600 !important;
}


/* Option text */

.mpa-option-name {

    display: block !important;

    width: 100% !important;

    min-width: 0 !important;

    white-space: normal !important;

    overflow-wrap: anywhere !important;
}


/* =========================================================
   SELECTION PREVIEW
   ========================================================= */

.selection-preview {

    width: 100% !important;

    margin-top: 8px !important;

    padding: 9px 10px !important;

    display: none !important;

    align-items: center !important;

    gap: 9px !important;

    border-radius: 8px !important;

    background:
        rgba(255, 121, 0, .07) !important;

    border:
        1px solid rgba(255, 121, 0, .16) !important;

    box-sizing: border-box !important;
}


.selection-preview.visible {

    display: flex !important;
}


.selection-preview-icon {

    width: 23px !important;

    height: 23px !important;

    min-width: 23px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    border-radius: 50% !important;

    background: #ff7900 !important;

    color: #ffffff !important;

    font-size: 12px !important;

    font-weight: 700 !important;
}


.selection-preview-content {

    min-width: 0 !important;

    display: flex !important;

    flex-direction: column !important;

    gap: 2px !important;
}


.selection-preview-content strong {

    color: #101828 !important;

    font-size: 11px !important;

    font-weight: 600 !important;

    line-height: 1.35 !important;
}


.selection-preview-content span {

    color: #667085 !important;

    font-size: 10px !important;

    line-height: 1.35 !important;
}


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

@media (max-width: 600px) {

    #itemSelection {

        margin-top: 10px !important;

        padding: 9px !important;

        border-radius: 10px !important;

    }


    .mpa-custom-dropdown-button {

        min-height: 46px !important;

        padding:
            11px 40px 11px 12px !important;

        font-size: 12px !important;

    }


    .mpa-custom-dropdown-menu {

        max-height: 230px !important;

        padding: 5px !important;

    }


    .mpa-custom-dropdown-option {

        min-height: 40px !important;

        padding:
            8px 9px !important;

        font-size: 11px !important;

    }


    .mpa-dropdown-group-title {

        padding:
            8px 9px 5px !important;

        font-size: 10px !important;

    }


    .mpa-dropdown-arrow {

        right: 11px !important;

    }


    .mpa-dropdown-arrow svg {

        width: 16px !important;

        height: 16px !important;

    }

}


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

@media (max-width: 380px) {

    .mpa-custom-dropdown-menu {

        max-height: 210px !important;

    }


    .mpa-custom-dropdown-option {

        font-size: 10.5px !important;

        padding:
            8px !important;

    }

}
/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-options {
    margin-top: 2px;
}

.login-options .form-check {
    display: flex;
    align-items: center;
    gap: 7px;
}

.login-options .form-check-input {
    margin-top: 0;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.login-options .form-check-input:checked {
    background-color: var(--mpa-orange);
    border-color: var(--mpa-orange);
}

.login-options .form-check-label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.login-options a {
    color: var(--mpa-orange);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.login-options a:hover {
    color: var(--mpa-orange-dark);
}


/* Login button uses same MPA branding */

#loginButton {
    width: 100%;
    min-height: 53px;
    margin-top: 10px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #ff922f,
            #ff7900
        );

    color: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(255, 121, 0, 0.22);

    transition:
        transform .2s ease,
        filter .2s ease,
        box-shadow .2s ease;
}

#loginButton:hover {
    transform: translateY(-1px);

    filter: brightness(1.04);

    box-shadow:
        0 15px 32px
        rgba(255, 121, 0, 0.30);
}

#loginButton:active {
    transform: translateY(0);
}

#loginButton:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}


/* Bottom register text */

.bottom-text {
    margin-top: 24px;

    text-align: center;

    color: #667085;

    font-size: 13px;

    font-weight: 400;
}

.bottom-text a {
    margin-left: 5px;

    color: var(--mpa-orange);

    text-decoration: none;

    font-weight: 600;
}

.bottom-text a:hover {
    color: var(--mpa-orange-dark);
}


/* Mobile */

@media (max-width: 600px) {

    .login-options {
        margin-bottom: 18px !important;
    }

    .login-options a {
        font-size: 11px;
    }

    #loginButton {
        min-height: 52px;
        font-size: 13px;
    }

    .bottom-text {
        margin-top: 20px;
        font-size: 12px;
    }

}

/* =========================================================
   REGISTER — EXISTING ACCOUNT + ERROR (MPA-150)
========================================================= */

.auth-notice {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 122, 0, 0.35);
    border-radius: 14px;
    background: rgba(255, 122, 0, 0.08);
}

.auth-notice p {
    margin: 0 0 12px;
    color: #7a3d00;
    font-weight: 600;
}

.auth-notice .auth-notice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0 28px;
    text-decoration: none;
}

.auth-error {
    margin: 14px 0 0;
    color: #b52a2a;
    font-size: 13px;
    font-weight: 600;
}
