/* Styles pour le processus d'activation */

/* Indicateur d'étapes */
.activation-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step.completed:not(:last-child)::after {
    background: #e2001a;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #e2001a;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 14px;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: #e2001a;
    font-weight: bold;
}

/* En-tête des étapes */
.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    color: #e2001a;
    margin-bottom: 10px;
    font-size: 24px;
}

.step-header p {
    color: #666;
    font-size: 16px;
}

/* Styles pour les formulaires de carte */
.ei_appl_ident_lig_row {
    display: flex;
    gap: 15px;
}

.ei_appl_ident_lig_half {
    flex: 1;
}

/* Styles pour le timer SMS */
.sms-timer {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.sms-timer p {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #e2001a;
}

.resend-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.resend-button:enabled {
    background: #e2001a;
}

.resend-button:enabled:hover {
    background: #c8001a;
}

.resend-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Écran de chargement */
.ei_authent_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    text-align: center;
}

.loading-container {
    max-width: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e2001a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    margin: 20px 0;
    font-size: 16px;
    color: #666;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: #f3f3f3;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress {
    height: 100%;
    background: #e2001a;
    width: 0%;
    transition: width 0.3s ease;
}

/* Page de succès */
.ei_authent_success {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.success-container {
    max-width: 400px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease-out;
}

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

.success-container h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 28px;
}

.success-container p {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .activation-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .ei_appl_ident_lig_row {
        flex-direction: column;
        gap: 0;
    }
    
    .step-header h2 {
        font-size: 20px;
    }
    
    .step-header p {
        font-size: 14px;
    }
}

/* Amélioration des styles existants */
.ei_authent_container {
    max-width: 600px;
    margin: 0 auto;
}

/* Styles pour les champs de formulaire améliorés */
.ei_appl_userid:focus,
.ei_appl_pwduser:focus {
    border-color: #e2001a;
    box-shadow: 0 0 0 2px rgba(226, 0, 26, 0.2);
    outline: none;
}

/* Animation pour les transitions */
.ei_authent_content {
    animation: fadeIn 0.3s ease-in;
}

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


/* Styles spécifiques pour les champs de carte bancaire */
.card-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.card-field {
    flex: 1;
}

.card-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.card-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.card-field input:focus {
    border-color: #e2001a;
    box-shadow: 0 0 0 2px rgba(226, 0, 26, 0.2);
    outline: none;
}

/* Pour mobile - empiler verticalement */
@media (max-width: 480px) {
    .card-row {
        flex-direction: column;
        gap: 10px;
    }
}

