/* ================================================
 * TABS — centered, transparent, top-rounded tabs
 * ============================================== */
.lmsc-auth .lmsc-tabs {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-bottom: 14px;
    border-bottom: 2px solid #ffffff59;
}

.lmsc-auth .lmsc-tab-btn {
    padding: 8px 32px;
    cursor: pointer;
    border: 1px solid #ffffff;
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    border-radius: 6px 6px 0 0;
    margin: -2px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none !important;
}

.lmsc-auth .lmsc-tab-btn:hover {
    background: rgba(18, 96, 142, 0.25) !important;
    background-color: rgba(18, 96, 142, 0.25) !important;
    border-color: #12608E !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.lmsc-auth .lmsc-tab-btn.active,
.lmsc-auth .lmsc-tab-btn.active:hover,
.lmsc-auth .lmsc-tab-btn.active:focus {
    background: #12608E !important;
    background-color: #12608E !important;
    border: 2px solid #ffffff;
    border-color: #ffffff !important;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
}

/* ================================================
 * TAB PANELS
 * ============================================== */
.lmsc-auth .lmsc-tab        { display: none; }
.lmsc-auth .lmsc-tab.active { display: block; }

/* ================================================
 * FIELD GROUPS
 * ============================================== */
.lmsc-form .lmsc-field {
    display: block;
    width: 100%;
    margin-bottom: 18px;
    box-sizing: border-box;
}

/* ================================================
 * LABELS — 16px desktop
 * ============================================== */
.lmsc-form label {
    display: block;
    padding-bottom: 12px;
    color: var(--e-global-color-b9ec9d9, #ffffff);
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.lmsc-required { color: #ff6b6b; }

/* ================================================
 * INPUTS
 * ============================================== */
.lmsc-form .lmsc-input {
    display: block;
    width: 100%;
    padding: .5rem 1rem;
    border: 1px solid #ffffff;
    border-radius: 3px;
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    box-sizing: border-box;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* Filled / focused -> white background, dark text.
   background-color NOT background shorthand —
   shorthand resets background-image (select arrow). */
.lmsc-form .lmsc-input:focus,
.lmsc-form .lmsc-input:not(:placeholder-shown) {
    outline: none;
    background-color: #ffffff;
    color: #1f2124;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(18, 96, 142, 0.3);
}

.lmsc-form .lmsc-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* ================================================
 * SELECT — native arrow kept
 * ============================================== */
.lmsc-form select.lmsc-input {
    cursor: pointer;
    padding-right: 2rem;
}

.lmsc-form select.lmsc-input option {
    background: #1f2124;
    color: #ffffff;
}

/* ================================================
 * PASSWORD WRAPPER + EYE BUTTON
 * ============================================== */
.lmsc-pass {
    position: relative;
    display: block;
    width: 100%;
}

.lmsc-pass .lmsc-input {
    padding-right: 46px;
}

.lmsc-eye-btn,
.lmsc-eye-btn:hover,
.lmsc-eye-btn:focus,
.lmsc-eye-btn:active {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    background-color: transparent !important;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    line-height: 1;
    transition: color 0.2s;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Input focused -> icon black */
.lmsc-pass:focus-within .lmsc-eye-btn,
.lmsc-pass:focus-within .lmsc-eye-btn:hover,
.lmsc-pass:focus-within .lmsc-eye-btn:focus {
    color: #000000 !important;
    background-color: transparent !important;
}

/* Input filled but not focused -> also black */
.lmsc-pass:has(.lmsc-input:not(:placeholder-shown)) .lmsc-eye-btn,
.lmsc-pass:has(.lmsc-input:not(:placeholder-shown)) .lmsc-eye-btn:hover {
    color: #000000 !important;
    background-color: transparent !important;
}

/* ================================================
 * SUBMIT BUTTON
 * ============================================== */
.lmsc-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #12608E !important;
    background-color: #12608E !important;
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    transition: opacity 0.2s;
    text-decoration: none !important;
}

.lmsc-btn:hover,
.lmsc-btn:focus,
.lmsc-btn:active {
    background: #12608E !important;
    background-color: #12608E !important;
    color: #ffffff !important;
    opacity: 0.85;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* ================================================
 * REMEMBER ME
 * ============================================== */
.lmsc-remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: .85em;
}

.lmsc-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--e-global-color-b9ec9d9, #ffffff);
    font-family: "Poppins", Sans-serif;
    font-weight: 400;
    line-height: 1.4;
    padding-bottom: 0;
    margin-bottom: 0;
}

.lmsc-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
    accent-color: #12608E;
    flex-shrink: 0;
}

/* ================================================
 * LOST PASSWORD
 * ============================================== */
.lmsc-lost-password-row {
    margin-top: 14px;
    font-size: .85em;
}

.lmsc-lost-password {
    color: var(--e-global-color-b9ec9d9, #ffffff);
    font-family: "Poppins", Sans-serif;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.lmsc-lost-password:hover {
    opacity: 0.75;
    color: #ffffff;
}

/* ================================================
 * TERMS & CONDITIONS
 * ============================================== */
.lmsc-terms-field {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.lmsc-form .lmsc-terms-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    color: var(--e-global-color-b9ec9d9, #ffffff) !important;
    font-family: "Poppins", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.lmsc-terms-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #12608E;
    flex-shrink: 0;
}

.lmsc-terms-label a {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.lmsc-terms-label a:hover { opacity: 0.8; }

.lmsc-terms-note {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

.lmsc-terms-note a {
    color: #12608E;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.lmsc-terms-note a:hover { opacity: 0.8; }

/* ================================================
 * ERROR MESSAGE
 * ============================================== */
.lmsc-error {
    color: #ff6b6b;
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.4);
    padding: 8px 14px;
    border-radius: 4px;
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ================================================
 * MOBILE — max-width: 767px
 * ============================================== */
@media (max-width: 767px) {

    .lmsc-auth .lmsc-tab-btn {
        padding: 7px 20px;
        font-size: 13px;
    }

    .lmsc-form label {
        font-size: 14px;
        line-height: 21px;
        padding-bottom: 8px;
    }

    .lmsc-form .lmsc-input {
        font-size: 14px;
        padding: .45rem .875rem;
    }

    .lmsc-form .lmsc-field {
        margin-bottom: 14px;
    }

    .lmsc-form .lmsc-terms-label {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .lmsc-terms-note {
        font-size: 12px;
        line-height: 1.55;
    }

    .lmsc-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .lmsc-lost-password-row { margin-top: 12px; }
    .lmsc-error             { font-size: 13px; }
}

/* ================================================
 * CHECKOUT LOGIN GATE (2.3.0)
 * The card keeps its white-on-dark styling; the gate
 * panel supplies the dark background on the checkout page.
 * ============================================== */
.lmsc-checkout-gate {
    background: linear-gradient(270deg, #003862 0%, #00203E 100%);
    border-radius: 10px;
    padding: 28px 30px 26px;
    color: #ffffff;
}
.lmsc-checkout-gate .lmsc-gate-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-family: "Montserrat", Sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}
.lmsc-checkout-gate .lmsc-gate-sub {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Poppins", Sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
.lmsc-auth--login-only .lmsc-tabs { display: none; }
.lmsc-auth--login-only .lmsc-tab#lmsc-login { display: block; }
.lmsc-checkout-gate .lmsc-form .lmsc-btn { width: 100%; text-align: center; }
.lmsc-gate-social {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lmsc-gate-register {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Poppins", Sans-serif;
    font-size: 15px;
    text-align: center;
}
.lmsc-gate-register a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}
.lmsc-gate-register a:hover { opacity: 0.85; }
.lmsc-must-login {
    max-width: 1254px;
    margin: 20px auto 40px;
    padding: 0 20px;
    font-family: "Poppins", Sans-serif;
}
@media (max-width: 767px) {
    .lmsc-checkout-gate { padding: 22px 18px 20px; }
    .lmsc-checkout-gate .lmsc-gate-title { font-size: 20px; }
}

/* WooCommerce's frontend JS wraps every password input inside a .woocommerce
 * container and injects its own show/hide toggle. The card has its own eye
 * button, so neutralise WooCommerce's copy wherever the card is rendered. */
.lmsc-auth .lmsc-pass .show-password-input { display: none !important; }
.lmsc-auth .lmsc-pass span.password-input { position: static; display: block; width: 100%; }

/* Gate on the checkout page: the card's text colours must not depend on
 * Elementor global colour variables (defined on production, not on staging). */
.lmsc-checkout-gate .lmsc-form label,
.lmsc-checkout-gate .lmsc-remember,
.lmsc-checkout-gate .lmsc-remember-row,
.lmsc-checkout-gate .lmsc-lost-password,
.lmsc-checkout-gate .lmsc-terms-label,
.lmsc-checkout-gate .lmsc-terms-note,
.lmsc-checkout-gate .lmsc-error { color: #ffffff !important; }
.lmsc-checkout-gate .lmsc-form label .lmsc-required { color: #ff6b6b !important; }
.lmsc-checkout-gate .lmsc-form .lmsc-input { color: #1f2124 !important; background-color: #ffffff !important; }
.lmsc-checkout-gate .lmsc-form .lmsc-input::placeholder { color: rgba(31, 33, 36, 0.45) !important; }
.lmsc-checkout-gate .lmsc-eye-btn { color: #1f2124 !important; }
