/* ============================================================
   NuptiaLogos — Système visuel de l'onboarding (auth)
   Import : ajouté via assets/app.js après app.css
   Dépend des tokens --nl-* définis dans app.css
   ============================================================ */

/* ── Tokens dérivés : RGB + blobs de background par marque ── */
:root {
    --nl-primary-rgb: 11, 29, 81;
    --nl-blob-1: rgba(11, 29, 81, 0.18);
    --nl-blob-2: rgba(192, 192, 192, 0.22);
    --nl-blob-3: rgba(11, 29, 81, 0.10);
    --nl-auth-bg-1: #FAFBFC;
    --nl-auth-bg-2: #F0F0F0;
}

[data-app="mariage"] {
    --nl-primary-rgb: 102, 51, 153;
    --nl-blob-1: rgba(102, 51, 153, 0.28);
    --nl-blob-2: rgba(255, 153, 0, 0.22);
    --nl-blob-3: rgba(230, 222, 246, 0.65);
    --nl-auth-bg-1: #FDFBF8;
    --nl-auth-bg-2: #F6F0FA;
}

[data-app="adieu"] {
    --nl-primary-rgb: 30, 58, 95;
    --nl-blob-1: rgba(30, 58, 95, 0.22);
    --nl-blob-2: rgba(244, 228, 193, 0.45);
    --nl-blob-3: rgba(30, 58, 95, 0.10);
    --nl-auth-bg-1: #FBF9F5;
    --nl-auth-bg-2: #EFEAE0;
}

/* ══════════════════════════════════════════════════
   LAYOUT — Auth shell (wrapper pleine hauteur)
   ══════════════════════════════════════════════════ */

/* Peint le <body> entier quand une .auth-shell est présente
   (supprime la bande blanche / grise au-dessus liée au bloc flashes
   et au fond body par défaut). */
body:has(.auth-shell) {
    background:
        radial-gradient(120% 80% at 50% 0%, var(--nl-auth-bg-1), transparent 70%),
        linear-gradient(180deg, var(--nl-auth-bg-1) 0%, var(--nl-auth-bg-2) 100%);
    background-attachment: fixed;
}
/* Masque le conteneur flashes vide au-dessus du shell pour qu'il ne crée
   pas de respiration visuelle parasite. Garde les vrais flashes visibles. */
body:has(.auth-shell) > .container.mt-3:not(:has(.alert)) { display: none; }

.auth-shell {
    position: relative;
    min-height: calc(100dvh - 62px);      /* navbar offset */
    padding: 3rem 1rem 4rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: transparent;              /* fond déporté sur <body> */
}

@media (min-width: 768px) {
    .auth-shell {
        padding-top: 4rem;
        align-items: center;
    }
}

/* ── Background : blobs flous qui dérivent ── */
.auth-shell__blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}
.auth-shell__blobs span {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
    opacity: 0.9;
}
.auth-shell__blobs span:nth-child(1) {
    width: 42vmin; height: 42vmin;
    top: -10vmin; left: -8vmin;
    background: var(--nl-blob-1);
    animation: blobDrift1 28s ease-in-out infinite alternate;
}
.auth-shell__blobs span:nth-child(2) {
    width: 50vmin; height: 50vmin;
    bottom: -18vmin; right: -12vmin;
    background: var(--nl-blob-2);
    animation: blobDrift2 34s ease-in-out infinite alternate;
}
.auth-shell__blobs span:nth-child(3) {
    width: 36vmin; height: 36vmin;
    top: 40%; left: 55%;
    background: var(--nl-blob-3);
    animation: blobDrift3 40s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(12vw, 6vh) scale(1.12); }
}
@keyframes blobDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10vw, -8vh) scale(1.08); }
}
@keyframes blobDrift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-14vw, 10vh) scale(0.92); }
}

/* ── Background : grille blueprint fine (accent lines) ── */
.auth-shell__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(var(--nl-primary-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--nl-primary-rgb), 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(80% 60% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000 40%, transparent 100%);
}

/* ══════════════════════════════════════════════════
   AUTH CARD — Glassmorphism + entrée fade-up
   ══════════════════════════════════════════════════ */

/* Remplace l'ancien .auth-container (garde la rétrocompatibilité) */
.auth-shell .auth-container,
.auth-shell > .container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-shell .auth-card,
.auth-shell__card {
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: calc(var(--nl-radius) * 1.5);
    padding: 2.5rem 2rem;
    box-shadow:
        0 1px 1px rgba(var(--nl-primary-rgb), 0.04),
        0 10px 32px -12px rgba(var(--nl-primary-rgb), 0.22),
        0 30px 60px -20px rgba(var(--nl-primary-rgb), 0.14);
    opacity: 0;
    transform: translateY(18px);
    animation: authFadeUp 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards;
}

@media (min-width: 576px) {
    .auth-shell .auth-card,
    .auth-shell__card {
        padding: 3rem 2.75rem;
    }
}

@keyframes authFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Fine bordure haute lumineuse (effet "verre biseauté") */
.auth-shell .auth-card::before,
.auth-shell__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(var(--nl-primary-rgb), 0.08) 40%,
        transparent 70%
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ── Header de carte : logo + titre + intro ── */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-header__logo {
    height: 52px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(var(--nl-primary-rgb), 0.12));
}
.auth-header__title {
    font-family: var(--nl-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--nl-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}
.auth-header__subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   STEPPER (multi-step indicator)
   ══════════════════════════════════════════════════ */
.auth-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.auth-stepper__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(var(--nl-primary-rgb), 0.18);
    transition: all 0.3s ease;
}
.auth-stepper__dot--active {
    width: 28px;
    background: var(--nl-primary);
}
.auth-stepper__dot--done {
    background: var(--nl-primary);
}

/* ══════════════════════════════════════════════════
   FORM — Champs d'auth
   ══════════════════════════════════════════════════ */

.auth-field {
    margin-bottom: 1.1rem;
    text-align: left;
}
.auth-field > label,
.auth-field .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

/* Input-wrap : permet l'icône leading + action trailing */
.auth-input-wrap {
    position: relative;
    display: block;
}
.auth-input-wrap__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(var(--nl-primary-rgb), 0.6);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}
.auth-input-wrap__action {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.auth-input-wrap__action:hover,
.auth-input-wrap__action:focus-visible {
    background: rgba(var(--nl-primary-rgb), 0.08);
    color: var(--nl-primary);
    outline: none;
}

/* ──────────────────────────────────────────────────
   BASE des champs (sans icône) — forms_rows Symfony
   Placé AVANT les règles « avec icône » pour que la cascade
   ne ré-écrase pas le padding-left quand un icône est présent.
   ────────────────────────────────────────────────── */
.auth-shell .form-control:not(.auth-input),
.auth-shell .form-select:not(.auth-input) {
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: #fff;
    border: 1px solid rgba(var(--nl-primary-rgb), 0.14);
    border-radius: 12px;
    min-height: 44px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-shell .form-control:not(.auth-input):focus,
.auth-shell .form-select:not(.auth-input):focus {
    border-color: var(--nl-primary);
    box-shadow: 0 0 0 4px rgba(var(--nl-primary-rgb), 0.12);
}

/* Le champ « avec icône » (auth-input + form_row dans .auth-field) */
.auth-input,
.auth-field .form-control,
.auth-field .form-select,
.auth-input-wrap .form-control,
.auth-input-wrap .form-select {
    width: 100%;
    height: 48px;
    padding: 0.5rem 0.9rem 0.5rem 2.85rem;   /* 2.85rem = 46px → 14px gap après l'icône */
    background: #fff;
    border: 1px solid rgba(var(--nl-primary-rgb), 0.14);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 1px 2px rgba(var(--nl-primary-rgb), 0.04);
}
.auth-input::placeholder,
.auth-field .form-control::placeholder,
.auth-input-wrap .form-control::placeholder {
    color: #9ca3af;
}
.auth-input:hover,
.auth-field .form-control:hover,
.auth-field .form-select:hover,
.auth-input-wrap .form-control:hover,
.auth-input-wrap .form-select:hover {
    border-color: rgba(var(--nl-primary-rgb), 0.28);
}
.auth-input:focus,
.auth-field .form-control:focus,
.auth-field .form-select:focus,
.auth-input-wrap .form-control:focus,
.auth-input-wrap .form-select:focus {
    outline: none;
    border-color: var(--nl-primary);
    box-shadow:
        0 0 0 4px rgba(var(--nl-primary-rgb), 0.12),
        0 1px 2px rgba(var(--nl-primary-rgb), 0.06);
}
.auth-input:focus + .auth-input-wrap__icon,
.auth-input-wrap:focus-within .auth-input-wrap__icon {
    color: var(--nl-primary);
}

/* Action trailing (toggle password) → room à droite */
.auth-input-wrap--has-action .auth-input,
.auth-input-wrap--has-action .form-control {
    padding-right: 3rem;
}

/* États d'erreur */
.auth-input[aria-invalid="true"],
.auth-field .is-invalid.form-control,
.auth-shell .is-invalid.form-control {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}
.auth-field__error,
.auth-shell .invalid-feedback,
.auth-shell .form-errors > ul,
.auth-shell ul.form-errors {
    display: block;
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 0.35rem;
    padding-left: 0;
    list-style: none;
}

/* ══════════════════════════════════════════════════
   PASSWORD STRENGTH BAR
   ══════════════════════════════════════════════════ */
.auth-strength {
    margin-top: 0.6rem;
}
.auth-strength__bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 0.3rem;
}
.auth-strength__bar {
    height: 4px;
    border-radius: 3px;
    background: rgba(var(--nl-primary-rgb), 0.12);
    transition: background 0.25s ease;
}
.auth-strength__label {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.auth-strength__label strong {
    font-weight: 600;
}
/* Paliers : faible / moyen / bon / excellent */
.auth-strength[data-score="1"] .auth-strength__bar:nth-child(-n+1) { background: #ef4444; }
.auth-strength[data-score="2"] .auth-strength__bar:nth-child(-n+2) { background: #f59e0b; }
.auth-strength[data-score="3"] .auth-strength__bar:nth-child(-n+3) { background: #10b981; }
.auth-strength[data-score="4"] .auth-strength__bar:nth-child(-n+4) { background: #059669; }
.auth-strength[data-score="1"] .auth-strength__label strong { color: #ef4444; }
.auth-strength[data-score="2"] .auth-strength__label strong { color: #f59e0b; }
.auth-strength[data-score="3"] .auth-strength__label strong { color: #10b981; }
.auth-strength[data-score="4"] .auth-strength__label strong { color: #059669; }

/* ══════════════════════════════════════════════════
   CHECKBOXES (consentements RGPD/CGU)
   ══════════════════════════════════════════════════ */
.auth-check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: rgba(var(--nl-primary-rgb), 0.03);
    border: 1px solid rgba(var(--nl-primary-rgb), 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
}
.auth-check:hover {
    background: rgba(var(--nl-primary-rgb), 0.05);
    border-color: rgba(var(--nl-primary-rgb), 0.16);
}
.auth-check input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--nl-primary);
    cursor: pointer;
}
.auth-check label,
.auth-check .form-check-label {
    margin: 0;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
}
.auth-check a {
    color: var(--nl-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* ══════════════════════════════════════════════════
   BOUTONS (CTA primaire + arrow-slide)
   ══════════════════════════════════════════════════ */
.auth-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 52px;
    padding: 0 1.25rem;
    /* Couleur solide (fallback toujours appliqué) + image de gradient optionnelle.
       On évite `background: var(--nl-gradient, …)` qui résolvait à `none` quand
       --nl-gradient vaut explicitement `none` → bouton quasi transparent. */
    background-color: var(--nl-cta-bg, var(--nl-primary));
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.08) 100%);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 1px 2px rgba(var(--nl-primary-rgb), 0.25),
        0 10px 24px -10px rgba(var(--nl-primary-rgb), 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.auth-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 1px 2px rgba(var(--nl-primary-rgb), 0.3),
        0 16px 32px -10px rgba(var(--nl-primary-rgb), 0.65);
    color: #fff;
}

/* Variante mariage : gradient de marque, mais resserré vers des teintes
   qui conservent un contraste AA avec le texte blanc (orange pur #FF9900
   = 1.9:1 → FAIL ; on clamp à un ambré plus profond). */
[data-app="mariage"] .auth-cta {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.15) 100%),
        linear-gradient(135deg, #4C1D95 0%, #663399 45%, #B45309 100%);
}
.auth-cta:active { transform: translateY(0); }
.auth-cta:focus-visible {
    outline: 3px solid rgba(var(--nl-primary-rgb), 0.35);
    outline-offset: 2px;
}
.auth-cta[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.auth-cta .bi-arrow-right,
.auth-cta .bi-arrow-right-short {
    transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.auth-cta:hover .bi-arrow-right,
.auth-cta:hover .bi-arrow-right-short {
    transform: translateX(4px);
}

/* Shimmer subtil */
.auth-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255, 255, 255, 0.22) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}
.auth-cta:hover::after {
    transform: translateX(120%);
}

/* CTA secondaire */
.auth-cta--secondary {
    background-color: #fff;
    background-image: none;
    color: var(--nl-primary);
    border: 1.5px solid rgba(var(--nl-primary-rgb), 0.35);
    text-shadow: none;
    box-shadow:
        0 1px 2px rgba(var(--nl-primary-rgb), 0.08),
        0 4px 10px -6px rgba(var(--nl-primary-rgb), 0.12);
}
.auth-cta--secondary:hover {
    background-color: rgba(var(--nl-primary-rgb), 0.06);
    color: var(--nl-primary);
    filter: none;
    border-color: var(--nl-primary);
    box-shadow:
        0 1px 2px rgba(var(--nl-primary-rgb), 0.1),
        0 8px 18px -8px rgba(var(--nl-primary-rgb), 0.22);
}
.auth-cta--secondary::after { display: none; }

/* ══════════════════════════════════════════════════
   LIEN UTILITAIRE (mot de passe oublié, retour login)
   ══════════════════════════════════════════════════ */
.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--nl-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.auth-link:hover {
    background: rgba(var(--nl-primary-rgb), 0.06);
    color: var(--nl-primary);
}
.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(var(--nl-primary-rgb), 0.08);
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}
.auth-footer a {
    color: var(--nl-primary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}
.auth-footer a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.auth-footer a:hover::after {
    transform: scaleX(1);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(var(--nl-primary-rgb), 0.14),
        transparent
    );
}

/* ══════════════════════════════════════════════════
   ROLE SELECTION — Cartes de choix de profil
   ══════════════════════════════════════════════════ */
.role-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .role-grid--2col {
        grid-template-columns: 1fr 1fr;
    }
}

.role-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1.5px solid rgba(var(--nl-primary-rgb), 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    opacity: 0;
    transform: translateY(12px);
    animation: authFadeUp 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.role-card:nth-child(1) { animation-delay: 0.10s; }
.role-card:nth-child(2) { animation-delay: 0.18s; }
.role-card:nth-child(3) { animation-delay: 0.26s; }
.role-card:nth-child(4) { animation-delay: 0.34s; }
.role-card:nth-child(5) { animation-delay: 0.42s; }

.role-card:hover {
    border-color: rgba(var(--nl-primary-rgb), 0.35);
    transform: translateY(-2px);
    box-shadow:
        0 1px 2px rgba(var(--nl-primary-rgb), 0.05),
        0 14px 30px -12px rgba(var(--nl-primary-rgb), 0.22);
    color: inherit;
}
.role-card:focus-visible {
    outline: 3px solid rgba(var(--nl-primary-rgb), 0.28);
    outline-offset: 2px;
}
.role-card.role-card--active {
    border-color: var(--nl-primary);
    box-shadow:
        0 0 0 3px rgba(var(--nl-primary-rgb), 0.12),
        0 10px 24px -10px rgba(var(--nl-primary-rgb), 0.3);
}
.role-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(var(--nl-primary-rgb), 0.08);
    color: var(--nl-primary);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.role-card:hover .role-card__icon {
    background: var(--nl-primary);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}
.role-card__body {
    flex: 1;
    min-width: 0;
}
.role-card__title {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
    margin: 0 0 0.15rem;
    display: block;
}
.role-card__desc {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.4;
    display: block;
}
.role-card__arrow {
    flex-shrink: 0;
    color: rgba(var(--nl-primary-rgb), 0.4);
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}
.role-card:hover .role-card__arrow {
    transform: translateX(4px);
    color: var(--nl-primary);
}

/* Variantes couleur par rôle (différenciation visuelle) */
.role-card[data-role="musicien"] .role-card__icon {
    background: rgba(255, 153, 0, 0.12);
    color: #d97706;
}
.role-card[data-role="musicien"]:hover .role-card__icon {
    background: #f59e0b;
    color: #fff;
}
.role-card[data-role="paroisse"] .role-card__icon {
    background: rgba(30, 58, 95, 0.12);
    color: #1e3a5f;
}
.role-card[data-role="paroisse"]:hover .role-card__icon {
    background: #1e3a5f;
    color: #fff;
}
.role-card[data-role="intervenant"] .role-card__icon {
    background: rgba(120, 113, 108, 0.12);
    color: #78716c;
}
.role-card[data-role="intervenant"]:hover .role-card__icon {
    background: #78716c;
    color: #fff;
}

/* ══════════════════════════════════════════════════
   INVITATION BADGE — bandeau d'info contextuel
   ══════════════════════════════════════════════════ */
.auth-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(var(--nl-primary-rgb), 0.08),
        rgba(var(--nl-primary-rgb), 0.03)
    );
    border: 1px solid rgba(var(--nl-primary-rgb), 0.15);
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #374151;
}
.auth-badge__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(var(--nl-primary-rgb), 0.14);
    color: var(--nl-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.auth-badge strong { color: var(--nl-primary); }

/* ══════════════════════════════════════════════════
   ALERTES — adaptation des .alert Bootstrap au contexte auth
   ══════════════════════════════════════════════════ */
.auth-shell .alert {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}
.auth-shell .alert-danger {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.25);
    color: #991b1b;
}
.auth-shell .alert-info {
    background: rgba(var(--nl-primary-rgb), 0.06);
    border-color: rgba(var(--nl-primary-rgb), 0.22);
    color: var(--nl-primary);
}
.auth-shell .alert-success {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.25);
    color: #065f46;
}

/* ══════════════════════════════════════════════════
   FIELDSETS — sections du formulaire de registration
   ══════════════════════════════════════════════════ */
.auth-shell fieldset {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0 0 1.75rem;
}
.auth-shell fieldset legend {
    width: 100%;
    float: none;
    font-family: var(--nl-font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(var(--nl-primary-rgb), 0.7);
    padding: 0 0 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(var(--nl-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.auth-shell fieldset legend i { font-size: 0.9rem; }

/* Labels produits par Symfony form_row */
.auth-shell .form-label,
.auth-shell label:not(.form-check-label):not(.auth-check label) {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

/* form_row wrapper spacing */
.auth-shell .mb-3 {
    margin-bottom: 1.1rem !important;
}

/* ══════════════════════════════════════════════════
   ERROR SUMMARY en tête de formulaire (a11y)
   ══════════════════════════════════════════════════ */
.auth-error-summary {
    border-left: 3px solid #dc2626;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
}
.auth-error-summary strong {
    display: block;
    color: #991b1b;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}
.auth-error-summary ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.82rem;
    color: #7f1d1d;
}

/* ══════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
    .auth-shell {
        padding: 1.5rem 0.75rem 2.5rem;
    }
    .auth-shell .auth-card,
    .auth-shell__card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--nl-radius);
    }
    .auth-header__title { font-size: 1.4rem; }
    .auth-header__logo { height: 42px; }
    .role-card { padding: 0.85rem 0.9rem; }
    .role-card__icon { width: 42px; height: 42px; font-size: 1.15rem; }
}

/* ══════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   ══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .auth-shell__blobs span,
    .auth-shell .auth-card,
    .auth-shell__card,
    .role-card,
    .auth-cta::after {
        animation: none !important;
        transition: none !important;
    }
    .auth-shell .auth-card,
    .auth-shell__card,
    .role-card {
        opacity: 1;
        transform: none;
    }
}
