 :root {
    --primary-color: #3E3E86; /* Teal */
    --secondary-color: #2c3e50; /* Dark Blue Gray */
    --text-color: #333;
    --light-gray: #f0f0f0;
    --white: #fff;
}
body.all_login_form_no-scroll {
    overflow: hidden;
}

.all_login_form_login_main_conteinar_box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 82vh;
    background-color: var(--light-gray);
    padding: 20px 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-family: "Mona Sans", sans-serif;
}

.all_login_form_container {
    position: relative;
    width: 700px; /* Max width for desktop */
    height: 455px; /* Increased height for the new header */
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
}
.all_login_form_desktop_header_btns {
    display: flex;
    justify-content: space-around;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: #f8f9fa;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid var(--light-gray);
    z-index: 10;
    font-weight: 600;
    text-transform: uppercase;
}

.all_login_form_desktop_header_btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 15px;
    width: 50%;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
}

.all_login_form_desktop_header_btn.all_login_form_active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    animation: textGlow 1.8s ease-in-out infinite;
}

.all_login_form_desktop_header_btn.all_login_form_active span {
    color: var(--primary-color);
    display: inline-block;
    animation: textPulse 1.5s ease-in-out infinite;
    font-weight: 600;
    text-transform: uppercase;
}

/* 🔸 Smooth pulse animation */
@keyframes textPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


.all_login_form_desktop_header_btn:hover{
    background-color: #c2fdd1ff;


}

/* --- Panel Common Styles --- */
.all_login_form_panel {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    transition: width 0.6s ease-in-out;
    position: relative;
    overflow: hidden;
    /* margin-top: 55px; */
    height: auto; /* Original height */
}

/* UPDATED: Initial Desktop State: Both panels are 50% width */
.all_login_form_left-panel {
    width: 50%;
    background-color: #f2f2ffff;
    color: var(--white);
    background-image: url(../image/login-bac.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.all_login_form_right-panel {
    width: 50%;
    background-color: var(--white);
    color: var(--text-color);
    background-image: url(../image/login-bac.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;

}

/* --- Content Areas within Panels --- */
.all_login_form_panel-content, .all_login_form_login-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 380px;
    padding: 10px;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

/* Default visible content for desktop */
.all_login_form_left-panel .all_login_form_welcome-member-content,
.all_login_form_right-panel .all_login_form_member-login-form {
    opacity: 1;
    visibility: visible;
}


.all_login_form_company-logo {
    width: 200px;
    margin-bottom: 20px;
}

.all_login_form_left-panel .all_login_form_company-logo {
        /* filter: brightness(0) invert(1);  */
}
.all_login_form_right-panel .all_login_form_company-logo {
    filter: none; /* Logo for white background */
}


.all_login_form_panel-content h2, .all_login_form_login-form h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    color: #3E3E86;
}

.all_login_form_panel-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #3E3E86;
    padding: 0px 10px ;
    text-align: justify;
}

/* Input Field Styling */
.all_login_form_input-field {
    position: relative;
    margin: 15px 0;
}
.all_login_form_input-field input {
    width: 100%;
    padding: 10px 45px 10px 15px; /* Increased right padding for icon */
    border: 2px solid var(--light-gray);
    border-radius: 2px;
    outline: none;
    font-size: 14px;
    color: var(--text-color);
    background: transparent;
    transition: border-color 0.3s ease;
}
.all_login_form_input-field label {
    position: absolute;
    left: 17px;
    top: 12px;
    color: #999;
    font-size: 0.95rem;
    pointer-events: none;
    transition: 0.3s ease all;
}
.all_login_form_input-field input:focus + label,
.all_login_form_input-field input:valid + label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--white);
    padding: 0 5px;
    left: 10px;
}
.all_login_form_input-field input:focus { border-color: var(--primary-color); }

.all_login_form_toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}
.all_login_form_toggle-password .fa-eye-slash {
    display: none;
}

.all_login_form_forgot-password {
    display: block; text-align: right; color: #999; font-size: 0.85rem;
    text-decoration: none; margin-top: 5px; margin-bottom: 20px; transition: color 0.3s ease;
}
.all_login_form_forgot-password:hover { color: var(--primary-color); }

.all_login_form_signup-link {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
    text-decoration: none;
}
.all_login_form_signup-link strong {
    color: var(--primary-color);
}

/* Buttons */
.all_login_form_btn {
    padding: 8px 20px; border: none; border-radius: 2px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin: 10px 0;
    width: 100%;
}
.all_login_form_btn.all_login_form_solid { background-color: var(--primary-color); color: var(--white); }
.all_login_form_btn.all_login_form_solid:hover { background-color: #00953B; }
.all_login_form_btn.all_login_form_ghost { background: transparent; border: 2px solid var(--white); color: var(--white); }
.all_login_form_btn.all_login_form_ghost:hover {
    background-color: var(--white);
    color: var(--primary-color);
}
.all_login_form_mobile-wrapper {
    display: none; /* Hidden by default */
}
.all_login_form_container.all_login_form_customer-mode .all_login_form_left-panel {
    width: 50%;
    background-color: var(--white);
    color: var(--text-color);
}
.all_login_form_container.all_login_form_customer-mode .all_login_form_left-panel .all_login_form_company-logo {
    filter: none;
}
.all_login_form_container.all_login_form_customer-mode .all_login_form_right-panel {
    width: 50%;
    background-color: #f2f2ffff;
    background-image: url(../image/login-bac.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    color: var(--white);
}
.all_login_form_container.all_login_form_customer-mode .all_login_form_welcome-member-content,
.all_login_form_container.all_login_form_customer-mode .all_login_form_member-login-form {
    opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.9);
}
.all_login_form_container.all_login_form_customer-mode .all_login_form_customer-login-form,
.all_login_form_container.all_login_form_customer-mode .all_login_form_welcome-customer-content {
    opacity: 1; visibility: visible; transform: translate(-50%, -50%);
}
.all_login_form_container.all_login_form_customer-mode .all_login_form_welcome-customer-content .all_login_form_btn.all_login_form_ghost {
    border-color: var(--white);
    color: var(--white);
}
.all_login_form_container.all_login_form_customer-mode .all_login_form_welcome-customer-content .all_login_form_btn.all_login_form_ghost:hover{
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .all_login_form_login_main_conteinar_box {
        align-items: flex-start;
        padding-top: 30px;
        min-height: 60vh;
    }

    .all_login_form_container {
        width: 90%;
        max-width: 400px;
        height: auto; /* Reset height for mobile */
        flex-direction: column;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border-radius: 10px;
        display: block; /* Switch to block for mobile wrapper */
    }

    /* Hide desktop panels & new header */
    .all_login_form_panel {
        display: none;
    }
    .all_login_form_desktop_header_btns {
        display: none;
    }

    /* --- Mobile-Specific Structure --- */
    .all_login_form_mobile-wrapper {
        display: block; /* Show mobile wrapper */
        width: 100%;
    }
    .all_login_form_header-btns {
        display: flex;
        width: 100%;
        justify-content: space-around;
        background-color: #f8f9fa;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        border-bottom: 1px solid var(--light-gray);
    }
    .all_login_form_header-btn {
        background: none; border: none; color: var(--secondary-color);
        font-size: 1rem; font-weight: 500; cursor: pointer; padding: 15px;
        width: 50%;
        text-align: center;
        border-bottom: 1px solid transparent;
        transition: all 0.3s ease;
    }
    .all_login_form_header-btn.all_login_form_active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }

    .all_login_form_form-container {
        padding: 25px;
    }

    /* Show forms, hide welcome messages on mobile */
    .all_login_form_login-form {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        max-width: 100%;
        padding: 0;
        display: none; /* Hide both forms by default */
    }

    /* Active form state for mobile */
    .all_login_form_login-form.all_login_form_active-form {
        display: block;
    }

    .all_login_form_company-logo {
        filter: none !important; /* Always show original logo on mobile */
        margin: 0 auto 25px;
        display: block;
    }

    .all_login_form_login-form h2 {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
}
.all_login_form_popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.all_login_form_popup-overlay.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.all_login_form_popup-container {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin-top: 120px;
}
.all_login_form_popup-overlay.active .all_login_form_popup-container {
    transform: scale(1);
}

.all_login_form_popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}
.all_login_form_popup-close:hover {
    color: var(--text-color);
}
.all_login_form_popup-container h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.all_login_form_popup-container p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}
/* Hide all popup views by default */
.all_login_form_popup-view {
    display: none;
}
/* Show the active view */
.all_login_form_popup-view.active-view {
    display: block;
}