html,
body {
    background-color: #f4f6f9;
    height: 100%;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #eef2f7, #dde6f3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

.login-card {
    width: 950px;
    max-width: 95%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    animation: fadeSlide 0.8s ease;
}

.login-card .row {
    height: 100%;
}

.left-box,
.right-box {
    height: 100%;
}

.left-box {
    position: relative;
    background: url('/images/BoxLogin.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 50px;
    color: white;
}

.left-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(13, 110, 253, 0.5),
            rgba(0, 0, 0, 0.7));
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
}

.left-content {
    position: relative;
    z-index: 2;
}

.right-box {
    background: rgba(255, 255, 255, 0.9);
    /* backdrop-filter: blur(20px); */
    overflow: hidden;
    align-items: center;
    padding: 50px;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.form-slider {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* EACH PAGE */
.form-slide {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-content {
    width: 100%;
    max-width: 360px;
}

.form-floating>.form-control {
    border-radius: 12px;
    height: 55px;
}

.btn-login {
    border-radius: 50px;
    padding: 10px;
}

.form-slider.active {
    transform: translateX(-50%);
}

/* ANIMATION CARD */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ANIMATION */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

    body {
        padding: 15px;

        align-items: center;
        justify-content: center;

        min-height: 100vh;
    }

    .login-card {
        height: auto;
        border-radius: 15px;
    }

    .right-box {
        height: auto;
    }

    .slider-wrapper {
        width: 100%;
        overflow: hidden;
    }

    .form-slider {
        display: flex;
        width: 200%;
        transition: transform 0.5s ease-in-out;
    }

    .form-slider.active {
        transform: translateX(-50%);
    }

    .form-slide {
        width: 50%;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .form-content {
        width: 100%;
        max-width: 320px;
        padding: 20px;
        margin: 0 auto;
    }

    .form-floating>.form-control {
        height: 48px;
        font-size: 14px;
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
    }

    h4,
    p {
        text-align: center;
    }

    .left-box {
        display: none;
    }
}

.logo {
    width: 50px;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.left-content h1 {
    letter-spacing: 1px;
}

.left-content p {
    opacity: 0.9;
}

.badge {
    font-size: 12px;
}

.accent-line {
    width: 115px;
    height: 3px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.3));
    border-radius: 10px;
}

.brand-text {
    font-size: 16px
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 18px;
    transition: 0.3s;
}

.toggle-password:hover {
    color: #0d6efd;
}

.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

#modalFaq .accordion-button {
    padding: 1rem 0;
    font-weight: 600;
}

#modalFaq .accordion-button:focus {
    box-shadow: none;
}

#modalFaq .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--bs-primary);
    box-shadow: none;
}

#modalFaq .accordion-item {
    border-bottom: 1px solid #e9ecef;
}

#modalFaq .accordion-body {
    padding-left: 2rem;
    color: #6c757d;
    line-height: 1.8;
}

#modalFaq .modal-body {
    min-height: 500px;
}