/* Reset CSS */
body, h1, h2, p, form, label, select, input, button, div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de la page */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding: 20px;
}

/* Titres */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    color: #6200ea;
}

h2 {
    font-size: 1.8rem;
    color: #424242;
}

/* Section de connexion et de gestion des utilisateurs */
form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Labels */
label {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
    color: #424242;
}

/* Champs de texte */
input[type="text"],
input[type="password"],
input[type="checkbox"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #6200ea;
    outline: none;
    box-shadow: 0 0 5px rgba(98, 0, 234, 0.5);
}

/* Boutons */
button,
input[type="submit"] {
    background-color: #6200ea;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

button:hover,
input[type="submit"]:hover {
    background-color: #3700b3;
}

/* Boutons inline */
form[method="get"] button {
    width: auto;
    margin-left: 10px;
    background-color: #ff5252;
}

form[method="get"] button:hover {
    background-color: #d50000;
}

/* Bandeau de création de compte */
#toggle-form {
    cursor: pointer;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-align: center;
    border-radius: 5px;
    display: inline-block;
    margin: 20px auto;
    max-width: 200px;
    transition: background-color 0.3s ease;
}

#toggle-form:hover {
    background-color: #0056b3;
}

/* Formulaire masqué */
#creation-account-form {
    display: none;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #f9f9f9;
}

/* Liste des critères de mot de passe */
#password-requirements ul {
    list-style: none;
    padding-left: 20px;
}

#password-requirements li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Statut du serveur */
span {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: bold;
}

/* Bouton start/stop serveur */
.button-container {
    text-align: center;
    margin-top: 20px;
}

.button-container button {
    max-width: 200px;
    margin: 0 auto;
}

.button-container .start {
    background-color: #4caf50;
}

.button-container .start:hover {
    background-color: #388e3c;
}

.button-container .stop {
    background-color: #f44336;
}

.button-container .stop:hover {
    background-color: #d32f2f;
}

/* Message serveur */
#message {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    form {
        padding: 15px;
    }
}
