/* ==========================================================================
   CHARTE GRAPHIQUE ET RESET
   ========================================================================== */
:root {
    --gold: #c5a059;
    --dark-gold: #8f6b1e;
    --deep-black: #0a0a0a;
    --stone: #1c1c1c;
    --text-color: #eee;
    --muted-gold: rgba(197, 160, 89, 0.4);
}

* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--deep-black);
    /* Subtile texture de pierre en arrière-plan */
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVQIW2NkQAKrVq36z8gAFUPhbNiwAW4mUAcH+Lp9/QAAAABJRU5ErkJggg=='); 
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   MISE EN PAGE (VESTIBULE / LOGIN)
   ========================================================================== */
.login-wrapper {
    max-width: 600px; /* Taille optimale pour garder le titre sur une ligne */
    width: 90%;
    text-align: center;
}

#banner {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Conteneur pour aligner le logo et le titre sur une seule ligne */
.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.logo {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
}

#banner h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    color: var(--gold);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    letter-spacing: 5px;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: var(--muted-gold);
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

/* ==========================================================================
   LE CONTAINER DE CONNEXION
   ========================================================================== */
#login-container {
    background: linear-gradient(135deg, #141414, #1c1c1c);
    border: 1px solid var(--dark-gold);
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

/* Coins ornementaux gothiques */
#login-container::before, 
#login-container::after {
    content: "";
    position: absolute;
    width: 30px; 
    height: 30px;
    border: 1px solid var(--gold);
    opacity: 0.4;
}
#login-container::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
#login-container::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

#login-container:hover {
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.1);
    border-color: var(--gold);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* Groupes de saisie */
.input-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group label {
    font-family: 'Montserrat', sans-serif;
    color: #a0a0a0;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.input-group input {
    background: #0d0d0d;
    border: 1px solid #333;
    color: var(--text-color);
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

/* Options (Se souvenir / Oublié) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    accent-color: var(--gold);
    width: 16px; 
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    text-decoration: none;
    color: #888;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--gold);
}

/* Bouton de validation */
button[type="submit"] {
    background: var(--dark-gold);
    color: #121212;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background: var(--gold);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.3);
}

/* ==========================================================================
   AJUSTEMENTS RESPONSIVES
   ========================================================================== */
@media (max-width: 600px) {
    #banner h1 { 
        font-size: 1.8rem; 
        letter-spacing: 2px;
    }
    
    .logo {
        height: 2.2rem;
    }

    .title-container {
        gap: 10px;
    }

    #login-container { 
        padding: 2.5rem 1.5rem; 
    }

    .form-options { 
        flex-direction: column; 
        gap: 1rem; 
        align-items: flex-start; 
    }
}