/* Styles de base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    background-image: url("/images/mer4.jpg");
    background-size: cover; /* S'assure que l'image couvre toute la page */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    background-position: top; /* Centre l'image */
    height: 100%; /* Assurer que le body prend toute la hauteur de la page */
    flex-direction: column;
}

.container {
    display: flex;
    padding-top: 4rem;
    align-items: flex-start;
    justify-content: center;
    height: calc(100vh - 6rem); /* Hauteur ajustée pour éviter le débordement */
    box-sizing: border-box; /* Inclure les paddings et les bordures dans la hauteur */
}

.login-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    color: #1e3c72;
}

.error-message {
    color: red;
    margin-bottom: 20px;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.forgot-password {
    display: block;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #0066cc;
    text-decoration: none;
    text-align: right;
}

.forgot-password:hover {
    text-decoration: underline;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-button,
.signup-button,
input[type="submit"] {
    background-color: #fff;
    color: #1e3c72;
    border: 1px solid #1e3c72;
    padding: 10px 20px;
    font-size: 1rem; /* Assurer une taille de police uniforme */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.login-button:hover,
.signup-button:hover,
input[type="submit"]:hover {
    background-color: #1e3c72;
    color: #fff;
}

.error-message, .success-message {
    margin: 1.25rem 0;
    padding: 0.625rem;
    border-radius: 5px;
    font-size: 0.875rem;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

input[type="submit"] {
    background-color: #1e3c72;
    color: #fff;
}
