/* Corps de la page */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #b88ae6, #4e86e6);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Conteneur principal */
.page-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Logo */
.logo {
    width: 120px;
    margin: 0 auto 20px auto;
    display: block;
}

/* Titre principal */
h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Champs de formulaire */
.form-control {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Bouton de soumission */
.btn-custom {
    background: #2575fc;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-custom:hover {
    background: #6a11cb;
    transform: scale(1.03);
}

/* Lien pour se connecter */
.register-link {
    display: block;
    margin-top: 15px;
    text-decoration: none;
    color: #2575fc;
    font-size: 14px;
}

.register-link:hover {
    text-decoration: underline;
}

/* Messages d'erreur */
#errorContainer {
    color: red;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Message de chargement */
#loading {
    color: blue;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Message de bienvenue */
#welcomeMessage {
    color: green;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

/* Texte des champs obligatoires */
textarea::placeholder,
input::placeholder {
    color: #888;
    font-style: italic;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 500px) {
    .page-container {
        padding: 20px;
    }

    h2 {
        font-size: 20px;
    }

    .btn-custom {
        font-size: 14px;
    }

    .form-control {
        font-size: 13px;
    }
}
