﻿:root {
    --auth-dark: #111827; /* le même fond que ton menu */
    --auth-mid: #1e3a5f; /* bleu marine grisé */
    --auth-light: #3b82f6; /* le bleu de ton lien actif */
}

.auth-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--auth-dark) 0%, var(--auth-mid) 100%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-dark);
}

    .auth-brand i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        color: #fff;
        background: linear-gradient(135deg, var(--auth-dark), var(--auth-light));
        font-size: 1.4rem;
    }

.auth-brand-accent {
    color: var(--auth-light);
    font-weight: 400;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: .25rem;
    color: var(--auth-dark);
}

.auth-subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.auth-card .form-control {
    border-radius: 10px;
}

    .auth-card .form-control:focus {
        border-color: var(--auth-light);
        box-shadow: 0 0 0 .2rem rgba(95, 126, 158, .25);
    }

.auth-card .validation-message {
    display: block;
    font-size: .8rem;
    margin: -.5rem 0 .75rem .25rem;
}

.auth-eye {
    position: absolute;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);
    z-index: 5;
    padding: .25rem;
    border: 0;
    background: none;
    color: #6c757d;
    font-size: 1.1rem;
}

.btn-auth {
    border: 0;
    border-radius: 10px;
    padding: .7rem 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-dark), var(--auth-light));
}

    .btn-auth:hover:not(:disabled) {
        color: #fff;
        filter: brightness(1.15);
    }

    .btn-auth:disabled {
        color: #fff;
        opacity: .7;
    }

.auth-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .95rem;
    color: #6c757d;
}

    .auth-link a {
        color: var(--auth-mid);
        font-weight: 600;
        text-decoration: none;
    }

        .auth-link a:hover {
            text-decoration: underline;
        }

.auth-rules {
    list-style: none;
    padding: 0;
    margin: .25rem 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .15rem .75rem;
    font-size: .8rem;
    color: #6c757d;
}

    .auth-rules li.ok {
        color: #198754;
    }

    .auth-rules i {
        margin-right: .35rem;
    }

.auth-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d1e7dd;
    color: #198754;
    font-size: 2.2rem;
}

.auth-footer {
    margin-top: 1.25rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}
