/* ============================================
   NASH-DEV.FR - Authentication Pages
   Pages de connexion et inscription modernes
   ============================================ */

:root {
    --auth-primary: #06b6d4;
    --auth-secondary: #8b5cf6;
    --auth-success: #10b981;
    --auth-danger: #ef4444;
    --auth-warning: #f59e0b;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Background animé avec gradients */
.auth-page::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
    animation: gradientShift 25s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

/* Particules décoratives */
.auth-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.auth-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    border-radius: 50%;
    opacity: 0.2;
    animation: floatParticle 20s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.2;
    }
    25% { 
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-50px) translateX(-50px) scale(0.8);
        opacity: 0.3;
    }
    75% { 
        transform: translateY(-150px) translateX(30px) scale(1.1);
        opacity: 0.25;
    }
}

.auth-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.auth-particle:nth-child(2) { top: 60%; left: 80%; animation-delay: -5s; }
.auth-particle:nth-child(3) { top: 80%; left: 20%; animation-delay: -10s; }
.auth-particle:nth-child(4) { top: 30%; left: 70%; animation-delay: -15s; }
.auth-particle:nth-child(5) { top: 50%; left: 40%; animation-delay: -8s; }
.auth-particle:nth-child(6) { top: 70%; left: 60%; animation-delay: -12s; }

/* ============================================
   AUTH CONTAINER
   ============================================ */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    animation: slideInUp 0.6s ease-out;
}

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

/* ============================================
   AUTH CARD
   ============================================ */
.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(6, 182, 212, 0.1);
    position: relative;
    overflow: hidden;
}

/* Bordure animée en haut */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--auth-primary) 0%, 
        var(--auth-secondary) 50%, 
        var(--auth-primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Effet de lueur au hover */
.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.03), 
        rgba(139, 92, 246, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.auth-card:hover::after {
    opacity: 1;
}

/* ============================================
   AUTH HEADER
   ============================================ */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(6, 182, 212, 0.3),
        0 0 60px rgba(6, 182, 212, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.auth-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--auth-primary), 
        var(--auth-secondary), 
        var(--auth-primary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.auth-logo i {
    font-size: 2.5rem;
    color: white;
}

.auth-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--auth-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ============================================
   FORM ELEMENTS
   ============================================ */
.auth-form {
    position: relative;
}

.auth-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.auth-form-input-wrapper {
    position: relative;
}

.auth-form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

.auth-form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.auth-form-input::placeholder {
    color: var(--text-muted);
}

.auth-form-input:focus {
    border-color: var(--auth-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.auth-form-input:focus + .auth-form-icon {
    color: var(--auth-primary);
}

/* Input avec icône à droite (toggle password) */
.auth-form-input.has-icon-right {
    padding-right: 3rem;
}

.auth-form-icon-right {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-form-icon-right:hover {
    color: var(--auth-primary);
}

/* Messages d'erreur */
.auth-form-error {
    color: var(--auth-danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.auth-form-error i {
    font-size: 1rem;
}

/* Messages de succès */
.auth-form-success {
    color: var(--auth-success);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   ALERT MESSAGES
   ============================================ */
.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideInDown 0.4s ease-out;
}

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

.auth-alert-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
}

.auth-alert-content {
    flex-grow: 1;
}

.auth-alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-alert-message {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Alert variants */
.auth-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--auth-danger);
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--auth-success);
}

.auth-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--auth-warning);
}

.auth-alert-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--auth-primary);
}

/* ============================================
   CHECKBOX / REMEMBER ME
   ============================================ */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-checkbox-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    position: relative;
}

.auth-checkbox-input:checked {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    border-color: var(--auth-primary);
}

.auth-checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.auth-checkbox-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.auth-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-secondary));
    color: white;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.auth-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.5);
}

.auth-btn-primary:active {
    transform: translateY(-1px);
}

.auth-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.auth-btn-secondary:hover {
    border-color: var(--auth-primary);
    background: var(--bg-glass);
}

/* Loading state */
.auth-btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   LINKS
   ============================================ */
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-link {
    color: var(--auth-primary);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--auth-primary);
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: var(--auth-secondary);
}

.auth-link:hover::after {
    width: 100%;
}

/* ============================================
   DIVIDER
   ============================================ */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */
.auth-social {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-social-btn {
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-social-btn:hover {
    border-color: var(--auth-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-social-icon {
    width: 20px;
    height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-footer-link {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer-link:hover {
    color: var(--auth-secondary);
}

/* ============================================
   BACK BUTTON
   ============================================ */
.auth-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 10;
}

.auth-back:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--auth-primary);
}

.auth-back i {
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-logo {
        width: 70px;
        height: 70px;
    }
    
    .auth-logo i {
        font-size: 2rem;
    }
    
    .auth-social {
        grid-template-columns: 1fr;
    }
    
    .auth-back {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-form-input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }
    
    .auth-btn {
        padding: 0.875rem 1.5rem;
    }
    
    .auth-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Mode clair spécifique aux pages auth */
.light-mode .auth-card {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 100px rgba(6, 182, 212, 0.05);
}

.light-mode .auth-particle {
    opacity: 0.15;
}



















/* ============================================
   AUTH PAGES - REGISTER ENHANCEMENTS
   Améliorations pour la page d'inscription
   ============================================ */

/* Row layout pour les champs côte à côte */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.auth-form-row .auth-form-group {
    margin-bottom: 1.5rem;
}

/* Select dropdown styling */
.auth-form-input[type="select"],
.auth-form-input select,
select.auth-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
    cursor: pointer;
}

/* Password strength indicator */
.auth-password-strength {
    margin-top: 0.75rem;
}

.auth-password-strength-bar {
    width: 0;
    height: 100%;
    transition: all 0.3s ease;
    background: var(--auth-danger);
    border-radius: 2px;
}

.auth-password-strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

.auth-password-strength-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Checkbox improvements for register */
.auth-checkbox .auth-link {
    display: inline;
    font-size: 0.9rem;
    text-decoration: underline;
}

.auth-checkbox .auth-link:hover {
    text-decoration: none;
}

/* Erreurs Symfony inline */
.auth-form-error {
    color: var(--auth-danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.4s ease;
}

.auth-form-error::before {
    content: '⚠';
    font-size: 1rem;
}

/* Input avec erreur */
.auth-form-input.error,
input.auth-form-input:invalid:not(:placeholder-shown) {
    border-color: var(--auth-danger) !important;
}

.auth-form-input.valid {
    border-color: var(--auth-success) !important;
}

/* Checkmark icon pour les champs valides */
.auth-form-input.valid + .auth-form-icon {
    color: var(--auth-success);
}

/* Animation pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Amélioration du hover sur le select */
select.auth-form-input:hover {
    border-color: var(--auth-primary);
}

select.auth-form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Style pour les options du select */
select.auth-form-input option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Mode clair pour le select */
.light-mode select.auth-form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.light-mode select.auth-form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .auth-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-form-row .auth-form-group {
        margin-bottom: 1.5rem;
    }
}

/* État des champs lors de la validation */
.auth-form-group.has-error .auth-form-input {
    border-color: var(--auth-danger);
    animation: shake 0.4s ease;
}

.auth-form-group.has-success .auth-form-input {
    border-color: var(--auth-success);
}

/* Icon feedback pour validation */
.auth-form-group.has-error .auth-form-icon {
    color: var(--auth-danger);
}

.auth-form-group.has-success .auth-form-icon {
    color: var(--auth-success);
}

/* Amélioration du focus pour les selects */
.auth-form-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

/* Terms checkbox - link inline */
.auth-checkbox-label a.auth-link {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.auth-checkbox-label a.auth-link:hover {
    color: var(--auth-secondary);
    text-decoration: none;
}

.auth-checkbox-label a.auth-link::after {
    display: none; /* Disable the underline animation for inline links */
}

/* Espacement entre les sections */
.auth-form-group + .auth-form-group {
    margin-top: 0;
}

/* Amélioration de la lisibilité */
.auth-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form-label .required::after {
    content: '*';
    color: var(--auth-danger);
    margin-left: 0.25rem;
}

/* Style pour les messages d'erreur Symfony */
.auth-form-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-form-error li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

/* Loading state amélioré pour register */
.auth-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.auth-btn-loading span {
    opacity: 0;
}

.auth-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Amélioration du spacing */
.mt-3 {
    margin-top: 1.5rem !important;
}

/* Focus trap pour accessibilité */
.auth-form input:focus,
.auth-form select:focus,
.auth-form button:focus {
    outline: 2px solid var(--auth-primary);
    outline-offset: 2px;
}

/* Amélioration du contraste pour accessibilité */
@media (prefers-contrast: high) {
    .auth-form-input {
        border-width: 2px;
    }
    
    .auth-form-label {
        font-weight: 700;
    }
}

/* Réduction du mouvement pour accessibilité */
@media (prefers-reduced-motion: reduce) {
    .auth-form-input,
    .auth-password-strength-bar,
    .auth-form-error {
        animation: none;
        transition: none;
    }
}

/* Print styles */
@media print {
    .auth-particles,
    .auth-back,
    .auth-social {
        display: none;
    }
}