@import url('https://fonts.googleapis.com/css2?family=Magic+Retro&display=swap');

body {
    margin: auto;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: auto;
    background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgb(25, 255, 201) 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1%);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1%);
    }
}
.pop-up-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 0.5s ease-in-out 0.6s forwards;
}

/* Define a fade-in animation for button, input, h1, and label elements */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-button {
    width: 325px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight:bold;
    outline:none;
    background-color: rgba(56, 162, 211, 0.6);
    border-radius: 10px;
    border: 5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    transition: all 0.4s;
    z-index: 2;
}

.login-button:hover {
    border: 5px solid rgba(255,255,255,0.2);
    background-color: rgba(56, 162, 211, 0.3);
}

.login-button:focus {
    background-color: rgba(56, 162, 211, 0.3);
}
.form-custom:hover {
    border: 2px solid rgba(255,255,255,0.5);
}
.form-custom:focus {
    border: 2px solid rgba(255,255,255,0.5);
    background-color: rgba(20, 20, 20, 0.7);
}
.div-custom {
    top: 200px;
    width: 525px;
}

.form-custom {
    width: 500px;
    padding: 10px;
    font-size: 18px;
    outline:none;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.5s;
    margin-top: 15%;
    box-shadow: 10px 10px 5px rgba(20, 20, 20, 0.7);
}
.input-custom {
    text-align: center;
    width: 80%; /* Ajustez la largeur selon vos besoins */
    margin: auto;
    padding: 10px;
    font-size: 18px;
    outline:none;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.5s;
    display: flex;
    justify-content: center; /* Centrage horizontal des éléments flexibles */
    align-items: center; /* Centrage vertical des éléments flexibles */

}
.center{
    margin-left: 12%;
    margin-right: 12%;
    padding: 15px;
    width: 120px;
    text-align: center;
}
.error{
    display: inline-block;
    position: fixed;
    bottom: 20px;
    left: 40%;
    transform: translateX(-50%);
    text-align: center;
    margin: 0 auto;
}
.login-marg {
    margin-bottom: -40%;
}
.connexion {
    margin-bottom: 8%;
    margin-top: 4%;
    text-align: center;
}
