/* Style pour la page de connexion HyperByke, cohérent avec l’interface admin */

article {
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 60vh;
}

h1 {
    margin-bottom: 30px;
    color: #111;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Formulaire */
form#loginForm {
    background: #fff;
    border: 2px solid #222;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.18);
    padding: 28px 36px;
    min-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-sizing: border-box;
}

/* Groupes de champs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
}

/* Champs texte */
input[type="text"],
input[type="password"] {
    padding: 10px 12px;
    border: 2px solid #222;
    border-radius: 0;
    font-size: 1rem;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #0077ff;
    outline: none;
    background: #fff;
}

/* Bouton de soumission */
button[type="submit"] {
    background: #fff;
    color: #222;
    border: 2px solid #222;
    border-radius: 0;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

button[type="submit"]:hover {
    background: #f0f0f0;
    color: #000;
}

/* Liens et messages */
.form-group p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
}

.form-group a {
    color: #0077ff;
    text-decoration: underline;
    transition: color 0.2s;
}

.form-group a:hover {
    color: #005fcc;
}

#loginMessage {
    margin-top: 18px;
    color: #d32f2f;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 500px) {
    form#loginForm {
        min-width: 90vw;
        padding: 20px 5vw;
    }
}
