/* assets/css/sa-auth.css – Modern Auth & Multi-step CSS for Sen-Agence */

.sa-auth-page {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.sa-auth-card-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 540px;
}
.sa-auth-card-container--wide {
    grid-template-columns: 1fr;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .sa-auth-card-container {
        grid-template-columns: 1fr;
    }
    .sa-auth-hero-panel {
        display: none;
    }
}

/* Side Hero Panel */
.sa-auth-hero-panel {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #ffffff;
    padding: 3rem;
    display: flex;
    align-items: center;
}
.sa-auth-hero-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.sa-hero-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sa-feature-item {
    font-size: 1.05rem;
    font-weight: 500;
}

/* Form Panel */
.sa-auth-form-panel {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sa-auth-form-panel--full {
    padding: 3rem;
}
@media (max-width: 480px) {
    .sa-auth-form-panel {
        padding: 1.5rem;
    }
}

.sa-auth-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-0 0 0.5rem;
    color: #0f172a;
}
.sa-auth-header p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Multi-step Progress Bar */
.sa-step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}
.sa-step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.95rem;
}
.sa-step-item .num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.sa-step-item.active {
    color: #1565c0;
}
.sa-step-item.active .num {
    background: #1565c0;
    color: #ffffff;
}
.sa-step-item.completed .num {
    background: #2e7d32;
    color: #ffffff;
}

/* Step Panels */
.sa-step-panel {
    display: none;
}
.sa-step-panel.active {
    display: block;
}

/* Account Type Cards */
.sa-account-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.sa-type-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
}
.sa-type-card input[type="radio"] {
    margin-top: 4px;
    margin-right: 10px;
}
.sa-type-card.selected, .sa-type-card:hover {
    border-color: #1565c0;
    background: #f0f7ff;
}
.sa-type-card-content .icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}
.sa-type-card-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #0f172a;
}
.sa-type-card-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Form inputs & Badges */
.sa-form-group {
    margin-bottom: 1.25rem;
}
.sa-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #334155;
}
.sa-form-group input[type="text"],
.sa-form-group input[type="tel"],
.sa-form-group input[type="email"],
.sa-form-group input[type="password"],
.sa-form-group select,
.sa-form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.sa-form-group input:focus, .sa-form-group select:focus, .sa-form-group textarea:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.sa-label-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fee2e2;
    color: #dc2626;
    font-weight: 700;
    margin-left: 6px;
}
.sa-label-badge--opt {
    background: #f1f5f9;
    color: #64748b;
}

.sa-field-help {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

.sa-password-wrapper {
    position: relative;
}
.sa-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.sa-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.sa-auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.sa-auth-alert--danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.sa-auth-alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.sa-auth-alert--info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

.sa-auth-footer-text {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
}
.sa-auth-link-bold {
    color: #1565c0;
    font-weight: 700;
    text-decoration: none;
}
