/* Page no-scroll helper */
html, body { height: 100%; }
body.auth-no-scroll { overflow: hidden; }

/* Auth page body - allow scrolling */
body:has(.auth-content) {
    overflow-y: auto;
    min-height: 100vh;
}

/* Mode compact pour l'inscription */
.auth-compact .auth-form-container { padding: var(--spacing-lg); }
.auth-compact .form-header { margin-bottom: var(--spacing-lg); }
.auth-compact .form-grid { gap: var(--spacing-md); margin-bottom: var(--spacing-md); }
.auth-compact .reg-progress { margin-bottom: var(--spacing-lg); }
.auth-compact .reg-actions { margin-top: var(--spacing-md); padding-top: var(--spacing-md); }
.auth-compact .password-strength { margin-top: 4px; }

/* ── Variant sm : inputs compacts (40px au lieu de 52px) ── */
/* Appliqué via class="input-wrapper input--sm" sur le wrapper */
.modern-auth-form .input--sm input:not([type="checkbox"]),
.modern-auth-form .input--sm select,
.modern-auth-form .input--sm textarea {
    height: 40px;
    padding: var(--spacing-xs) var(--spacing-md);
    padding-left: calc(var(--spacing-md) + 22px);
    font-size: var(--font-size-sm);
}

.input--sm .input-icon {
    left: var(--spacing-sm);
    font-size: 0.875rem;
}

.input--sm .floating-label {
    left: calc(var(--spacing-md) + 22px);
    font-size: 0.8125rem;
}

.modern-auth-form .input--sm input:focus ~ .floating-label,
.modern-auth-form .input--sm input:not(:placeholder-shown) ~ .floating-label,
.modern-auth-form .input--sm select:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    left: var(--spacing-sm);
    transform: translateY(-50%) scale(0.85);
    font-size: 0.75rem;
    color: var(--color-primary);
    background-color: var(--color-background-primary);
}

.input--sm .password-toggle {
    right: var(--spacing-xs);
}


.auth-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl, 2rem) 0;
    padding-bottom: 100px; /* Space for fixed footer */
    background: #ffffff;
    position: relative;
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* ── Motifs décoratifs de fond — thème infra / cloud / DevOps ── */
.auth-bg-motifs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.auth-motif {
    position: absolute;
    color: var(--color-primary, #8B5CF6);
}

/* Baie de serveurs — coin bas gauche, légèrement incliné */
.auth-motif--rack {
    bottom: -30px;
    left:   -18px;
    width:  170px;
    height: auto;
    transform: rotate(-7deg);
    opacity: 0.18;
}

/* Orchestration cloud/k8s — coin haut droit */
.auth-motif--cloud {
    top:   -20px;
    right: -22px;
    width: 180px;
    height: auto;
    transform: rotate(9deg);
    opacity: 0.15;
}

/* Pipeline CI/CD — bas centre-droit */
.auth-motif--pipeline {
    bottom: 60px;
    right:  -30px;
    width:  200px;
    height: auto;
    transform: rotate(-4deg);
    opacity: 0.12;
}

/* Terminal CLI — coin haut gauche */
.auth-motif--terminal {
    top:  -10px;
    left: -14px;
    width: 190px;
    height: auto;
    transform: rotate(6deg);
    opacity: 0.15;
}

/* Graphe Git — milieu gauche */
.auth-motif--gitgraph {
    top:  50%;
    left: -16px;
    width: 120px;
    height: auto;
    transform: translateY(-50%) rotate(-5deg);
    opacity: 0.13;
}

/* Métriques / monitoring — bas centre */
.auth-motif--metrics {
    bottom: -10px;
    left:   50%;
    width:  220px;
    height: auto;
    transform: translateX(-50%) rotate(2deg);
    opacity: 0.12;
}

/* Couches Docker — milieu droit */
.auth-motif--docker {
    top:   50%;
    right: -14px;
    width: 140px;
    height: auto;
    transform: translateY(-50%) rotate(7deg);
    opacity: 0.14;
}

/* Masquer sur petits écrans pour ne pas surcharger */
@media (max-width: 480px) {
    .auth-bg-motifs { display: none; }
}

/* Large variant for wider forms like registration */
.auth-form-wrapper--wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Center the register grid within wide forms */
.auth-form-wrapper--wide .register-grid {
    justify-content: center; /* center grid tracks when there is extra space */
}

/* Ensure the wide wrapper itself is centered */
.auth-form-wrapper--wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

/* Make the inner container span the wrapper and stay centered */
.auth-form-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.auth-form-container {
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--cf-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .10), 0 8px 10px -6px rgba(0, 0, 0, .10);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.auth-form-container::before {
    content: none;
}

/* En-tête du formulaire */
.form-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* Compactage hauteur, comme le blog : laptops ~1080p et mobile en paysage */
@media (max-height: 900px) {
    .auth-form-container { padding: 1.5rem; }
    .auth-mark           { margin-bottom: var(--spacing-md); }
    .form-header         { margin-bottom: var(--spacing-lg); }
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--spacing-sm);
}

/* ── Auth Mark — icône de la vue, au format du blog (carré violet 48 px) ── */
.auth-mark {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--cf-radius);
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.auth-mark--success { background: var(--color-success, #10b981); }
.auth-mark--warning { background: var(--color-warning, #f59e0b); }
.auth-mark--danger  { background: var(--color-danger, #ef4444); }

/* Titre et sous-titre (proportions du blog : .auth-title / .auth-subtitle) */
.auth-mark-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--spacing-sm);
}

.auth-mark-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Grille du formulaire */
.form-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.login-grid {
    grid-template-columns: 1fr;
}

/* Responsive grid for registration: fixed 2 columns */
.register-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    width: 100%;
}

.register-grid .form-group {
    width: 100%;
    min-width: 0; /* Prevent grid blowout */
}

/* Fix inputs and selects width */
.register-grid input,
.register-grid select,
.register-grid textarea {
    width: 100%;
    box-sizing: border-box;
}

.register-grid .input-wrapper {
    width: 100%;
}

/* Ensure full-width items span all columns */
.full-width {
    grid-column: 1 / -1;
}

/* Enterprise fields container */
.enterprise-fields {
    grid-column: 1 / -1;
    width: 100%;
}

@media (max-width: 576px) {
    .register-grid {
        grid-template-columns: 1fr;
    }
}

/* Groupe de formulaire */
.form-group {
    position: relative;
}

/* Wrapper d'input */
.input-wrapper {
    position: relative;
    background-color: var(--color-gray-50);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

.input-wrapper:focus-within {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.input-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    transition: color var(--transition-normal);
    z-index: 1;
    flex-shrink: 0;
}

/* Styles d'input */
.modern-auth-form input:not([type="checkbox"]),
.modern-auth-form select {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    padding-left: calc(var(--spacing-lg) + 24px);
    /*border: none;
    border-radius: var(--border-radius-md);*/
    background-color: transparent;
    color: var(--color-text-primary);
    transition: all var(--transition-normal);
    height: 52px;
    box-sizing: border-box;
    font-size: var(--font-size-base);
}

.modern-auth-form input:focus {
    outline: none;
}

/* Label flottant */
.floating-label {
    position: absolute;
    left: calc(var(--spacing-lg) + 24px);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    transition: all var(--transition-normal);
    pointer-events: none;
    padding: 0 var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.modern-auth-form input:focus ~ .floating-label,
.modern-auth-form input:not(:placeholder-shown) ~ .floating-label,
.modern-auth-form select:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    left: var(--spacing-md);
    transform: translateY(-50%) scale(0.85);
    color: var(--color-primary);
    background-color: var(--color-background-primary);
}

/* Toggle mot de passe */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: all var(--transition-normal);
    z-index: 1;
}

.password-toggle:hover {
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

/* Checkbox personnalisé */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray-200, #E5E7EB);
    border-radius: var(--border-radius-sm, 4px);
    margin-right: var(--spacing-sm, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal, 0.2s ease);
    background-color: var(--color-gray-50, #F9FAFB);
    box-sizing: border-box;
}

.checkbox-mark i {
    color: #ffffff;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-normal, 0.2s ease);
}

.checkbox-input:focus + .checkbox-mark {
    outline: 2px solid var(--color-primary, #6D28D9);
    outline-offset: 2px;
}

.checkbox-input:checked + .checkbox-mark {
    background-color: var(--color-primary, #6D28D9);
    border-color: var(--color-primary, #6D28D9);
    color: var(--color-text-light, #ffffff);
    animation: checkboxPop 0.3s ease-out;
}

.checkbox-input:checked + .checkbox-mark i {
    opacity: 1;
    transform: scale(1);
}

/* Hover effect */
.checkbox-wrapper:hover .checkbox-mark {
    border-color: var(--color-primary, #6D28D9);
}

/* Disabled */
.checkbox-input:disabled + .checkbox-mark {
    background-color: var(--color-gray-100, #F3F4F6);
    border-color: var(--color-gray-200, #E5E7EB);
    cursor: not-allowed;
}

.checkbox-input:disabled ~ .checkbox-text {
    color: var(--color-text-disabled, #9CA3AF);
    cursor: not-allowed;
}

.checkbox-text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Animation au clic */
.checkbox-mark {
    transform-origin: center;
}

.checkbox-input:checked + .checkbox-mark {
    animation: checkboxPop 0.3s ease-out;
}

@keyframes checkboxPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkbox-mark,
    .checkbox-input:checked + .checkbox-mark {
        animation: none !important;
        transition: none !important;
    }
}

/* Bouton de connexion */
.confirmation-actions-footer {
    margin-bottom: var(--spacing-lg);
}

.confirmation-actions-footer .btn {
    width: 100%;
    padding: var(--spacing-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-light);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.confirmation-actions-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.confirmation-actions-footer .btn:active {
    transform: translateY(0);
}

/* Liens du formulaire */
.form-links {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.form-links a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.form-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.form-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.auth-options {
    margin-bottom: var(--spacing-md);
}

/* Animations */
@keyframes glow {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        opacity: 0.5; 
        transform: translate(-50%, -50%) scale(1.1); 
    }
}

.animate-field {
    animation: slideUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

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

/* Messages d'erreur */
.field-validation-error {
    color: var(--color-danger);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles de liens d'authentification */
.forgot-password-link,
.back-connexion-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

.forgot-password-link:hover,
.back-connexion-link:hover {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.05);
}

.forgot-password-link i,
.back-connexion-link i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.forgot-password-link:hover i,
.back-connexion-link:hover i {
    transform: translateX(-2px);
}

/* Style du conteneur des liens */
.auth-options {
    text-align: center;
    margin: 1rem 0;
}

.form-links {
    margin-top: 1.5rem;
    text-align: center;
}

/* Animation au hover */
@keyframes linkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.forgot-password-link:hover,
.back-connexion-link:hover {
    animation: linkPulse 0.3s ease;
}

/* Ajustements responsive */
@media (max-width: 480px) {
    .auth-content {
        align-items: flex-start;
        padding-top: 10vh;
    }

    .auth-form-wrapper {
        margin: 0;
        padding: var(--spacing-md);
    }

    .auth-form-container {
        padding: var(--spacing-lg);
    }

    .auth-form-container {
        border-radius: var(--cf-radius);
    }
}

/* Pour éviter le flottement sur les grands écrans */
@media (min-height: 800px) {
    .auth-content {
        padding: var(--spacing-xl) 0;
    }
}

/* Menu de navigation d'authentification */
.auth-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.auth-nav__container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
}

.auth-nav__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.auth-nav__logo img {
    height: 32px;
    width: auto;
}

.auth-nav__logo span {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-nav__links {
    display: flex;
    gap: var(--spacing-md);
}

.auth-nav__link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all var(--transition-normal);
    font-weight: 500;
}

.auth-nav__link i {
    font-size: var(--font-size-lg);
}

.auth-nav__link:hover {
    background-color: var(--color-gray-50);
    transform: translateY(-1px);
}

.auth-nav__link.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* Adjusting the grid layout for wider forms to be centered */
.auth-form-wrapper--wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Centering the register grid items within wide forms */
.auth-form-wrapper--wide .register-grid {
    justify-content: center; /* center grid tracks when there is extra space */
}

/* Inline subscription line - robust sizing */
.subscription-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    grid-column: 1 / -1; /* full width in parent grid */
}

.subscription-grid .form-group {
    min-width: 0;
}

.subscription-grid .input-wrapper,
.subscription-grid .checkbox-wrapper {
    min-width: 0;
}

.subscription-grid input[type="date"],
.subscription-grid select {
    width: 100%;
}

@media (max-width: 992px) {
    .subscription-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
    .subscription-grid { grid-template-columns: 1fr; }
}

/* File upload styles */
.file-upload-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.file-wrapper {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-placeholder {
    padding: var(--spacing-md) var(--spacing-lg);
    padding-left: calc(var(--spacing-lg) + 20px);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Password strength meter */
.password-strength {
    margin-top: var(--spacing-xs);
}

.strength-bar {
    height: 4px;
    background-color: var(--color-gray-200);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal);
}

.strength-text {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Required checkbox style */
.checkbox-wrapper.required .checkbox-text::after {
    content: ' *';
    color: var(--color-danger);
}

/* Wizard progress - modern design with enhanced animations */
.reg-progress { 
    display: flex; 
    gap: var(--spacing-xs); 
    margin-bottom: var(--spacing-xl); 
    position: relative;
    padding: 0;
    align-items: flex-start;
}

/* Ligne de connexion entre les étapes - animée */
.reg-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--color-gray-200);
    z-index: 0;
    transform: translateY(-50%);
    border-radius: var(--border-radius-full);
}

/* Ligne de progression dynamique */
.reg-progress::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
    z-index: 0;
    transform: translateY(-50%);
    border-radius: var(--border-radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(109, 40, 217, 0.3);
}

/* Calcul dynamique de la largeur de progression */
.reg-progress[data-step="1"]::after { width: 0; }
.reg-progress[data-step="2"]::after { width: calc((100% - 80px) * 0.33); }
.reg-progress[data-step="3"]::after { width: calc((100% - 80px) * 0.66); }
.reg-progress[data-step="4"]::after { width: calc((100% - 80px) * 1); }

.reg-progress-item { 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    gap: var(--spacing-sm); 
    padding: 0 var(--spacing-sm);
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Numéro/Indicateur de l'étape */
.reg-progress-item .idx { 
    width: 40px; 
    height: 40px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    background: var(--color-background-primary); 
    border: 3px solid var(--color-gray-200);
    color: var(--color-text-secondary); 
    font-weight: 700;
    font-size: var(--font-size-base);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 6px var(--color-background-primary);
    position: relative;
}

/* Effet de pulse sur l'indicateur */
.reg-progress-item .idx::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Label de l'étape */
.reg-progress-item span:not(.idx) {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    max-width: 140px;
    line-height: 1.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* État actif */
.reg-progress-item.active { 
    color: var(--color-primary);
    transform: scale(1.05);
}

.reg-progress-item.active .idx { 
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-color: var(--color-primary);
    color: #fff;
    transform: scale(1.2);
    box-shadow: 
        0 0 0 6px var(--color-background-primary), 
        0 4px 16px rgba(109, 40, 217, 0.4),
        0 0 0 0 rgba(109, 40, 217, 0.4);
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.reg-progress-item.active .idx::before {
    background: rgba(109, 40, 217, 0.1);
    animation: pulseWave 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Animation de pulse */
@keyframes pulseRing {
    0%, 100% {
        box-shadow: 
            0 0 0 6px var(--color-background-primary), 
            0 4px 16px rgba(109, 40, 217, 0.4),
            0 0 0 0 rgba(109, 40, 217, 0.4);
    }
    50% {
        box-shadow: 
            0 0 0 6px var(--color-background-primary), 
            0 6px 20px rgba(109, 40, 217, 0.5),
            0 0 0 8px rgba(109, 40, 217, 0.2);
    }
}

@keyframes pulseWave {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* État complété */
.reg-progress-item.completed { 
    color: var(--color-success);
}

.reg-progress-item.completed .idx {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: #fff;
    animation: checkmarkBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icône de checkmark pour les étapes complétées */
.reg-progress-item.completed .idx::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.reg-progress-item.completed .idx span {
    opacity: 0;
}

@keyframes checkmarkBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Hover effect sur les étapes complétées */
.reg-progress-item.completed:hover {
    transform: scale(1.05);
}

.reg-progress-item.completed:hover .idx {
    box-shadow: 
        0 0 0 6px var(--color-background-primary), 
        0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Steps */
.reg-step { 
    display: none;
    animation: stepFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reg-step.active {
    display: block;
}

@keyframes stepFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reg-actions { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: var(--spacing-md); 
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

/* Uniform input/select sizing */
.input-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Ajustements pour le label flottant avec select */
.modern-auth-form select ~ .floating-label {
    background-color: transparent;
}

.modern-auth-form select:focus ~ .floating-label,
.modern-auth-form select:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    left: var(--spacing-md);
    transform: translateY(-50%) scale(0.85);
    color: var(--color-primary);
    background-color: var(--color-background-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .reg-progress {
        gap: 0;
    }
    
    .reg-progress::before,
    .reg-progress::after {
        top: 16px;
        left: 24px;
        right: 24px;
    }
    
    .reg-progress-item {
        padding: var(--spacing-xs);
    }
    
    .reg-progress-item span:not(.idx) {
        font-size: 0.7rem;
        max-width: 70px;
        line-height: 1.2;
    }
    
    .reg-progress-item .idx {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-width: 2px;
    }
    
    .reg-progress-item.active .idx {
        transform: scale(1.15);
    }
}

@media (max-width: 480px) {
    .reg-progress-item span:not(.idx) {
        font-size: 0.65rem;
        max-width: 60px;
    }
    
    .reg-progress-item .idx {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .reg-progress::before,
    .reg-progress::after {
        top: 14px;
    }
}

/* Accessibilité - Réduction des mouvements */
@media (prefers-reduced-motion: reduce) {
    .reg-progress-item,
    .reg-progress-item .idx,
    .reg-progress::after,
    .reg-step {
        animation: none !important;
        transition: none !important;
    }
    
    .reg-progress-item.active .idx {
        animation: none !important;
    }
}

/* Centering adjustments for wide auth forms */
.auth-form-wrapper--wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Ensure the inner container is centered and spans the wrapper */
.auth-form-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Inline subscription line */
.subscription-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: end;
}

@media (max-width: 992px) {
    .subscription-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .subscription-grid { grid-template-columns: 1fr; }
}

/* ======================================
   REGISTRATION PROCESS CONSOLE STYLES
   ====================================== */

/* Console Wrapper */
.console-wrapper {
    margin: var(--spacing-xl) 0;
}

/* Console Shell Container */
.console-container {
    background: #000000; /* ✅ Noir pur */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Console Header */
.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console-controls {
    display: flex;
    gap: 8px;
}

.console-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.console-dot-red {
    background: linear-gradient(135deg, #ff5f57 0%, #e04848 100%);
}

.console-dot-yellow {
    background: linear-gradient(135deg, #ffbd2e 0%, #e0a820 100%);
}

.console-dot-green {
    background: linear-gradient(135deg, #28ca42 0%, #20a836 100%);
}

.console-title {
    flex: 1;
    text-align: center;
    color: #ffffff; /* ✅ Blanc */
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.console-status {
    min-width: 120px;
    text-align: right;
}

.console-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64b5f6;
    font-size: 12px;
    font-weight: 500;
}

/* Console Content */
.console-content {
    padding: var(--spacing-lg);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: 450px;
    overflow-y: auto;
    background: #000000; /* ✅ Noir pur */
    color: #ffffff; /* ✅ Police blanche par défaut */
}

/* Console Lines */
.console-line {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.console-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.console-line:hover {
    background: rgba(255, 255, 255, 0.05);
}

.console-line-success {
    border-left: 3px solid #28ca42;
}

.console-line-error {
    border-left: 3px solid #ff5f57;
    background: rgba(255, 95, 87, 0.1);
}

.console-line-info {
    border-left: 3px solid #64b5f6;
}

.console-timestamp {
    color: #888888; /* ✅ Gris clair */
    font-size: 11px;
    flex-shrink: 0;
    min-width: 65px;
}

.console-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.console-line-success .console-icon {
    color: #28ca42;
}

.console-line-error .console-icon {
    color: #ff5f57;
}

.console-line-info .console-icon {
    color: #64b5f6;
}

.console-service {
    color: #a78bfa; /* ✅ Violet clair */
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.console-message {
    color: #ffffff; /* ✅ Blanc */
    flex: 1;
}

.console-duration {
    color: #888888; /* ✅ Gris clair */
    font-size: 11px;
    margin-left: auto;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--cf-radius);
}

/* Console Cursor */
.console-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: #28ca42;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Console Footer */
.console-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.console-stats {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.console-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: #cccccc; /* ✅ Blanc cassé */
    font-size: 12px;
    font-weight: 500;
}

.console-stat i {
    font-size: 14px;
}

/* Progress Bar Moderne */
.progress-bar-wrapper {
    position: relative;
    width: 100%;
}

.progress-bar-track {
    height: 10px;
    background: #1a1a1a; /* ✅ Noir très foncé */
    border-radius: var(--cf-radius);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--cf-radius);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill.progress-high {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.progress-bar-fill.progress-complete {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.progress-bar-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.progress-label {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.progress-percentage {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
}

/* Console Scrollbar */
.console-content::-webkit-scrollbar {
    width: 8px;
}

.console-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.console-content::-webkit-scrollbar-thumb {
    background: rgba(100, 181, 246, 0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.console-content::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 181, 246, 0.8);
}

/* Registration Indicator (animated dot) */
.register-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #9d4edd;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .console-container {
        margin: var(--spacing-md) 0;
    }
    
    .console-content {
        padding: var(--spacing-md);
        max-height: 350px;
        font-size: 12px;
    }
    
    .console-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .console-title {
        font-size: 12px;
    }
    
    .console-service {
        min-width: 80px;
        font-size: 11px;
    }
    
    .console-stats {
        gap: var(--spacing-md);
    }
    
    .console-stat {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .console-content {
        padding: var(--spacing-sm);
        max-height: 300px;
        font-size: 11px;
    }
    
    .console-line {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
    
    .console-service {
        min-width: 70px;
        font-size: 10px;
    }
    
    .console-footer {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .console-stats {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-xs);
    }
}

/* Animations pour les transitions */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.console-container {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .console-line,
    .console-cursor,
    .progress-bar-fill,
    .progress-bar-shine,
    .register-indicator {
        animation: none !important;
        transition: none !important;
    }
}

/* AUTH FOOTER - Animated Violet Background + News Ticker */
.auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #8B5CF6;
    background-size: 200% 100%;
    animation: gradientFlow 8s ease infinite;
    padding: 0;
    border-top: 0.7px solid #8B5CF6;
    box-shadow: 0 -2px 10px rgba(139, 92, 246, 0.3);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.auth-footer__ticker {
    overflow: hidden;
    white-space: nowrap;
    padding: 0.35rem 0;
    position: relative;
}

    .auth-footer__ticker::before,
    .auth-footer__ticker::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 60px;
        z-index: 2;
        pointer-events: none;
    }

    .auth-footer__ticker::before {
        left: 0;
        background: #8B5CF6;
    }

    .auth-footer__ticker::after {
        right: 0;
        background: #8B5CF6;
    }

.ticker-content {
    display: inline-flex;
    gap: 4rem;
    animation: tickerScroll 30s linear infinite;
    padding-left: 100%;
}

    .ticker-content:hover {
        animation-play-state: paused;
    }

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 500;
}

    .ticker-item i {
        color: #fff;
    }

.ticker-item__badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: var(--cf-radius);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-item__badge--new {
    background: #22c55e;
}


.ticker-item__badge--tip {
    background: #f59e0b;
}

.ticker-item__badge--update {
    background: #c026d3;
}

.auth-footer__links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 0.3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(109, 40, 217, 0.25);
}

.auth-footer__link {
    color: #fff;
    font-size: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .auth-footer__link:hover {
        color: #fff;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

.auth-footer__copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.6rem;
}

/* Adjust auth content for footer space */
.auth-content {
    padding-bottom: 100px;
    min-height: 100vh;
    overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH FOOTER MODERN - Single Bar Design with Center Ticker
═══════════════════════════════════════════════════════════════════ */

.auth-footer-modern {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #7C3AED 0%, #8B5CF6 50%, #7C3AED 100%);
    background-size: 200% 100%;
    animation: tickerGradient 8s ease infinite;
    box-shadow: 0 -4px 20px rgba(139, 92, 246, 0.4);
}

/* Single bar layout */
.auth-footer__single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    gap: 1rem;
}

/* Left section - Brand */
.auth-footer__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.auth-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-footer__brand i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-footer__copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

/* Center section - Ticker */
.auth-footer__ticker-center {
    flex: 1;
    overflow: hidden;
    position: relative;
    max-width: 600px;
    margin: 0 1rem;
}

.auth-footer__ticker-center::before,
.auth-footer__ticker-center::after {
    display: none;
}

.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    animation: tickerScroll 30s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.5rem;
}

.ticker-badge {
    padding: 0.15rem 0.4rem;
    border-radius: var(--cf-radius);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ticker-badge--new {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.ticker-badge--update {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.ticker-badge--tip {
    background: rgba(251, 191, 36, 0.9);
    color: #1a1a2e;
}

/* Right section - Links */
.auth-footer__right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.auth-footer-modern .auth-footer__link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.auth-footer-modern .auth-footer__link:hover {
    color: #fff;
}

.auth-footer-modern .auth-footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.2s ease;
}

.auth-footer-modern .auth-footer__link:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-footer__ticker-center {
        max-width: 350px;
    }
    
    .ticker-item {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .auth-footer__single {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.4rem 1rem;
    }

    .auth-footer__left {
        order: 1;
    }

    .auth-footer__ticker-center {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .auth-footer__right {
        order: 2;
    }
}

@media (max-width: 480px) {
    .auth-footer__ticker-center {
        display: none;
    }

    .auth-footer__single {
        justify-content: space-between;
    }

    .auth-footer__link {
        font-size: 0.65rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   OAUTH PROVIDERS — boutons GitHub + Google (P2-018)
   ═══════════════════════════════════════════════════════════════════ */

.oauth-separator {
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
    color: var(--color-text-tertiary, #9ca3af);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    gap: 12px;
}

.oauth-separator::before,
.oauth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border, #e5e7eb);
}

/* Register: séparateurs supérieur et inférieur légèrement plus doux */
.oauth-separator--register,
.oauth-separator--manual {
    margin: 14px 0;
}

.oauth-block {
    margin-bottom: 4px;
}

.oauth-providers {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: 4px;
}

/* ── Boutons OAuth : classes de la charte (btn btn-outline-secondary), même largeur ── */
.oauth-btn {
    flex: 1 1 0;
    max-width: 220px;
    white-space: nowrap;
    text-decoration: none;
}

.oauth-btn svg {
    flex-shrink: 0;
}

.oauth-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 2px solid var(--color-border, #e5e7eb);
}

/* ═══════════════════════════════════════════════════════════════════
   MODERN SAAS LAYER — fond, carte, inputs, boutons, animations
   Surcharges volontairement en fin de fichier (cascade CSS).
   Palette inchangée : #8B5CF6 / #7C3AED / #A78BFA
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Fond de page : blanc teinté + halos violets très doux ── */
.auth-content {
    background:
        radial-gradient(800px 420px at 88% -5%, rgba(139, 92, 246, 0.06), transparent 60%),
        radial-gradient(700px 420px at 8% 108%, rgba(139, 92, 246, 0.05), transparent 60%),
        linear-gradient(180deg, #FDFCFF 0%, #F8F6FD 100%);
}

/* ── 2. Carte : format du blog (fond blanc, bordure fine, angles 1.5rem, ombre douce) ── */
.auth-form-container {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--cf-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .10), 0 8px 10px -6px rgba(0, 0, 0, .10);
    animation: cardRise 0.65s cubic-bezier(0.22, 1.1, 0.36, 1) both;
}

@keyframes cardRise {
    from { opacity: 0; transform: translateY(22px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── 3. Entrée en cascade des champs ── */
.modern-auth-form .animate-field {
    opacity: 0;
    animation: fieldRise 0.5s cubic-bezier(0.22, 1.1, 0.36, 1) forwards;
}

.modern-auth-form .form-group:nth-of-type(1) { animation-delay: 0.12s; }
.modern-auth-form .form-group:nth-of-type(2) { animation-delay: 0.18s; }
.modern-auth-form .form-group:nth-of-type(3) { animation-delay: 0.24s; }
.modern-auth-form .form-group:nth-of-type(4) { animation-delay: 0.30s; }
.modern-auth-form .form-group:nth-of-type(5) { animation-delay: 0.36s; }
.modern-auth-form .form-group:nth-of-type(n+6) { animation-delay: 0.42s; }

@keyframes fieldRise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 4. Inputs : bordure unique, focus net, halo violet ── */
.modern-auth-form .input-wrapper input:not([type="checkbox"]),
.modern-auth-form .input-wrapper select,
.modern-auth-form .input-wrapper textarea {
    background-color: #FAF9FE;
    /*border: 1px solid #E9E5F2;
    border-radius: var(--cf-radius);*/
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.modern-auth-form .input-wrapper input:hover:not(:focus):not(:disabled) {
    border-color: rgba(139, 92, 246, 0.40);
}

.modern-auth-form .input-wrapper input:focus,
.modern-auth-form .input-wrapper select:focus,
.modern-auth-form .input-wrapper textarea:focus {
    background-color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

/* Label flottant : fond assorti au fond du champ */
.modern-auth-form .input-wrapper input:focus ~ .floating-label,
.modern-auth-form .input-wrapper input:not(:placeholder-shown) ~ .floating-label {
    background-color: #ffffff;
    /*border-radius: 4px;*/
}

/* Champ valide : discret liseré vert sur l'icône */
.modern-auth-form .input-wrapper.valid .input-icon {
    color: var(--color-primary);
}

/* ── 7. Checkbox & liens : accents violets cohérents ── */
.modern-auth-form input[type="checkbox"] {
    accent-color: var(--color-primary);
}

/* ── 8. Accessibilité : réduire les mouvements ── */
@media (prefers-reduced-motion: reduce) {
    .auth-form-container,
    .modern-auth-form .animate-field,
    .modern-auth-form .btn--primary,
    .oauth-btn {
        animation: none;
        opacity: 1;
        transition: none;
    }

    .modern-auth-form .btn--primary::after { display: none; }
}

/* ═══ Styles de la vue Account/Login (déplacés de la vue vers ce fichier) ═══ */
/* Force scroll on auth pages */
html, body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
}

/* ═══ Styles de la vue Account/Register (déplacés de la vue vers ce fichier) ═══ */


/* ═══════════════════════════════════════════════════════════════════
    REGISTRATION PROGRESS (wizard-progress pattern)
═══════════════════════════════════════════════════════════════════ */
.reg-progress {
    background: transparent;
    border-radius: var(--cf-radius);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border: none !important;
        box-shadow: none !important;
        width: 100%;
    }

    /* Remove the decorative top line from auth container for registration */
    .auth-form-container::before {
        display: none !important;
        content: none !important;
        height: 0 !important;
        opacity: 0 !important;
    }

    /* Remove any border from form-header */
    .form-header {
        border: none !important;
        border-bottom: none !important;
    }

    /* Ensure no border above reg-progress */
    .reg-progress::before,
    .reg-progress::after {
        display: none !important;
        content: none !important;
    }

    .reg-progress__steps {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0;
        width: 100%;
    }

    .reg-progress__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
        min-width: 100px;
    }

    .reg-progress__number {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 1rem;
        background: var(--color-gray-100, #f3f4f6);
        color: var(--color-gray-500, #6b7280);
        border: 2px solid var(--color-gray-300, #d1d5db);
        box-sizing: border-box;
        transition: all 0.3s ease;
    }

    .reg-progress__label {
        font-size: 0.8rem;
        color: var(--cf-gray-500, #adb5bd);
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
    }

    /* Active state — outline violet (charte) */
    .reg-progress__item.active .reg-progress__number {
        background: var(--color-primary-bg, rgba(139, 92, 246, 0.12));
        color: var(--color-primary, #8b5cf6);
        border-color: var(--color-primary, #8b5cf6);
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    }

    .reg-progress__item.active .reg-progress__label {
        color: var(--color-primary, #8b5cf6);
        font-weight: 600;
    }

    /* Completed state — outline vert (charte) */
    .reg-progress__item.completed .reg-progress__number {
        background: var(--color-success-bg, rgba(16, 185, 129, 0.12));
        color: var(--color-success, #10b981);
        border-color: var(--color-success, #10b981);
    }

    .reg-progress__item.completed .reg-progress__label {
        color: var(--color-success, #10b981);
    }

    /* Progress line - aligned with the number circles */
    .reg-progress__line {
        flex: 1;
        height: 3px;
        background: var(--color-gray-200, #e5e7eb);
        margin: 0 1rem;
        margin-top: 20px; /* Half of the number height (40px/2) to center vertically */
        border-radius: 2px;
        transition: background 0.3s ease;
        min-width: 60px;
    }

        .reg-progress__line.completed {
            background: var(--color-success, #10b981);
        }

    /* Responsive adjustments */
    @media (max-width: 480px) {
        .reg-progress {
            padding: 1rem 0;
        }

        .reg-progress__item {
            min-width: 70px;
        }

        .reg-progress__number {
            width: 32px;
            height: 32px;
            font-size: 0.85rem;
        }

        .reg-progress__label {
            font-size: 0.7rem;
        }

        .reg-progress__line {
            margin-top: 16px;
            min-width: 30px;
            margin: 0 0.5rem;
            margin-top: 16px;
        }
    }

    /* ═══════════════════════════════════════════════════════════════════
        REGISTER GRID
    ═══════════════════════════════════════════════════════════════════ */
    .register-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
    }


        .register-grid .form-group {
            width: 100%;
            min-width: 0; /* Prevent grid blowout */
        }

            .register-grid .form-group.full-width {
                grid-column: 1 / -1;
            }

        /* 3-column variant for step 1 (Prénom + Nom + Email sur une ligne) */
        .register-grid--3col {
            grid-template-columns: repeat(3, 1fr);
        }

        @media (max-width: 768px) {
            .register-grid--3col {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Fix inputs and selects width */
        .register-grid input,
        .register-grid select,
        .register-grid textarea {
            width: 100%;
            box-sizing: border-box;
        }

        .register-grid .input-wrapper {
            width: 100%;
        }

    /* ═══════════════════════════════════════════════════════════════════
               COLLAPSIBLE SECTIONS
            ═══════════════════════════════════════════════════════════════════ */
    .collapsible-section {
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: var(--cf-radius);
        background: var(--panel-bg, #fff);
        width: 100%;
    }

        .collapsible-section + .collapsible-section {
            margin-top: 0.75rem;
        }

        .collapsible-section summary {
            list-style: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 1rem;
            font-weight: 600;
        }

            .collapsible-section summary::-webkit-details-marker {
                display: none;
            }

        .collapsible-section .summary-title {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .collapsible-section .chevron {
            transition: transform 0.2s ease;
            color: var(--muted-color, #6b7280);
        }

        .collapsible-section[open] .chevron {
            transform: rotate(180deg);
        }

    .collapsible-content {
        padding: 0.5rem 1rem 1rem;
    }

        /* Grid inside collapsible content */
        .collapsible-content .register-grid {
            margin-top: 0.5rem;
        }

    /* ═══════════════════════════════════════════════════════════════════
               TENANT TYPE TOGGLE
            ═══════════════════════════════════════════════════════════════════ */
    .tenant-type-toggle {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }

.tenant-type-btn {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    white-space: normal;
}

.tenant-type-btn small {
    font-size: 0.7rem;
    line-height: 1.3;
}

/* Bouton sélectionné (btn--primary) : le libellé secondaire suit la couleur du bouton */
.tenant-type-btn.btn--primary .text-muted {
    color: inherit !important;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════════
               ENTERPRISE FIELDS - FIX GRID BREAKING
            ═══════════════════════════════════════════════════════════════════ */
    .enterprise-fields {
        display: none;
        width: 100%;
        grid-column: 1 / -1; /* Span full width when inside grid */
    }

        .enterprise-fields.show {
            display: block;
        }

        /* Collapsible inside enterprise fields */
        .enterprise-fields .form-group.collapsible {
            grid-column: 1 / -1;
            width: 100%;
        }

    /* ═══════════════════════════════════════════════════════════════════
               RESPONSIVE
            ═══════════════════════════════════════════════════════════════════ */
    @media (max-width: 576px) {
        .register-grid {
            grid-template-columns: 1fr;
        }

        .tenant-type-toggle {
            flex-direction: column;
        }
    }

/* ═══ Styles de la vue Account/AcceptInvitation (déplacés de la vue vers ce fichier) ═══ */
.invitation-info-card {
    background: var(--color-gray-50, #f9fafb);
    border-radius: var(--cf-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border, #e5e7eb);
}
.invitation-info-card .info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}
.invitation-info-card .info-row:not(:last-child) {
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
}
.invitation-info-card .info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary, #3b82f6);
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}
.invitation-info-card .info-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #6b7280);
    display: block;
}
.invitation-info-card .info-value {
    font-weight: 600;
    color: var(--color-text-primary, #1f2937);
}
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 480px) {
    .name-row { grid-template-columns: 1fr; }
}

/* ═══ Styles de la vue Account/RegistrationProcess (déplacés de la vue vers ce fichier) ═══ */
.console-wrapper { margin: 1.5rem 0; }
.console-container { background: #1a1a2e; border-radius: var(--cf-radius); overflow: hidden; font-family: 'Fira Code', monospace; font-size: 0.85rem; }
.console-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: #16213e; color: #e2e8f0; }
.console-content { padding: 1rem; max-height: 300px; overflow-y: auto; }
.console-line { padding: 0.25rem 0; color: #a0aec0; display: flex; gap: 0.5rem; opacity: 0; transition: opacity 0.3s; }
.console-line.visible { opacity: 1; }
.console-line-success { color: #68d391; }
.console-line-error { color: #fc8181; }
.console-timestamp { color: #718096; }
.console-service { color: #63b3ed; font-weight: 600; }
.console-footer { display: none; padding: 0.75rem 1rem; background: #16213e; border-top: 1px solid #2d3748; color: #a0aec0; }
.console-stats { display: flex; gap: 1.5rem; }
.progress-notice { background: #f0f9ff; border: 1px solid #0ea5e9; border-radius: var(--cf-radius); padding: 1rem; margin-bottom: 1.5rem; }
.progress-bar-container { background: #e2e8f0; border-radius: 4px; height: 8px; overflow: hidden; margin-top: 0.5rem; }
.progress-bar-fill { background: linear-gradient(90deg, #3b82f6, #0ea5e9); height: 100%; transition: width 0.3s; }

/* ═══ Inscription : largeur, grille et barre d'actions (format du blog) ═══ */
.auth-form-wrapper--wide {
    max-width: 720px;
}

/* Prénom, nom et e-mail sur une même ligne */
.register-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.reg-actions .btn {
    min-width: 140px;
}

@media (max-width: 576px) {
    .register-grid--3col {
        grid-template-columns: 1fr;
    }

    .tenant-type-toggle {
        flex-direction: column;
    }

    /* Bouton principal au-dessus, pleine largeur */
    .reg-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .reg-actions .btn {
        width: 100%;
    }

    .reg-actions .flex-grow-1 {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   COUCHE LÉGÈRE — finitions communes à toutes les vues d'auth
   (format du blog : fond clair, bordures fines, accents violets discrets)
   ═══════════════════════════════════════════════════════════════════ */

/* Champs : un rythme plus serré, sans trou laissé par les messages de validation vides */
.form-grid {
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.field-validation-error:empty {
    display: none;
}

/* Bouton principal : la charte, sans dégradé ni effet de reflet */
.confirmation-actions-footer .btn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 1px solid var(--btn-primary-border);
    min-height: 40px;
    box-shadow: none;
    transform: none;
}

.confirmation-actions-footer .btn:hover:not(:disabled) {
    transform: none;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
}

/* Boutons GitHub / Google : blancs, bordure fine, survol violet très doux */
.oauth-btn {
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    min-height: 40px;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.oauth-btn:hover,
.oauth-btn:active,
.oauth-btn:focus {
    background: #FAF8FF;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.10);
}

/* Type de compte : tuiles sélectionnables */
.tenant-type-toggle {
    gap: var(--spacing-md);
}

.tenant-type-btn,
.tenant-type-btn.btn--primary,
.tenant-type-btn.btn-outline-secondary {
    position: relative;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--cf-radius);
    padding: 0.875rem 0.75rem 0.75rem;
    min-height: 88px;
    gap: 0.35rem;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* Tuiles : états de Bootstrap neutralisés (pas de fond sombre au survol ni au clic) */
.tenant-type-btn {
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-color: var(--color-text);
    --bs-btn-active-bg: #FAF8FF;
    --bs-btn-active-color: var(--color-text);
}

.tenant-type-btn.btn--primary,
.tenant-type-btn.btn--primary:hover,
.tenant-type-btn.btn--primary:active,
.tenant-type-btn.btn--primary:focus {
    --bs-btn-hover-bg: #FAF8FF;
    --bs-btn-active-bg: #FAF8FF;
    background: #FAF8FF;
    color: var(--color-text);
    border-color: var(--color-primary);
}

.tenant-type-btn.btn-outline-secondary:hover,
.tenant-type-btn.btn-outline-secondary:active,
.tenant-type-btn.btn-outline-secondary:focus {
    background: #ffffff;
    color: var(--color-text);
}

.tenant-type-btn:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.10);
    transform: translateY(-1px);
}

.tenant-type-btn > span i {
    width: 28px;
    height: 28px;
    border-radius: var(--cf-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F5F3FF;
    color: var(--color-primary);
    font-size: 0.8rem;
}

.tenant-type-btn.btn--primary {
    background: #FAF8FF;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.tenant-type-btn.btn--primary > span i {
    background: var(--color-primary);
    color: #ffffff;
}

.tenant-type-btn.btn--primary::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.65rem;
    color: var(--color-primary);
}

.tenant-type-btn.btn--primary .text-muted {
    color: var(--color-text-secondary) !important;
    opacity: 1;
}

/* Pied de page : bandeau clair au lieu du violet plein */
.auth-footer-modern {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
    box-shadow: none;
    animation: none;
}

.auth-footer__brand,
.auth-footer__brand i {
    color: var(--color-text);
}

.auth-footer__copyright,
.ticker-item,
.auth-footer-modern .auth-footer__link {
    color: var(--color-text-secondary);
}

.auth-footer-modern .auth-footer__link:hover {
    color: var(--color-primary);
}

.auth-footer-modern .auth-footer__link::after {
    background: var(--color-primary);
}

.ticker-separator {
    color: var(--color-border);
}

.ticker-badge--update {
    background: #F5F3FF;
    color: var(--color-primary-dark);
}

@media (max-width: 576px) {
    .oauth-providers {
        flex-direction: column;
    }

    .oauth-btn {
        max-width: none;
        width: 100%;
    }

    /* Sur mobile, le pied de page suit le contenu au lieu de le recouvrir */
    .auth-footer-modern {
        position: static;
    }

    .auth-content {
        padding-bottom: var(--spacing-xl);
    }
}

/* ── Connexion et code : formulaire + vignette côte à côte (style console AWS) ── */
.auth-form-wrapper--split {
    max-width: 920px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1.5rem;
}
.auth-form-wrapper--split > .auth-form-container { flex: 0 1 440px; }
.auth-promo {
    flex: 0 1 420px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: var(--cf-radius, 4px);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .10), 0 8px 10px -6px rgba(0, 0, 0, .10);
    animation: fadeInUp 0.6s ease-out 0.12s both;
}
.auth-promo__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.auth-promo__body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .5rem; align-content: start; }
.auth-promo__tag {
    display: inline-flex; align-items: center; gap: .35rem; width: fit-content;
    padding: .15rem .5rem; border-radius: var(--cf-radius, 4px);
    background: rgba(139, 92, 246, .1); color: #7C3AED; font-size: .78rem; font-weight: 600;
}
.auth-promo__title { margin: .25rem 0 0; font-size: 1.15rem; font-weight: 600; color: #111827; }
.auth-promo__text { margin: 0; color: #475569; font-size: .92rem; line-height: 1.6; }
.auth-promo__link { display: inline-flex; align-items: center; gap: .3rem; color: #7C3AED; font-weight: 600; text-decoration: none; font-size: .92rem; }
.auth-promo__link i { transition: transform .18s ease-out; }
.auth-promo__link:hover i { transform: translateX(3px); }
@media (max-width: 991.98px) {
    .auth-form-wrapper--split { max-width: 440px; }
    .auth-promo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-promo { animation: none; }
}

/* ── SSO : trois fournisseurs sur une ligne (icône seule si étroit) ── */
.oauth-providers--3 { gap: .5rem; margin: .25rem 0 .75rem; }
.oauth-providers--3 .oauth-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    max-width: none; padding: .6rem .5rem; font-size: .875rem; border-radius: var(--cf-radius, 4px);
}
@media (max-width: 420px) {
    .oauth-providers--3 .oauth-btn span { display: none; }
}

/* ── Inscription simplifiée : une seule page ── */
.register-form--simple .form-grid { margin-bottom: 1rem; gap: .9rem 1rem; }
.register-grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .register-grid--2col { grid-template-columns: 1fr; } }
.pw-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 0; padding: 0; }
.pw-chip {
    padding: .15rem .5rem; border-radius: var(--cf-radius, 4px); font-size: .75rem;
    background: #F3F4F6; color: #6B7280; transition: background .15s ease-out, color .15s ease-out;
}
.pw-chip.ok { background: rgba(16, 185, 129, .12); color: #047857; }
.pw-chip.ok::before { content: "\2713\00a0"; }
.reg-optional summary { cursor: pointer; color: #7C3AED; font-size: .875rem; font-weight: 500; list-style: none; }
.reg-optional summary::-webkit-details-marker { display: none; }
.reg-optional summary::before { content: "+ "; }
.reg-optional[open] summary::before { content: "− "; }
.reg-optional[open] summary { margin-bottom: .75rem; }
.reg-optional small { display: block; margin-top: .35rem; }
.register-form--simple .btn--block { width: 100%; justify-content: center; }
.reg-legal { margin: .75rem 0 0; font-size: .78rem; color: #6B7280; text-align: center; line-height: 1.5; }
.reg-legal a { color: #7C3AED; }
.auth-promo__list { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .45rem; color: #475569; font-size: .92rem; }
.auth-promo__list li { display: flex; gap: .45rem; align-items: flex-start; }
.auth-promo__list i { color: #10B981; margin-top: .15rem; }
/* Vignette au format des billets du blog (1200×630) */
.auth-promo { align-self: center; }
.auth-promo__media { display: block; }
.auth-promo__img { aspect-ratio: 1200 / 630; }
.auth-promo__body { padding: .9rem 1.25rem; }

/* ── Mise en page « console AWS » : logo centré, formulaire à gauche, panneau illustré à droite ── */
.auth-content--split { flex-direction: column; justify-content: flex-start; padding-top: 48px; background: #FAFAFB; }
.auth-topbrand {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .6rem;
    margin: 0 auto 2rem; text-decoration: none;
    font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
    background: linear-gradient(135deg, #A78BFA, #8B5CF6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-topbrand img { width: 36px; height: 36px; }
.auth-content--split .auth-form-wrapper--split { max-width: 960px; align-items: flex-start; gap: 1.5rem; }
.auth-content--split .auth-form-wrapper--split > .auth-form-container {
    flex: 0 0 360px; box-shadow: none; border-radius: 4px; padding: 1.5rem;
}
.auth-content--split .auth-form-wrapper--split > .auth-form-container--register { flex-basis: 380px; }
.auth-content--split .auth-promo {
    flex: 0 1 570px; align-self: flex-start; border: 0; border-radius: 4px; box-shadow: none; background: transparent;
}
.auth-promo__media { display: block; line-height: 0; border-radius: 4px; overflow: hidden; }
.auth-promo__media:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 3px; }
.auth-content--split .auth-promo__img { width: 100%; height: auto; aspect-ratio: 1140 / 900; transition: transform .3s ease-out; }
.auth-promo__media:hover .auth-promo__img { transform: scale(1.015); }
@media (max-width: 991.98px) {
    .auth-content--split .auth-form-wrapper--split > .auth-form-container,
    .auth-content--split .auth-form-wrapper--split > .auth-form-container--register { flex: 1 1 auto; max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) { .auth-promo__img { transition: none; } }

/* ── Panneau ajusté à la hauteur du formulaire ; plus de logo en haut ── */
.auth-content--split { padding-top: 72px; }
.auth-content--split .auth-form-wrapper--split { max-width: 1040px; }
.auth-content--split .auth-promo { flex: 0 0 auto; width: 570px; }
.auth-content--split .auth-promo__media { height: 100%; }
.auth-content--split .auth-promo__img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: left center; }

/* ── Sélecteur de langue en haut à droite (style console AWS) ── */
.auth-topbar { position: absolute; top: 18px; right: 28px; z-index: 5; }
.auth-lang { position: relative; }
.auth-lang summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .2rem;
    color: #7C3AED; font-weight: 700; font-size: .95rem; padding: .3rem .4rem; border-radius: 4px; user-select: none;
}
.auth-lang summary::-webkit-details-marker { display: none; }
.auth-lang summary:hover, .auth-lang[open] summary { color: #5B21B6; }
.auth-lang summary i { font-size: 1.15rem; transition: transform .15s ease-out; }
.auth-lang[open] summary i { transform: rotate(180deg); }
.auth-lang__menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; margin: 0; padding: .3rem 0;
    background: #fff; border: 1px solid #E5E7EB; border-radius: 4px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .25);
}
.auth-lang__menu button {
    display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: .5rem .9rem; font-size: .9rem; color: #111827;
}
.auth-lang__menu button:hover { background: #F5F3FF; color: #7C3AED; }
.auth-lang__menu button.is-active { font-weight: 700; color: #7C3AED; }
.auth-content--split .auth-form-wrapper--split > .auth-form-container { margin: 0; }

/* Panneau sans rognage (format 1140×900 conservé) */
.auth-content--split .auth-form-wrapper--split { max-width: 1100px; }
.auth-content--split .auth-promo__img { object-fit: contain; }

/* Langue : noir, graisse normale, même police que le reste ; drapeaux */
.auth-lang summary, .auth-lang__menu button { font-family: inherit; color: #111827; font-weight: 400; font-size: .875rem; }
.auth-lang summary { gap: .4rem; }
.auth-lang summary:hover, .auth-lang[open] summary { color: #111827; background: rgba(0, 0, 0, .04); }
.auth-lang__menu button { display: flex; align-items: center; gap: .5rem; }
.auth-lang__menu button:hover { background: #F3F4F6; color: #111827; }
.auth-lang__menu button.is-active { font-weight: 400; color: #111827; background: #F9FAFB; }
.auth-flag { width: 20px; height: 14px; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
