
    /* 1. Conteneur et Centrage Absolu */
    .tcf-auth-page-wrapper {
        min-height: 80vh; /* Ajusté pour laisser de la place au footer si présent */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8fafc; /* Gris neutre moderne */
        padding: 2rem 1rem;
    }

    /* 2. La Carte de Connexion */
    .auth-card {
        width: 100%;
        max-width: 400px;
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        border-radius: 16px; /* Bord arrondi plus moderne */
        padding: 40px;
    }

    .auth-card-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .auth-title {
        font-size: 1.5rem;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 8px;
    }

    .auth-subtitle {
        font-size: 0.9rem;
        color: #64748b;
    }

    /* 3. Formulaire et Inputs */
    .form-group-tcf {
        margin-bottom: 20px;
    }

    .form-label-tcf {
        display: block;
        color: #475569;
        font-weight: 700;
        margin-bottom: 8px;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }

    .form-input-tcf {
        width: 100%;
        padding: 12px 16px;
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.2s;
    }

    .form-input-tcf:focus {
        border-color: #4361ee;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
        outline: none;
    }

    /* 4. Bouton de Soumission (Couleur du Pack/Navbar) */
    .submit-button-tcf {
        width: 100%;
        background-color: #4361ee;
        color: white;
        padding: 14px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 1rem;
        border: none;
        cursor: pointer;
        transition: transform 0.1s, background-color 0.2s;
        margin-top: 10px;
    }

    .submit-button-tcf:hover {
        background-color: #3730a3;
    }

    .submit-button-tcf:active {
        transform: scale(0.98);
    }

    /* 5. Messages Django */
    .django-message-box {
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 20px;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .msg-error { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
    .msg-success { background-color: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

    /* 6. Liens */
    .auth-links {
        text-align: center;
        margin-top: 25px;
        font-size: 0.9rem;
    }

    .auth-link {
        color: #4361ee;
        font-weight: 700;
        text-decoration: none;
    }

    .auth-link:hover {
        text-decoration: underline;
    }

    .link-separation {
        margin: 20px 0;
        border-top: 1px solid #f1f5f9;
    }