/* Fonts */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.ttf') format('woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBold.ttf') format('woff2');
    font-weight: 600;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Bold.ttf') format('woff2');
    font-weight: 700;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #653b3b;
}

.login-container {
    width: 100%;
    margin: 40px auto;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.login-left {
    flex: 0 0 70%;
    padding: 40px 30px 15px 30px;
}

.bg-clr {
    background: #FDEFC8;
}

.logo {
    margin-top: 20px;
    margin-bottom: 10px;
}

.logo-top {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}

    .logo-top img {
        max-height: 70px;
        margin-bottom: 10px;
    }

    .logo-top h3 {
        color: #002060 !important;
    }

.login-left h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #555252;
}

/* TOGGLE BOX */
.toggle-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 300px;
}

.login-label {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    color: #8E8B8B;
}

.toggle-btn {
    flex: 1;
    padding: 12px 0;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    background: #f1f1f1;
    border-radius: 8px;
    text-align: center;
}

    .toggle-btn.active {
        background: #646568;
        color: #fff;
    }

.form-control {
    margin-bottom: 16px;
    height: 52px;
    font-size: 14px;
    border-radius: 6px;
    padding-left: 25px;
}

.password-wrapper {
    position: relative;
}

    .password-wrapper .toggle-password {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        cursor: pointer;
        color: #A0A1A2;
    }

.captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

    .captcha-box .code {
        background: #e9e9e9;
        padding: 8px 20px;
        font-size: 25px;
        font-weight: 600;
        border-radius: 6px;
        width: 200px;
        color: #555252;
    }

    .captcha-box button {
        border: none;
        background: transparent;
        font-size: 20px;
        cursor: pointer;
        color: #199bff;
    }

.btn-login {
    width: 100%;
    background: #646568;
    color: #fff;
    font-weight: 500;
    padding: 10px;
    font-size: 23px;
    border-radius: 6px;
}

    .btn-login:hover {
        background: #1d54f0;
        color: #fff;
    }

.forgot-link {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #00599F;
    text-align: center;
    text-decoration: none;
}

/* PARTNERS */
.partners {
    background: #F2F7FF;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px;
    padding: 10px;
    flex-wrap: wrap;
}

    .partners img {
        max-height: 65px;
        margin: 0px 20px;
    }

/* RIGHT SIDE */
.login-right {
    flex: 0 0 30%;
    background: #FDEFC8;
    text-align: center;
}

.right-img {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: 425px;
}

    .right-img img {
        width: 100%;
    }

.img-clr h3 {
    font-weight: bold;
}
/* ============================
     Divider Line Between Forms
     ============================ */
.divider-line {
    border-left: 1px solid #D0D9CB;
    min-height: 405px;
    margin: 0 20px 0 35px;
    width: 1px;
    /* ? Height in percentage for desktop */

    flex-shrink: 0;
}


.department-area {
    flex: 1;
    max-width: 48%;
}

.customer-area {
    flex: 1;
    max-width: 48%;
}

.main-cls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap; /* IMPORTANT: keeps everything in one line */
    margin-top: 20px;
}

/* Hide divider on mobile */
@media(max-width: 768px) {
    .divider-line {
        display: none;
    }

    .partners img {
        max-height: 65px !important;
        margin: 0px 10px !important;
        width: 25px !important;
    }

    .logo-top h3 {
        font-size: 25px;
        font-weight: bold;
        color: #002060;
    }
}

/* RESPONSIVE */
/* ========== EXISTING CSS (NO CHANGE ABOVE THIS LINE) ========== */


/* ================================
   FIX: MOBILE + TABLET RESPONSIVE
   ================================ */

@media(max-width: 991px) {

    .main-cls {
        flex-direction: column !important; /* Stack vertical */
        align-items: stretch !important;
        gap: 30px !important;
    }

    .customer-area,
    .department-area {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .divider-line {
        display: none !important; /* Hide divider on mobile/tablet */
    }

    .login-left {
        padding: 30px 15px !important;
    }

    .bg-clr {
        display: none;
    }
}

/* Extra small mobile screens */
@media(max-width: 576px) {
    .customer-area h2,
    .department-area h2 {
        font-size: 20px !important;
        text-align: center;
    }

    .login-left h2 {
        margin-bottom: 15px;
    }

    .toggle-box {
        width: 100% !important;
        justify-content: space-between;
    }
}

@media(max-width: 1024px) {
    .login-left, .login-right {
        min-width: 100%;
    }

    .logo-top {
        display: block;
    }

    .img-clr {
        display: none;
    }

    .right-img {
        display: none;
    }

    .logo-top h3 {
        font-weight: bold;
    }
}

@media (max-width: 480px) {
    .partners img {
        max-height: 55px !important;
        width: 18px !important;
    }
}
