/* ============================= */
/*           GLOBAL              */
/* ============================= */

:root {
    --bg-color: #f4f7f6;
    --text-color: #333;
    --primary-color: #007bff;
    --button-hover: #0056b3;
    --input-bg: #ffffff;
    --input-border: #ddd;
    --input-focus: #007bff;
}

/* Corps de la page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Conteneur principal de la page de connexion */
.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

/* Titre de la page de connexion */
h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Formulaire de connexion */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Style des champs de saisie */
input[type="text"], input[type="password"] {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--input-border);
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: var(--input-bg);
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: var(--input-focus);
}

/* Bouton de connexion */
button {
    padding: 12px 20px;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px; /* Ajout d'une marge sous le bouton */
}

button:hover {
    background-color: var(--button-hover);
}

/* Lien de la page d'inscription */
.signup-link {
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    margin-top: 15px;
}

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

/* Lien vers la page d'accueil */
.home-link {
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
    margin-top: 10px; /* Ajout de marge entre le lien et les autres éléments */
}

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

/* ============================= */
/*         RESPONSIVE            */
/* ============================= */

@media (max-width: 480px) {
    .login-container {
        padding: 30px;
    }

    h1 {
        font-size: 1.5rem;
    }

    input[type="text"], input[type="password"], button {
        font-size: 0.9rem;
    }
}
