/* =========================
   RESET / BASE
   ========================= */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
}
body.sidebar-open {
    margin-left: 260px;   /* sidebar width */
    transition: margin-left .3s ease;
}
/* When sidebar is expanded – push the entire content */
body.sidebar-open,
.main-content.sidebar-open {
    margin-left: 260px !important;   /* set to your sidebar width */
    transition: margin-left .3s ease;
}

/* When sidebar is collapsed – normal layout */
body.sidebar-collapsed,
.main-content.sidebar-collapsed {
    margin-left: 70px !important;    /* collapsed width */
}
.sidebar {
    width: 260px; /* your width */
}

.with-sidebar {
    margin-left: 260px !important;
    transition: margin-left .3s;
}


/* =========================
   LOGIN HERO WRAPPER
   ========================= */
.login-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 100px;
    min-height: 80vh;

    /* FIX: sidebar ke sath issue yahin tha */
    width: 100%;
    margin: 0;
}

/* =========================
   BLUE WAVE BACKGROUND
   ========================= */
.login-wave {
    position: absolute;
    inset: 0;                  /* top/right/bottom/left: 0 */
    width: 38%;
    height: 100%;
    object-fit: contain;
    z-index: 0;                /* background layer */
}

/* =========================
   MAIN LAYOUT (DESKTOP)
   ========================= */
.login-page-container {
    position: relative;
    z-index: 1;                /* wave ke upar */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 7rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.img img {
    width: 500px;
}

.login-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

/* sirf login form ko width do */
.login-content form {
    width: 360px;
    margin: 0 auto;
}

.login-content img {
    height: 100px; /* avatar */
}

.login-content h2 {
    margin: 15px 0;
    color: #333;
    text-transform: uppercase;
    font-size: 2.9rem;
}

/* subtitle */
.login-content .text-muted {
    font-size: 0.95rem;
}

/* =========================
   INPUTS
   ========================= */
.login-content .input-div {
    position: relative;
    display: grid;
    grid-template-columns: 7% 93%;
    margin: 25px 0;
    padding: 5px 0;
    border-bottom: 2px solid #d9d9d9;
}

.login-content .input-div.one {
    margin-top: 0;
}

.i {
    color: #d9d9d9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.i i {
    transition: .3s;
}

.input-div > div {
    position: relative;
    height: 45px;
}

.input-div > div > h5 {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    transition: .3s;
}

/* blue underline animation */
.input-div:before,
.input-div:after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #2563eb;
    transition: .4s;
}

.input-div:before {
    right: 50%;
}

.input-div:after {
    left: 50%;
}

/* focus state */
.input-div.focus:before,
.input-div.focus:after {
    width: 50%;
}

.input-div.focus > div > h5 {
    top: -5px;
    font-size: 15px;
}

.input-div.focus > .i > i {
    color: #2563eb;
}

.input-div > div > input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 0.5rem 0.7rem;
    font-size: 1.2rem;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

.input-div.pass {
    margin-bottom: 4px;
}

/* =========================
   REMEMBER + FORGOT
   ========================= */
.login-extra {
    font-size: 0.9rem;
}

.login-extra .remember-me {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* WHMCS checkbox align */
.login-extra .form-check-input {
    margin-top: 0;
}

/* =========================
   LINKS & BUTTON
   ========================= */
.login-content a {
    text-decoration: none;
    color: #999;
    font-size: 0.9rem;
    transition: .3s;
}

.login-content .small.text-muted {
    display: inline-block;
}

.login-content a:hover {
    color: #2563eb;
}

/* custom gradient button  */
.btn-1 {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 25px;
    outline: none;
    border: none;
    background-image: linear-gradient(to right, #1d4ed8, #2563eb, #1d4ed8);
    background-size: 200%;
    font-size: 1.2rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    margin: 1rem 0;
    cursor: pointer;
    transition: .5s;
}

.btn:hover {
    background-position: right;
}

.btn-primary {
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 500;
}

/* =========================
   RESPONSIVE
   ========================= */

/* Tablet */
@media screen and (max-width: 1050px) {
    .login-page-container {
        grid-gap: 5rem;
    }
}

@media screen and (max-width: 1000px) {
    .login-content form {
        width: 290px;
    }

    .login-content h2 {
        font-size: 2.4rem;
        margin: 8px 0;
    }

    .img img {
        width: 400px;
    }
}

/* Mobile */
@media screen and (max-width: 900px) {

    .login-hero {
        padding: 0 0 30px;
    }

    .login-page-container {
        height: auto;
        grid-template-columns: 1fr;
        grid-gap: 2rem;
        padding: 0 1.25rem;
    }

    .img {
        justify-content: center;
        align-items: flex-end;
        margin: 0;
        padding-bottom: 0.1rem;
    }

    .img img {
        width: 100%;
        max-width: 420px;
    }

    .login-content {
        width: 100%;
        max-width: 360px;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }

    .login-content form {
        width: 100%;
        max-width: 360px;
        background: #ffffff;
    }

    .login-content h2 {
        font-size: 2.2rem;
        margin: 8px 0;
    }

    .login-content .input-div {
        margin: 14px 0;
    }
}

/* =========================
   WHMCS CONTAINER ADJUST (LOGIN ONLY)
   ========================= */

/* primary-content ke top padding ko login page par remove karo */
.primary-content {
    padding-top: 0 !important;
}

.primary-content > .login-hero {
    margin-top: 0 !important;
}

