*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #080710;
}

.background {
    width: 430px;
    height: 520px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.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;
    background-color: rgba(255, 255, 255, 0.13);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    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;
}

form * {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

.error-message {
    color: red;
    font-weight: bold;
}

form h3 {
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
}

label {
    display: block;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 500;
}

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;
}

#connexion {
    margin-top: 50px;
    width: 100%;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right,
            #ff512f,
            #f09819);
    transition: all 0.4s;
}

#connexion:hover {
    background: linear-gradient(#1845ad,
            #23a2f6);
    color: #000;
    transform: scale(1.02) translateY(-1px);
    text-shadow: 2px 2px 1px rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

#connexion::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: white;
    transition: all 0.3s;
}

#connexion:hover::after {
    left: 99%;
}

#connexion:hover::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 2px;
    margin-top: -2px;
    background-color: white;
    border-radius: 10%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: rotateLight 0.7s;
    animation-fill-mode: forwards;
    z-index: 10;
}

@keyframes rotateLight {
    0% {
        top: 87%;
        left: 100%;
        transform: translateX(0%);
    }

    10% {
        top: 87%;
        left: 55%;
        transform: translateY(0%);
    }

    100% {
        top: 87%;
        left: 50%;
        transform: translateX(-50%);
    }
}

#connexion:hover {
    box-shadow: white 0px 10px 15px -10px;
}

#eye {
    position: absolute;
    top: 55%;
    right: 12%;
    cursor: pointer;
    color: orange;
}

.current_password-container {
    position: relative;
}