/* Mise en page générale */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #767B82, #365987);
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeInBody 1s ease-in forwards;
}

/* Animation d’apparition générale */
@keyframes fadeInBody {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Conteneur principal */
.login-container {
    background: rgba(255, 255, 255, 0.15);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    width: 420px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: fadeInUp 0.8s ease-in-out forwards;
}

/* Animation d’apparition du formulaire */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre */
.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.login-container p.message {
    text-align: center;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Champs */
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 20px 0 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
    
}

.login-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-container input:focus {
    border-color: #4A90E2;
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

/* Bouton */
.login-container [type="submit"] {
    width: 100%;
    padding: 12px;
    margin: 20px 0 8px 0;
    background: linear-gradient(135deg, #4A90E2, #1C3D72);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.login-container [type="submit"]:hover {
    background: linear-gradient(135deg, #3A78C2, #162E57);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Lien */
.login-container .link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.login-container .link a {
    color: #E0E8FF;
    text-decoration: none;
    transition: color 0.3s;
}

.login-container .link a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 400px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }
}


/* Logo au-dessus du formulaire */
.logo {
    display: block;
    width: auto; /* taille ajustable selon ton image */
    max-width: 220px;
    margin: 0 auto 20px auto;
    animation: fadeInLogo 1s ease-in-out forwards;
    opacity: 0;
}

/* Animation du logo */
@keyframes fadeInLogo {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


* {
    box-sizing: border-box;
}

.messageErreur {
    color: red;
    text-align: center;
}

/*
.erreurChamp {
    border-color: red !important;
}*/


.erreurChamp,
.erreurChamp:focus {
    border: 2px solid #ff4d4d !important;
    background-color: rgba(255, 0, 0, 0.08) !important;
}