* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: rgba(208, 181, 129) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
}

.container {
    background-color: #fff;
    border-radius: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

    .container p {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.3px;
        margin: 20px 0;
    }

    .container span {
        font-size: 12px;
    }

    .container a {
        color: #333;
        font-size: 13px;
        text-decoration: none;
        margin: 15px 0 10px;
    }

    .container button {
        background-color: #5190e3;
        color: #fff;
        padding: 10px 45px;
        border: 1px solid transparent;
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-top: 10px;
        cursor: pointer;
    }

        .container button.hidden {
            background-color: transparent;
            border-color: #fff;
        }

    .container form {
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0 40px;
        height: 100%;
    }

    .container input {
        background-color: #eee;
        border: none;
        margin: 8px 0;
        padding: 10px 15px;
        font-size: 13px;
        border-radius: 8px;
        width: 100%;
        outline: none;
    }

.sign-up, .sign-in {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

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

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

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

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

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

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

.icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Wrap items on smaller screens */
    margin: 20px 0;
}

    .icons a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 10px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #ccc;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

        .icons a:hover {
            transform: scale(1.1);
            border-color: #5190e3; /* Hover effect */
        }

    .icons img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.toogle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-radius: 150px;
    z-index: 1000;
    transition: all 0.6s ease-in-out;
}

.container.active .toogle-container {
    transform: translateX(-100%);
    border-radius: 150px;
}

.toogle {
    background-color: #000000;
    height: 100%;
    background: linear-gradient(to right, #3b4042, #04040a);
    color: #fff;
    position: relative;
    left: -100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toogle {
    transform: translateX(50%);
}

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

.toogle-left {
    transform: translateX(-200%);
}

.container.active .toogle-left {
    transform: translateX(0);
}

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

.container.active .toogle-right {
    transform: translateX(200%);
}

.container button:hover {
    background-color: #3a6bb0; /* Slightly darker shade */
    transition: background-color 0.3s ease;
}

.icons a:hover {
    border-color: #57d9f9; /* Matching gradient colors */
    transition: border-color 0.3s ease;
}

.container input:invalid {
    border: 2px solid #e40e0e; /* Red border for error */
    outline: none;
}

/* Carousel Background */
.carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Push carousel behind the content */
    overflow: hidden;
}

    .carousel img {
        object-fit: cover; /* Ensures the image covers the entire area */
        width: 100%;
        height: 100%;
    }

/* Mobile Adjustments for Carousel */
@media (max-width: 768px) {
    .carousel img {
        object-fit: contain; /* Adjusts for smaller screens */
    }
}

@media (max-width: 768px) {
    .sign-in, .sign-up {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        opacity: 0;
        transform: translateX(-100%);
        transition: opacity 0.3s, transform 0.3s;
    }

    .container.active .sign-up {
        opacity: 1;
        transform: translateX(0);
    }

    .container:not(.active) .sign-in {
        opacity: 1;
        transform: translateX(0);
    }

    /* Hide the toggle container on mobile */
    .toogle-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .icons a {
        width: 50px;
        height: 50px;
        margin: 8px;
    }
}

@media (max-width: 480px) {
    .icons {
        flex-direction: column; /* Stack badges vertically */
        align-items: center;
    }

        .icons a {
            width: 45px;
            height: 45px;
            margin: 5px;
        }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

        .container button {
            padding: 8px 15px;
            font-size: 12px;
        }

    .icons a {
        width: 32px;
        height: 32px;
    }

    .container h1 {
        font-size: 18px;
    }

    .container p {
        font-size: 10px;
    }
}
