:root {

    --rose: #e2067a;
    --orange: #f59d1a;
    --bleu: #3360aa;
    --noir: #202020;
    --blanc: #ffffff;

}

/* RESET */

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

/* BODY */

body {

    min-height: 100vh;

    font-family: Arial, sans-serif;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #1e3d70,
            #3360aa,
            #e2067a
        );

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
}

/* BACKGROUND */

.background-shapes {

    position: absolute;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 1;
}

.shape {

    position: absolute;

    border-radius: 50%;

    filter: blur(40px);

    opacity: 0.3;
}

.shape1 {

    width: 300px;
    height: 300px;

    background: var(--rose);

    top: -100px;
    left: -100px;
}

.shape2 {

    width: 350px;
    height: 350px;

    background: var(--orange);

    bottom: -120px;
    right: -120px;
}

.shape3 {

    width: 250px;
    height: 250px;

    background: #ffffff;

    opacity: 0.08;

    top: 50%;
    left: 60%;
}

/* LOGIN BOX */

.login-container {

    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 430px;

    background: rgba(255,255,255,0.15);

    backdrop-filter: blur(22px);

    border: 1px solid rgba(255,255,255,0.2);

    border-radius: 30px;

    padding: 45px 38px;

    box-shadow:
        0 20px 60px rgba(0,0,0,0.25);

    animation: fadeIn 0.5s ease;
}

/* LOGO */

.logo {

    display: flex;
    justify-content: center;

    margin-bottom: 25px;
}

.logo img {

    width: 90px;
}

/* TITRE */

.login-container h1 {

    text-align: center;

    color: white;

    font-size: 34px;

    margin-bottom: 10px;
}

.login-container p {

    text-align: center;

    color: rgba(255,255,255,0.8);

    margin-bottom: 35px;

    line-height: 1.5;
}

/* FORM */

.login-form {

    display: flex;
    flex-direction: column;

    gap: 24px;
}

/* GROUP */

.form-group {

    position: relative;
}

/* LABEL */

.form-group label {

    position: absolute;

    top: -10px;
    left: 18px;

    background: rgba(255,255,255,0.95);

    color: var(--bleu);

    font-size: 13px;
    font-weight: 700;

    padding: 3px 10px;

    border-radius: 30px;

    z-index: 2;
}

/* INPUT */

.form-group input {

    width: 100%;
    height: 64px;

    border: none;

    border-radius: 22px;

    background: rgba(255,255,255,0.92);

    padding: 0 22px;

    font-size: 15px;

    color: var(--noir);

    transition: 0.3s ease;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.08);
}

.form-group input::placeholder {

    color: #999;
}

.form-group input:hover {

    transform: translateY(-2px);

    background: white;
}

.form-group input:focus {

    outline: none;

    transform: translateY(-3px);

    background: white;

    box-shadow:
        0 12px 30px rgba(51,96,170,0.25);
}

/* BUTTON */

.btn-login {

    height: 62px;

    border: none;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            var(--rose),
            var(--orange)
        );

    color: white;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition: 0.3s ease;

    margin-top: 5px;

    box-shadow:
        0 12px 30px rgba(226,6,122,0.35);
}

.btn-login:hover {

    transform: translateY(-3px);

    box-shadow:
        0 16px 35px rgba(226,6,122,0.45);
}

.btn-login:active {

    transform: scale(0.98);
}

/* ERROR */

.error-message {

    background: rgba(255,255,255,0.15);

    border: 1px solid rgba(255,255,255,0.2);

    color: white;

    padding: 14px;

    border-radius: 18px;

    text-align: center;

    margin-bottom: 20px;

    font-size: 14px;
    font-weight: 600;
}

/* FOOTER */

.login-footer {

    margin-top: 28px;

    text-align: center;

    color: rgba(255,255,255,0.65);

    font-size: 13px;
}

/* ANIMATION */

@keyframes fadeIn {

    from {

        opacity: 0;
        transform: translateY(20px);
    }

    to {

        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media (max-width: 520px) {

    body {

        padding: 20px;
    }

    .login-container {

        padding: 35px 25px;
    }

    .login-container h1 {

        font-size: 28px;
    }

    .form-group input {

        height: 58px;
    }

    .btn-login {

        height: 58px;
    }
}