/* Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container fluide avec espace autour */
form, .dashboard {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    margin: 1rem;
}

h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

/* Champs */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

/* Boutons */
button {
    width: 100%;
    padding: 0.75rem;
    background-color: #1d72b8;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #155d8b;
}

/* Liens */
a {
    display: inline-block;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    color: #1d72b8;
    text-decoration: none;
    font-size: 0.95rem;
}

a:hover {
    text-decoration: underline;
}

/* Messages */
.error, .success {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.logo {
    max-width: 180px;
    height: auto;
}

/* Responsive mobile ajusté */
@media (max-width: 500px) {
    body {
        padding: 1rem;
    }

    form, .dashboard {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    input, button, a {
        font-size: 1.05rem;
    }
}
