/* Auth CSS (Sliding Panel) */
body {
    background-color: #FFFDF8;
}

.auth-page {
    background-color: #FFFDF8;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 15px;
}

.auth-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    width: 1000px;
    max-width: 100%;
    min-height: 600px;
}

/* Form Containers */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.auth-container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.auth-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

/* Overlay Container */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background-color: transparent;
    /* Prevent black gap during animation */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #FFFDF8;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50.5%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* Fading Backgrounds */
.overlay-container::before,
.overlay-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease-in-out;
    z-index: -1;
}

.overlay-container::before {
    background: linear-gradient(rgba(16, 15, 15, 0.4), rgba(16, 15, 15, 0.4)), url('../images/product5.png') center/cover no-repeat;
    opacity: 1;
}

.auth-container.right-panel-active .overlay-container::before {
    opacity: 0;
}

.overlay-container::after {
    background: linear-gradient(rgba(16, 15, 15, 0.4), rgba(16, 15, 15, 0.4)), url('../images/product2.png') center/cover no-repeat;
    opacity: 0;
}

.auth-container.right-panel-active .overlay-container::after {
    opacity: 1;
}

/* Inner Elements */
.form-content {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
    width: 100%;
}

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

.auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #100F0F;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.overlay-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.overlay-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.custom-input {
    background-color: transparent;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: #100F0F;
}

.custom-input:focus {
    background-color: #F5F5F5;
    border-color: #100F0F;
    box-shadow: none;
}

.custom-input::placeholder {
    color: #999;
}

.btn-auth {
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
    margin-top: 1rem;
}

.btn-overlay {
    background-color: transparent;
    border: 1px solid #FFFDF8;
    color: #FFFDF8;
    font-size: 1.05rem;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-overlay:hover {
    background-color: #FFFDF8;
    color: #100F0F;
}

/* Responsive */
@media (max-width: 767.98px) {
    .auth-container {
        min-height: 800px;
    }

    .form-container {
        width: 100%;
        height: 50%;
    }

    .sign-in-container {
        top: 0;
        z-index: 2;
    }

    .sign-up-container {
        top: 50%;
        opacity: 1;
        z-index: 1;
    }

    .overlay-container {
        display: none;
    }

    .auth-container.right-panel-active .sign-in-container {
        transform: none;
    }

    .auth-container.right-panel-active .sign-up-container {
        transform: none;
        animation: none;
    }

    .form-content {
        padding: 0 20px;
    }

    /* Divider for mobile */
    .sign-up-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background-color: #E0E0E0;
    }
}