/* BODY */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
     background: linear-gradient(rgb(227 237 241 / 85%), rgb(50 99 120 / 90%)), url(https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=80);
    background-size: cover;
    background-position: center;
}

/* LOGIN WRAPPER */
.login-wrapper {
    width: 100%;
    max-width: 1200px;
    min-height: 90vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

/* MAIN CARD */
.login-container {
    display: flex;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.login-container:hover {
    box-shadow: 0 25px 70px rgba(0,0,0,.3);
}

/* LEFT PANEL */
.left-panel {
    flex: 1;
    background: linear-gradient(180deg,#4facfe,#00f2fe);
    color: #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.left-panel img {
    max-height: 250px;
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,.2));
}
.left-panel h2 {
    font-weight: 800;
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
}
.left-panel p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}
.left-panel i {
    color: #fff;
    margin-right: 10px;
}
.left-panel .mt-3 p {
    line-height: 1.5;
}
.left-panel .btn-outline-secondary {
    border-color: rgba(255,255,255,0.8);
    color: #fff;
    transition: all 0.3s ease;
}
.left-panel .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    color: #fff;
}

/* RIGHT PANEL */
.right-panel {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #6f9aab7a;
}
.right-panel h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c5364;
    margin-bottom: 10px;
}
.right-panel p {
    font-size: 14px;
    color: #7a8a96;
    margin-bottom: 25px;
}

/* FORM */
.form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #dfe5ea;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

/* PASSWORD TOGGLE */
.password-box {
    position: relative;
}
.toggle-pass {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    color: #7a8a96;
    font-size: 18px;
}

/* ERROR */
.error-box {
    background: #fff4f4;
    color: #b30000;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    border-left: 4px solid #dc3545;
}

/* MEDIA QUERIES */
@media(max-width: 992px){
    .login-wrapper {
        /* flex-direction: column; */
        min-height: 100vh;
    }
    .left-panel {
        display: none;
    }
    .right-panel {
        padding: 50px 30px;
    }
}

/* ANIMATION */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}

/* LEFT SIDE */
.left-panel{
    flex: 1;
    background: linear-gradient(180deg,#e3f2fd,#f0f7fb); /* lighter, softer gradient */
    padding:55px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.left-panel img.main-img{
    max-height: 220px;
    opacity:.95;
    margin-bottom: 20px;
}
.left-panel img.secondary-img{
    max-height: 120px;
    opacity: .85;
}
.left-panel h2{
    font-weight:700;
    margin-top:15px;
    color:#2c5364;
}
.left-panel p{
    color:#2c5364;
    opacity:.75;
}
.left-panel i{
    color:#2c5364;
}
.left-panel .btn-outline-secondary{
    border-color: rgba(44,83,100,0.4);
    color:#2c5364;
    transition: all 0.3s ease;
}
.left-panel .btn-outline-secondary:hover{
    background: rgba(44,83,100,0.1);
    border-color: #2c5364;
    color:#2c5364;
}

.logincard{
    width: 100%;
    max-width: 450px;
    margin: 40px auto;
    padding: 30px 28px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.logincard:hover{
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Title */
.logincard h3{
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

/* Footer text */
.logincard .extra{
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.logincard .extra a{
    color: #4a6cf7;
    text-decoration: none;
}

/* BUTTON */
.logincard button{
    width: 100%;
    padding: 12px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logincard button:hover{
    background: #3956d8;
}

.login-helper{
    gap: 10px;
}

/* Remember checkbox */
.login-checkbox{
    cursor: pointer;
}

.login-checkbox:checked{
    background-color: #4a6cf7;
    border-color: #4a6cf7;
}

.login-checkbox:focus{
    box-shadow: 0 0 0 0.15rem rgba(74,108,247,.25);
}

/* Label */
.login-label{
    cursor: pointer;
    color: #444;
    font-size: 14px;
}

/* Forgot password */
.login-forgot{
    color: #4a6cf7;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-forgot:hover{
    color: #2f49c7;
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 480px){
    .login-helper{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================
   RESPONSIVE FIX (OVERRIDES)
   ========================= */

/* ---------- TABLET & BELOW ---------- */
@media (max-width: 992px) {

    body {
        align-items: flex-start;   /* center → top */
        justify-content: flex-start;
        overflow-y: auto;          /* scroll allow */
    }

    .login-wrapper {
        min-height: auto;
        margin: 20px;
        border-radius: 14px;
    }

    .login-container {
        flex-direction: column;
        border-radius: 14px;
    }

    .left-panel {
        display: none; /* tablet & mobile hide */
    }

    .right-panel {
        width: 100%;
        padding: 40px 25px;
        background: #ffffff;
    }

    .logincard {
        margin: auto;
        box-shadow: none;
        border: none;
    }
}

/* ---------- MOBILE ONLY ---------- */
@media (max-width: 576px) {

    body {
        background-attachment: scroll;
    }

    .login-wrapper {
        margin: 10px;
        box-shadow: none;
    }

    .right-panel {
        padding: 10px;
    }

    .logincard {
        padding: 0px 15px;
    }

    .logincard h3 {
        font-size: 22px;
    }

    .right-panel p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .form-control {
        height: 46px;
        font-size: 14px;
    }

    .toggle-pass {
        top: 13px;
        font-size: 16px;
    }

    .logincard button {
        padding: 11px;
        font-size: 15px;
    }
}

/* ---------- EXTRA SMALL DEVICES ---------- */
@media (max-width: 360px) {

    .right-panel {
        padding: 20px 14px;
    }

    .logincard {
        padding: 18px 14px;
    }

    .logincard h3 {
        font-size: 20px;
    }
}

/* =========================
   MOBILE TOP INTRO
   ========================= */

.mobile-top-intro {
    display: none;
    text-align: center;
    margin-bottom: 0;
}

.mobile-top-intro img {
    height: 60px;
    margin-bottom: 8px;
}

.mobile-top-intro h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2c5364;
    margin-bottom: 4px;
}

.mobile-top-intro p {
    font-size: 13px;
    color: #6c7a86;
    margin-bottom: 10px;
}

/* Switch button */
.switch-auth-btn {
    display: inline-block;
    font-size: 13px;
    color: #4a6cf7;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(74,108,247,0.08);
    transition: all 0.25s ease;
}

.switch-auth-btn:hover {
    background: rgba(74,108,247,0.15);
    text-decoration: none;
}

/* Show only on mobile */
@media (max-width: 992px) {
    .mobile-top-intro {
        display: block;
        border-bottom: solid 1px #d5d3d3;
        padding-bottom: 10px;
    }
}

/* =========================
   FULL HEIGHT AUTH PANEL (MOBILE)
   ========================= */


@media (max-width: 992px) {

    body {
        overflow-y: auto;        /* 🔑 scroll allow */
    }

    .login-wrapper {
        min-height: 100vh;       /* full screen feel */
        height: auto;            /* ❌ fixed height বাদ */
    }

    .login-container {
        min-height: 100vh;
        height: auto;
    }

    .right-panel {
        min-height: 100vh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* top aligned */
        overflow-y: auto;            /* 🔑 internal scroll */
    }

    .logincard {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 576px) {

    .right-panel {
        padding-top: 15px;
    }

    .logincard {
        margin-top: 10px;
    }
}


