h1 {
    display: none;
}

h2 {
    font-family: 'Anton', serif;
    font-size: 3rem;
    color: #F5F5F5;
    margin-top: 40px;
    text-align: center;
}

/* CONTENEUR */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

/* BOX */
.auth-box {
    background-color: #0E0E0E;
    padding: 50px 40px;
    border-radius: 15px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.auth-box--wide {
    max-width: 680px;
}

/* LOGO */
.auth-logo {
    margin-bottom: 20px;
}

.auth-logo img {
    width: 120px;
    border-radius: 10px;
}

/* TITRE & SOUS-TITRE */
.auth-box h2 {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #9D2137;
}

.auth-subtitle {
    font-size: 1rem;
    font-family: 'Arimo', serif;
    color: #AAAAAA;
    margin-bottom: 25px;
}

/* FLASH MESSAGES */
.flash-error, .flash-success, .flash-warning, .flash-info {
    font-family: 'Arimo', serif;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: left;
}

.flash-error   { background-color: #9D2137; color: #F5F5F5; }
.flash-success { background-color: #1a3a1a; border-left: 3px solid #4caf50; color: #a5d6a7; }
.flash-warning { background-color: #C48C6A; color: #000000; }
.flash-info    { background-color: #0a1f2d; border-left: 3px solid #3498db; color: #85c1e9; }

/* FORMULAIRE */
.auth-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #F5F5F5;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Arimo', serif;
    border-radius: 8px;
    border: none;
    background-color: #2A2A2A;
    color: #F5F5F5;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 5px #9D2137;
}

/* MOT DE PASSE + TOGGLE */
.input-password {
    position: relative;
}

.input-password input {
    width: 100%;
    padding: 15px 50px 15px 20px; /* espace pour le bouton */
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-family: 'Arimo', serif;
    background-color: #2A2A2A;
    color: #F5F5F5;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.toggle-password svg {
    width: 24px;
    height: 24px;
    fill: #F5F5F5;
}

.toggle-password .eye-closed {
    display: none;
}

.toggle-password.show .eye-open {
    display: none;
}

.toggle-password.show .eye-closed {
    display: block;
}

/* FORCE MOT DE PASSE */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    background: #2A2A2A;
    transition: all 0.3s ease;
}

.password-strength.weak   { background: #c0392b; width: 33%; }
.password-strength.medium { background: #e67e22; width: 66%; }
.password-strength.strong { background: #1a3a1a; width: 100%; }

/* ERREURS */
.form-group ul {
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
}

.form-group ul li {
    font-family: 'Arimo', serif;
    font-size: 0.85rem;
    color: #e74c3c;
    margin-top: 4px;
}

/* CHECKBOXES */
.form-group--checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 3px;
    accent-color: #9D2137;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.form-group--checkbox label {
    font-family: 'Arimo', serif;
    font-size: 0.9rem;
    color: #AAAAAA;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    margin-bottom: 0;
}

.form-group--checkbox label a {
    color: #9D2137;
    text-decoration: none;
}

.form-group--checkbox label a:hover {
    text-decoration: underline;
}

/* BOUTON */
.btn-auth {
    width: 100%;
    padding: 15px;
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    background-color: #541826;
    border: none;
    border-radius: 8px;
    color: #F5F5F5;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    background-color: #9D2137;
    transform: scale(1.03);
}

/* LIENS BAS DE PAGE */
.auth-links {
    font-family: 'Arimo', serif;
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: #AAAAAA;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.auth-links a {
    color: #F5F5F5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-links a:hover { color: #9D2137; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .auth-box--wide {
        padding: 35px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 35px 20px;
    }

    .auth-box h2 { font-size: 1.6rem; }

    .btn-auth {
        padding: 12px;
        font-size: 1rem;
    }
}