/* ============================================
   FINAMO - Styles d'authentification
   Mobile-first responsive design
   ============================================ */

.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Variante "large" : accueil, pages statiques, pages d'erreur */
.auth-body.auth-body-wide {
    display: block;
    background: var(--bg-primary);
}

.auth-topnav {
    display: none;
}

.auth-body-wide .auth-topnav {
    display: block;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.auth-topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
}

.auth-topnav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-md);
    flex-shrink: 0;
    min-width: 0;
}

.auth-topnav-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #fff;
    flex-shrink: 0;
}

.auth-topnav-brand-logo svg {
    width: 17px;
    height: 17px;
}

.auth-topnav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.auth-topnav-actions .btn {
    min-height: 38px;
    padding: 0.4rem 0.9rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: var(--spacing);
    margin: 0 auto;
}

.auth-body-wide .auth-container-wide {
    max-width: 1200px;
    padding: 0 var(--spacing-md);
}

.auth-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
}

/* Variante plate : pas de carte flottante, contenu pleine largeur */
.auth-card.auth-card-flat {
    background: none;
    box-shadow: none;
    padding: var(--spacing-md) 0 0;
    border-radius: 0;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-body-wide .auth-header {
    display: none;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #fff;
    flex-shrink: 0;
}

.auth-brand-logo svg {
    width: 22px;
    height: 22px;
}

.auth-brand-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing);
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-bottom: 0;
}

/* Étapes d'inscription */
.auth-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.auth-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.auth-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    background-color: var(--bg-tertiary);
    color: var(--text-tertiary);
    transition: all 0.3s;
}

.auth-step.active .auth-step-circle {
    background-color: var(--primary);
    color: var(--text-inverse);
}

.auth-step.completed .auth-step-circle {
    background-color: var(--success);
    color: var(--text-inverse);
}

.auth-step-line {
    width: 40px;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 var(--spacing-xs);
}

/* Adaptation pour très petits écrans */
@media (max-width: 320px) {
    .auth-card {
        padding: var(--spacing);
        border-radius: var(--border-radius);
    }
    
    .auth-step-circle {
        width: 24px;
        height: 24px;
        font-size: var(--font-size-xs);
    }
    
    .auth-step-line {
        width: 20px;
    }
}

@media (max-width: 240px) {
    .auth-card {
        padding: var(--spacing-sm);
        border-radius: var(--border-radius-sm);
    }
    
    .auth-step-circle {
        width: 20px;
        height: 20px;
        font-size: 0.5rem;
    }
    
    .auth-step-line {
        width: 12px;
    }
}

@media (max-width: 480px) {
    .auth-topnav-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        text-align: left;
        padding: 10px var(--spacing-sm);
        gap: 6px;
    }

    .auth-topnav-brand-logo {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .auth-topnav-brand-logo svg {
        width: 15px;
        height: 15px;
    }

    .auth-topnav-brand span:last-child {
        font-size: var(--font-size-sm);
    }

    .auth-topnav-actions {
        width: auto;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .auth-topnav-actions .btn {
        min-height: 34px;
        padding: 0.35rem 0.55rem;
        font-size: 11px;
        white-space: nowrap;
    }
}

@media (max-width: 200px) {
    .auth-topnav-brand-logo { width: 26px; height: 26px; border-radius: 7px; }
    .auth-topnav-brand-logo svg { width: 14px; height: 14px; }
    .auth-topnav-brand { font-size: var(--font-size-sm); }
    .auth-topnav-actions .btn { font-size: 10px; padding: 0.3rem 0.5rem; min-height: 32px; }
}

/* ============================================
   PAGES STATIQUES (à propos, conditions, confidentialité, contact)
   ============================================ */
.static-page {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.static-page-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-lg);
}

.static-page-icon {
    font-size: 36px;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.static-page h1 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.static-page-lead {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.static-page-body h2 {
    font-size: var(--font-size-md);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 6px;
}

.static-page-body p,
.static-page-body li {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.static-page-body ul {
    padding-left: 1.25rem;
    margin-bottom: var(--spacing);
}

.static-page-body .callout {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing);
    margin: var(--spacing) 0;
}

.static-page-body .callout p {
    color: #1e40af;
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 480px) {
    .static-page-card {
        padding: var(--spacing);
        border-radius: var(--border-radius);
    }
}

@media (max-width: 240px) {
    .static-page h1 { font-size: var(--font-size-md); }
    .static-page-icon { font-size: 26px; }
}
