:root{
    --panel-bg: #E8F0FF;
    --border: #d7deea;
    --primary: #1f6bff;
    --deep-blue: #14005e;
    --text-dark: #111827;

    --slider-base-1: #0b2f6a;
    --slider-base-2: #0d387b;
    --slider-base-3: #0f458b;
    --slider-base-4: #0e4d96;

    --slider-shape-1: rgba(3, 24, 66, 0.34);
    --slider-shape-2: rgba(5, 34, 84, 0.28);
    --slider-shape-3: rgba(8, 54, 114, 0.20);
    --slider-shape-4: rgba(10, 78, 147, 0.16);
}

*{
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body{
    font-family: "Poppins", sans-serif;
    background: #f4f7fb;
    color: var(--text-dark);
    overflow-x: hidden;
}

.login-page{
    min-height: 100vh;
}

.login-page > .row{
    min-height: 100vh;
}

/* =========================
   SLIDER SECTION
========================= */
.visual-side{
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
    background-image: url('../img/login-bg.png');
}

.visual-side .carousel,
.visual-side .carousel-inner,
.visual-side .carousel-item{
    height: 100%;
}

.slide-bg{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-pattern{
    position: absolute;
    inset: 0;
}

.slide-overlay{
    position: absolute;
    inset: 0;
    background:
            linear-gradient(to right, rgba(7, 28, 75, 0.18), rgba(7, 28, 75, 0.06)),
            linear-gradient(to bottom, rgba(0,0,0,0.03), rgba(0,0,0,0.10));
    z-index: 2;
}

.slider-caption{
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 90px;
}

.slider-caption-inner{
    max-width: 760px;
    color: #fff;
    margin: 0 auto;
}

.posthub-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 42px;
    background: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    font-weight: 800;
    color: #0d4aa3;
    font-size: 21px;
    line-height: 1;
}

.posthub-badge span{
    color: #e53935;
    margin: 0 2px;
}

.slider-title{
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 18px;
    color: #fff;
}

.slider-desc{
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,0.92);
    max-width: 700px;
    margin: 0 auto 28px;
}

.read-more-btn{
    border: none;
    min-width: 102px;
    height: 42px;
    border-radius: 8px;
    background: var(--deep-blue);
    color: #fff;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s ease;
}

.read-more-btn:hover{
    background: #1b0a77;
}

.visual-side .carousel-control-prev,
.visual-side .carousel-control-next{
    width: 68px;
    z-index: 4;
    opacity: 1;
}

.visual-side .carousel-control-prev-icon,
.visual-side .carousel-control-next-icon{
    background-image: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-side .carousel-control-prev-icon::before,
.visual-side .carousel-control-next-icon::before{
    font-family: "bootstrap-icons";
    font-size: 34px;
    color: rgba(255,255,255,0.80);
}

.visual-side .carousel-control-prev-icon::before{
    content: "\f284";
}

.visual-side .carousel-control-next-icon::before{
    content: "\f285";
}

.visual-side .carousel-indicators{
    margin-bottom: 24px;
    z-index: 5;
}

.visual-side .carousel-indicators [data-bs-target]{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.45);
    opacity: 1;
}

.visual-side .carousel-indicators .active{
    background-color: #fff;
}

/* =========================
   LOGIN SECTION
========================= */
.form-side{
    min-height: 100vh;
    background: var(--panel-bg);
    border-left: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    order: 2;
    padding:10px;
}

.form-top{
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.brand-logo{
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 27px;
    font-weight: 800;
    color: #20256b;
}

.brand-logo .brand-blue{
    color: #1f6bff;
}

.brand-logo .brand-signal{
    display: inline-flex;
    margin-left: 4px;
    position: relative;
    top: -6px;
    color: #1f6bff;
    font-size: 13px;
}

.lang-switch .dropdown-toggle{
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    box-shadow: none !important;
}

.lang-switch img {
    width:24px;
}

.form-center{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 60px 50px;
}

.login-box{
    width: 100%;
    max-width: 420px;
}

.login-title{
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 28px;
}

.input-group.custom-group{
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.input-group.custom-group .input-group-text{
    width: 42px;
    border: none;
    background: #fff;
    color: #6d6d6d;
    justify-content: center;
    font-size: 14px;
    padding: 0;
}

.input-group.custom-group .form-control{
    border: none;
    background: #fff;
    box-shadow: none;
    font-size: 14px;
    color: #222;
    padding-left: 0;
    padding-right: 8px;
}

.input-group i {
    font-size:15px;
}

.toggle-password{
    border: none;
    background: #fff;
    width: 42px;
    color: #9aa0a6;
    font-size: 14px;
}

.remember-row{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 18px;
    font-size: 13px;
    color: #111827;
}

.remember-row .form-check-input{
    margin-top: 0;
    width: 15px;
    height: 15px;
    border-color: #cfd6e4;
    box-shadow: none;
}

.remember-row .form-check-input:checked{
    background-color: #1f6bff;
    border-color: #1f6bff;
}

.remember-row label {
    font-size: 13px;
    font-weight: 500;
}

.sign-btn{
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: #1f6bff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.2s ease;
}

.sign-btn:hover {
    background: #1557dd;
}

.sign-btn .btn-icon {
    font-size: 13px;
    display: inline-flex;
    transition: transform .3s ease;
    font-weight: 600;
}

.sign-btn:hover .btn-icon {
    transform:translateX(6px);
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    color: #1f2a60;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    color:#1557dd;
}

.form-footer {
    padding: 18px 20px 16px;
    text-align: center;
    font-size: 12px;
    color: #4b5563;
    line-height: 20px;
    font-weight: 600;
}

.text-danger {
    margin-left: 5px;
    font-size: 14px;
    font-weight: 400;
}

.form-input-group {
    margin-bottom: 10px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 991.98px){
    .visual-side{
        min-height: 38vh;
        order: 2;
    }

    .form-side{
        min-height: auto;
        order: 1;
    }

    .form-center{
        padding: 40px 24px;
    }

    .slider-caption{
        padding: 40px 24px;
    }

    .slider-title{
        font-size: 24px;
    }

    .slider-desc{
        font-size: 14px;
    }
}

@media (max-width: 767.98px){
    .visual-side{
        display: none !important;
    }

    .form-side{
        min-height: 100vh;
        order: 1;
        border-left: 0;
    }

    .form-center{
        padding: 30px 16px 40px;
    }

    .login-title{
        font-size: 26px;
    }

    .login-box{
        max-width: 100%;
    }
}
