/* Ajoute ton CSS ici, tu peux récupérer le style existant */
.active {
    /* Ex: pour le container actif */
}

.alert-danger {
    color: red;
}

* {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

.button-container-1 {
    margin-top: 10px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid #512da8;
    position: relative;
    width: 145px;
    height: 42px;
    overflow: hidden;
    transition: 0.5s;
    border-radius: 8px;

    button {
        margin-left: -4px;
        width: 104%;
        height: 100%;
        font-size: 12px;
        font-weight: bold;

        button(
        #512da8,
        "https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/nature-sprite.png",
        2300%,
        100%, none,
        #fff
        );
        cursor: pointer;
        -webkit-animation: ani2 0.7s steps(22) forwards;
        animation: ani2 0.7s steps(22) forwards;

        &:hover {
            -webkit-animation: ani 0.7s steps(22) forwards;
            animation: ani 0.7s steps(22) forwards;
        }
    }
}

.button-container-2 {
    margin-top: 10px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid #512da8;
    position: relative;
    width: 145px;
    height: 42px;
    overflow: hidden;
    transition: 0.5s;
    border-radius: 8px;

    button {
        margin-left: -4px;
        width: 104%;
        height: 100%;
        font-size: 12px;
        font-weight: bold;

        button(
        #512da8,
        "https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/urban-sprite.png",
        3000%,
        100%, none,
        #fff
        );
        cursor: pointer;
        -webkit-animation: ani2 0.7s steps(29) forwards;
        animation: ani2 0.7s steps(29) forwards;

        &:hover {
            -webkit-animation: ani 0.7s steps(29) forwards;
            animation: ani 0.7s steps(29) forwards;
        }
    }
}

.button-container-3 {
    margin-top: 10px;
    color: #512da8;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid #fff;
    position: relative;
    width: 145px;
    height: 42px;
    overflow: hidden;
    transition: 0.5s;
    border-radius: 8px;

    button {
        margin-left: -4px;
        width: 104%;
        height: 100%;
        font-size: 12px;
        font-weight: bold;

        button(
        #512da8,
        "https://raw.githubusercontent.com/pizza3/asset/master/natureSmaller.png",
        7100%,
        100%, none,
        #512da8
        );
        cursor: pointer;
        -webkit-animation: ani2 0.9s steps(70) forwards;
        animation: ani2 0.9s steps(70) forwards;

        &:hover {
            -webkit-animation: ani 0.9s steps(70) forwards;
            animation: ani 0.9s steps(70) forwards;
        }
    }
}

.mas {
    position: absolute;
    color: #512da8;
    text-align: center;
    width: 101%;
    font-size: 12px;
    margin-top: 11px;
    overflow: hidden;
    font-weight: bold;
}

.mas-2 {
    position: absolute;
    color: #fff;
    text-align: center;
    width: 101%;
    font-size: 12px;
    margin-top: 11px;
    overflow: hidden;
    font-weight: bold;
}

.button-container-4 {
    margin-top: 10px;
    color: #5c6bc0;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid #fff;
    position: relative;
    width: 145px;
    height: 42px;
    overflow: hidden;
    transition: 0.5s;
    border-radius: 8px;

    button {
        margin-left: -4px;
        width: 104%;
        height: 100%;
        font-size: 12px;
        font-weight: bold;

        button(
        #5c6bc0,
        "https://raw.githubusercontent.com/pizza3/asset/master/natureSmaller.png",
        7100%,
        100%, none,
        #5c6bc0
        );
        cursor: pointer;
        -webkit-animation: ani2 0.9s steps(70) forwards;
        animation: ani2 0.9s steps(70) forwards;

        &:hover {
            -webkit-animation: ani 0.9s steps(70) forwards;
            animation: ani 0.9s steps(70) forwards;
        }
    }
}

.mas-3 {
    position: absolute;
    color: #fff;
    text-align: center;
    width: 101%;
    font-size: 12px;
    margin-top: 11px;
    overflow: hidden;
    font-weight: bold;
}

@-webkit-keyframes ani {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }

    to {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

@keyframes ani {
    from {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }

    to {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
}

@-webkit-keyframes ani2 {
    from {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }

    to {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
}

@keyframes ani2 {
    from {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }

    to {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
}

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

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

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

.container button {
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    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;
    color: black;
    border: none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container {
    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%);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    opacity: 0;
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
    transition: all 0.6s ease-in-out;
}

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

@keyframes move {
    0%,
    51% {
        opacity: 0;
    }

    51%,
    100% {
        opacity: 1;
    }
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    border: 1px solid #ccc;
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
    transition: all 0.5s ease-in-out;
}

.social-icons a:hover {
    scale: 1.3;
    border: 1px solid #000;
}

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

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

.toggle {
    height: 100%;
    background: #512da8 linear-gradient(to right, #5c6bc0, #512da8);
    color: #fff;
    position: relative;
    left: -100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

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

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

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

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

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

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

