/* Styles Globaux */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Conteneur principal */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 1s ease-in-out;
    position: relative;
    box-sizing: border-box; /* Prévient les problèmes de largeur avec le padding */
}

/* Forme circulaire en arrière-plan */


.login-container::before {
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: #E1306C;
}

.login-container::after {
    bottom: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: #833AB4;
}

/* Logo */
.login-image img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    padding: 10px;
}

/* Formulaire */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.login-form h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #E1306C;
}

.login-form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: bold;
    color: #833AB4;
}

.login-form input {
    width: 100%; /* Prend toute la largeur du parent */
    display: block; /* Rend l'élément un bloc */
    margin: 0 auto 20px; /* Centre horizontalement et ajoute un espacement en bas */
    padding: 12px 55px; /* Espacement interne */
    border: 1px solid #E1306C;
    border-radius: 30px;
    background: #FDEDEF;
    font-size: 1rem;
    color: #E1306C;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur totale */
}



.login-form input:focus {
    background: #FFFFFF;
    outline: none;
    border-color: #FCAF45;
    box-shadow: 0 0 5px rgba(255, 100, 150, 0.5);
}

/* Bouton "Se connecter" */
.login-form button {
    width: 100%; /* Assure que le bouton occupe toute la largeur */
    display: block; /* Rend l'ensemble du bouton cliquable */
    margin: 0 auto;
    background: linear-gradient(135deg, #F77737, #E1306C, #833AB4);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center; /* Centre le texte */
}

.login-form button:hover {
    transform: scale(1.05);
}

/* Lien "Créer un compte" */
.login-form a {
    display: inline-block; /* Fait que l'ensemble du lien est cliquable */
    color: #E1306C;
    font-size: 0.9rem;
    text-decoration: none; /* Supprime le soulignement */
    margin-top: 10px;
    padding: 5px 10px; /* Ajoute un espace cliquable autour du lien */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.login-form a:hover {
    color: #FCAF45;
    background: rgba(0, 0, 0, 0.1); /* Ajoute un fond au survol */
}


/* Lien mot de passe oublié */
.login-form .forgot-password {
    color: #E1306C;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.login-form .forgot-password:hover {
    color: #FCAF45;
}

/* Erreur */
.login-form .error {
    color: #E1306C;
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .login-container {
        padding: 30px;
        width: 95%;
    }

    .login-form h1 {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
