/* ==========================================
   DESKTOP DEFAULT STYLES
========================================== */
.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: #ffffff;
    overflow: hidden;
}

.login-slider {
    width: 50%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #eeeeee;
    flex-shrink: 0;
}

.login-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.login-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.login-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.login-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-indicators {
    position: absolute;
    top: 30px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-indicator {
    height: 4px;
    flex: 1;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.slider-indicator.active {
    background: #ffffff;
}

.login-form-panel {
    width: 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 40px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #111;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 25px;
    transition: all 0.25s ease;
}

.back-home:hover {
    color: #0d6efd;
    transform: translateX(-3px);
}

.login-logo {
    width: 100%;
    margin-bottom: 25px;
}

.login-logo img {
    width: auto;
    max-width: 180px;
    max-height: 75px;
    object-fit: contain;
}

.auth-box h1 {
    margin: 0 0 20px 0;
    font-size: 30px;
    font-weight: 600;
    color: #0d6efd;
}

.input-group-custom {
    width: 100%;
    margin-bottom: 20px;
}

.input-group-custom input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #ffffff;
    font-size: 15px;
    outline: none;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6c757d;
}

.forgot-password {
    display: inline-block;
    margin-bottom: 20px;
    color: #8b1734;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 4px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.signup-text {
    margin-top: 25px;
    text-align: center;
    font-size: 15px;
    color: #777777;
}

.signup-text a {
    margin-left: 5px;
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================
   STRICT MOBILE BREAKPOINT (FORCE TOP-BOTTOM)
========================================== */
@media screen and (max-width: 768px) {
    body, html {
        overflow-x: hidden;
    }

    div.login-page {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    /* 1. SLIDER AT TOP */
    div.login-page .login-slider {
        order: 1 !important;
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 300px !important;
        flex: 0 0 auto !important;
    }

    /* 2. FORM AT BOTTOM */
    div.login-page .login-form-panel {
        order: 2 !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        flex: 1 0 auto !important;
        padding: 30px 20px !important;
        align-items: flex-start !important;
    }

    .auth-box {
        max-width: 100% !important;
    }

    .auth-box h1 {
        font-size: 22px !important;
    }
}/* =========================================================
   STRICT OVERRIDE: FORCE TOP (IMAGE) & BOTTOM (FORM) ON MOBILE
========================================================= */

@media screen and (max-width: 767px) {
    /* Base Container Force Column Layout */
    html body div.login-page,
    body div.login-page,
    div.login-page {
        display: flex !important;
        flex-direction: column !important; /* Forces Vertical Stack */
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
    }

    /* Top Component: Image Slider */
    html body div.login-page > div.login-slider,
    div.login-page > div.login-slider,
    .login-slider {
        order: 1 !important; /* Always First */
        width: 100% !important;
        height: 35vh !important;
        min-height: 200px !important;
        max-height: 280px !important;
        flex: 0 0 auto !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .login-slides, 
    .login-slide, 
    .login-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Bottom Component: Login Form Panel */
    html body div.login-page > div.login-form-panel,
    div.login-page > div.login-form-panel,
    .login-form-panel {
        order: 2 !important; /* Always Second */
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        flex: 1 0 auto !important;
        padding: 25px 16px 35px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }

    .auth-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
}/* =========================================================
   DESKTOP DEFAULT
========================================================= */
.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

.login-slider {
    width: 50%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #eeeeee;
}

.login-form-panel {
    width: 50%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* =========================================================
   MOBILE VIEW FIX (IMAGE TOP + FORM BOTTOM FIT)
========================================================= */
@media screen and (max-width: 767px) {
    .login-page {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    /* Image height restricted to 200px so Form gets visible on screen */
    .login-slider {
        width: 100% !important;
        height: 200px !important; /* Fixed height for Mobile Image */
        min-height: 200px !important;
        max-height: 220px !important;
        flex: 0 0 200px !important;
    }

    .login-form-panel {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 20px 15px 30px !important;
        flex: 1 0 auto !important;
    }

    .auth-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .login-logo {
        margin-bottom: 15px !important;
    }

    .login-logo img {
        max-height: 45px !important;
    }

    .auth-box h1 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }

    .back-home {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 15px !important;
        font-size: 14px !important;
    }
}/* ==========================================
   SIGNUP FIELDS GAP FIX
========================================== */
.signup-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 15px !important; /* Horizontally aur Vertically 15px ka gap */
    margin-bottom: 18px !important;
}

/* Mobile par Single Column Layout ke liye */
@media screen and (max-width: 767px) {
    .signup-row {
        grid-template-columns: 1fr !important; /* Stack vertically on mobile */
        gap: 12px !important; /* Fields ke bich 12px ka space */
        margin-bottom: 12px !important;
    }
}.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}