:root {
    --login-top-offset: 100px;          /* position verticale ajustable */
    --container-border-color: grey;     /* couleur bordure container */
    --container-shadow: rgba(0,0,0,0.3); /* couleur ombre container */
}
/*----------------------------------------*/
/* Reset de base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
	font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, DejaVu Sans, Liberation Sans, sans-serif;
    font-size: 13px; /* plutôt que 10pt */
    font-style: normal;
    font-weight: normal;
    color: #330033;
    background: #EEEEEE;
}
/*----------------------------------------*/
/* Container autour de la carte, plus large */
.login-container {
    width: 1200px; /* ← plus large que login-card (400px) */
    max-width: 100%;
    padding: 50px; /* espace autour de la carte */
    border-left: 3px solid var(--container-border-color);
    border-right: 3px solid var(--container-border-color);
    border-bottom: 3px solid var(--container-border-color);
    box-shadow: 4px 4px 8px var(--container-shadow);
    border-radius: 5px;
    background: #EEEEEE;
    display: flex;
    justify-content: center; /* centre la login-card à l'intérieur */
}
/*----------------------------------------*/
/* Wrapper centré horizontalement, top réglable */
.login-wrapper {
    display: flex;
    justify-content: center;       /* centre horizontalement */
    align-items: flex-start;       /* commence tout en haut */
	min-height: 100vh;              /* prend toute la hauteur disponible */
    padding-top: var(--login-top-offset);
    padding-left: 20px;
    padding-right: 20px;

}

/*----------------------------------------*/
/* Carte login */
.login-card {
    width: 400px;
    max-width: 100%;
    background: #EEEEEE;
    border: 3px inset black;
    border-radius: 5px;
    box-shadow: 4px 4px 4px #1c1a19;
}

/*----------------------------------------*/
/* Header */
.login-header {
    background-image: url("../../images/background/darkfade.png");
    background-repeat: repeat-x;
    color: white;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.login-header h1 {
    margin: 0;
    font-size: 25px;
    padding: 5px 0 0 0;
}

.login-header .browser-info {
    background: #4a4a59;
    font-size: xx-small;
    margin: 0;
    padding: 2px 0;
}

/*----------------------------------------*/
/* Corps */
.login-body {
    display: flex;
    gap: 15px;
    padding: 15px;
}

/* Icône */
.login-icon {
    width: 60px;
    text-align: center;
    padding-top: 10px;
}

/* Champs */
.login-fields {
    flex: 1;
}

.login-message {
    color: red;
    margin-bottom: 10px;
    font-size: 9pt;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.form-group label {
    width: 120px;
    text-align: right;
    margin-right: 8px;
    font-variant: small-caps;
}

.form-group input {
    width: 140px;
    border: 1px solid brown;
    padding: 3px;
    font: normal normal 10pt Verdana, sans-serif;
    background: white;
}

.date-display {
    font-size: 9pt;
}

/* Bouton */
.btn-login {
    margin-top: 10px;
    padding: 4px 12px;
    border: 1px solid brown;
    background: #dddddd;
    font-variant: small-caps;
    cursor: pointer;
}

.btn-login:hover {
    background: #cccccc;
}

/*----------------------------------------*/
/* RESPONSIVE */
@media (max-width: 600px) {
    .login-card {
        width: 100%;
    }

    .login-body {
        flex-direction: column;
        align-items: center;
    }

    .login-icon {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-group label {
        width: 100%;
        text-align: left;
        margin-bottom: 3px;
    }

    .form-group input {
        width: 100%;
    }

    .btn-login {
        width: 100%;
    }
}

