/****
	*
	*   @author [Benoit Hinck]
	*   @copyright [2025]
	*
	*	@filename : login-style.css
	*
	*   @revisions
	*		Le 06/06/2025 : Création
    ****/

body {
    background: linear-gradient(to right, #2575fc 0%, #86abeb 100%); /* Correction ici: parenthèses autour des arguments de linear-gradient */
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;        /* Active Flexbox */
    flex-direction: column; /* Les éléments s'empilent verticalement */
    min-height: 100vh;    /* Assure que le body prend toute la hauteur de la fenêtre */
}

header {
    background-color: #cbc9c9;
    color: #004080;
    padding: 40px 20px;
    position: relative;
    text-align: center;
}

header img {
    height: 60px;
    justify-content: left;
    left: 20px;
    position: absolute;
    vertical-align: middle;
    z-index: 2;
}

.header-content {
    display: inline-block;
    max-width: 100%;
}

.header-content h1,
.header-content p {
    margin: 0;
}

header h1 {
    margin: 0;
}

nav {
    background-color: #e0e0e0;
    padding: 10px;
    text-align: center;
}
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #004080;
    font-weight: bold;
}

main {
    padding: 20px;
}

h2 {
    color: #004080;
}


.login-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: auto; /* Cette propriété centre la div dans le body (horizontalement et verticalement) */
    max-width: 400px;
    padding: 40px;
    text-align: center;
    width: 100%;
}

.login-container h2 {
    align-items: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    color: #555;
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    padding: 12px 10px;
    transition: border-color 0.3s ease;
    width: calc(100% - 20px);
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-color: #6a11cb;
    outline: none;
}

button {
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease; /* On pourrait laisser background ici, mais ça ne transitionnera pas le dégradé */
    padding: 12px 25px;
}

button:hover {
    background: linear-gradient(to left, #6a11cb 0%, #2575fc 100%);
    transform: translateY(-2px);
}

.message {
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
}

.message.error {
    background-color: #ffe0e0;
    border: 1px solid #d32f2f;
    color: #d32f2f;
}

.message.success {
    background-color: #e0ffe0;
    border: 1px solid #388e3c;
    color: #388e3c;
}
