/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Fond dégradé */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #b43f3f, #706666);
    overflow: hidden;
}

/* Conteneur principal */
.container {
    position: relative;
}

/* Boîte de connexion avec effet verre dépoli */
.login-box {
    position: relative;
    width: 320px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 10;
}

/* Titre */
.login-box h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Titre */
.login-box p {
    color: white;
    margin-bottom: 20px;
    font-family: "Arial", sans-serif;
    font-size: 0.9rem;
}

/* Champs de formulaire */
.login-box input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: none;
    border-radius: 25px;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Placeholder blanc */
.login-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Bouton Connexion */
.login-box .connexion {
    width: 80%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}

.login-box .connexion:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Lien mot de passe oublié */
.login-box a {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: white;
    text-decoration: none;
    opacity: 0.7;
}

.login-box a:hover {
    opacity: 1;
}

/* --- Effet carrés flottants autour de la boîte de connexion --- */

.square {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    animation: float 6s infinite ease-in-out alternate;
}

/* Positionnement des carrés */
.square:nth-child(1) { top: -50px; left: -50px; }
.square:nth-child(2) { top: -40px; right: -60px; width: 80px; height: 80px; }
.square:nth-child(3) { bottom: -50px; left: 40px; width: 90px; height: 90px; }
.square:nth-child(4) { bottom: 60px; right: -30px; width: 70px; height: 70px; }
.square:nth-child(5) { top: 50%; left: -70px; width: 85px; height: 85px; }
.square:nth-child(6) { bottom: 20%; right: -80px; width: 110px; height: 110px; }
.square:nth-child(6) { bottom: 20%; right: -80px; width: 110px; height: 110px; }
.square:nth-child(7) { top: -50px; left: -50px; }

/* Animation de flottement */
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}
