*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    background-image: url('../img/BlueBackgroundStable.jpg');
    background-size: cover;
    background-position: center;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(var(--vh, 1vh) * 100);
    margin: 0;
}

.background {
    width: 430px;
    height: 520px;
    position: absolute;
    z-index: -1;
}

.background .shape {
    height: 200px;
    width: 200px;
    position: absolute;
    border-radius: 50%;
}

.shape:first-child {
    background: linear-gradient(
        #1845ad,
        #23a2f6
    );
    left: -80px;
    top: -80px;
}

.shape:last-child {
    background: linear-gradient(
        to right,
        #ff512f,
        #f09819
    );
    right: -30px;
    bottom: -80px;
}

form {
    height: 520px;
    width: 400px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

form * {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

form .logo-container {
    text-align: center;
    margin-bottom: 30px;
}

form .logo {
    height: auto;
    max-width: 100%;
}

label {
    display: block;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

input {
    display: block;
    height: 50px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    padding: 0 10px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 300;
}

::placeholder {
    color: #e5e5e5;
}

button {
    margin-top: 50px;
    width: 100%;
    background-color: #ffffff;
    color: #080710;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
}

.error {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    text-align: center;
}

.mentions-container {
    max-width: 800px;
    margin: 50px auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(8, 7, 16, 0.6);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.mentions-container h1, .mentions-container h2, .mentions-container h3 {
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 15px;
}

.mentions-container p, .mentions-container a {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e5e5;
}

.mentions-container a {
    color: #23a2f6;
    text-decoration: none;
}

.mentions-container a:hover {
    text-decoration: underline;
}

/* Style pour le footer */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.07);
}

footer .legal-mentions a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

footer .legal-mentions a:hover {
    text-decoration: underline;
}

footer .legal-mentions p {
    margin-top: 10px;
    color: #e5e5e5;
    font-size: 12px;
    font-weight: 300;
}

@media (max-width: 768px) {
    body {
        padding-top: 20px;
    }

    form {
        width: 90%;
        height: auto;
        margin-top: 0;
    }

    .background {
        display: none;
    }
    footer {
        padding: 0 0;
    }
    .mentions-container {
        margin: 0 auto;
    }
    label {
        margin-top: 0;
    }
    form {
        height: 450px;
    }
}