/* CSS pour le module Multi Account Client */

.multiaccountclient-login-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.account-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.account-card:hover {
    border-color: #25b9d7;
    box-shadow: 0 4px 8px rgba(37, 185, 215, 0.2);
    transform: translateY(-2px);
}

.account-card .card-body {
    padding: 20px;
}

.account-card .card-title {
    color: #374953;
    font-weight: bold;
    margin-bottom: 10px;
}

.account-card .card-text {
    color: #666;
    margin-bottom: 15px;
}

.sellsy-login-form, .email-login-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sellsy-login-form .card-header, .email-login-form .card-header {
    background: #25b9d7;
    color: white;
    border-radius: 8px 8px 0 0;
    margin: -20px -20px 20px -20px;
    padding: 15px 20px;
}

.form-group label {
    font-weight: 600;
    color: #374953;
    margin-bottom: 8px;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #25b9d7;
    box-shadow: 0 0 0 0.2rem rgba(37, 185, 215, 0.25);
}

.btn-primary {
    background-color: #25b9d7;
    border-color: #25b9d7;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1da1bb;
    border-color: #1da1bb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 185, 215, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #25b9d7;
    border-color: #25b9d7;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #25b9d7;
    border-color: #25b9d7;
}

.btn-link {
    color: #25b9d7;
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    color: #1da1bb;
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.multiple-accounts-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.multiple-accounts-container .card-header {
    background: linear-gradient(135deg, #25b9d7 0%, #1da1bb 100%);
    color: white;
    border-radius: 8px;
    margin: -30px -30px 30px -30px;
    padding: 20px 30px;
}

.password-reset-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.info-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #25b9d7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #25b9d7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

.sellsy-field-container {
    background: #e8f7fa;
    border: 1px solid #25b9d7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.sellsy-field-container label {
    color: #0c5460;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .multiaccountclient-login-container {
        padding: 10px;
    }
    
    .sellsy-login-form, .email-login-form {
        margin-bottom: 15px;
    }
    
    .account-card {
        margin-bottom: 15px;
    }
    
    .multiple-accounts-container {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .multiple-accounts-container .card-header {
        margin: -20px -20px 20px -20px;
        padding: 15px 20px;
    }
}

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

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

/* Styles pour le sélecteur de comptes */
.account-switcher-container {
    border: 0px solid #fff;
    border-radius: 0x;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
    margin-bottom: 0px;
}

.account-switcher-container .card-header {
    background: linear-gradient(135deg, #25b9d7 0%, #1da1bb 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.current-account-info {
    border: 1px solid #28a745;
    background-color: #f8fff9 !important;
    border-radius: 6px;
    padding: 15px;
}

.other-account-option {
    margin-bottom: 10px;
}

.switch-account-btn {
    border: 1px solid #25b9d7;
    transition: all 0.3s ease;
    padding: 12px 15px;
    text-align: left;
}

.switch-account-btn:hover {
    background-color: #25b9d7;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 185, 215, 0.3);
}

.switch-account-btn:hover .material-icons {
    color: white;
}

.account-switcher-options {
    max-height: 300px;
    overflow-y: auto;
}

/* Modal de confirmation */
#switchAccountModal .modal-header {
    background: linear-gradient(135deg, #25b9d7 0%, #1da1bb 100%);
    color: white;
    border-bottom: none;
}

#switchAccountModal .modal-header .close {
    color: white;
    opacity: 0.8;
}

#switchAccountModal .modal-header .close:hover {
    opacity: 1;
}

.target-account-info {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

/* États de chargement pour le modal */
#confirmSwitchBtn .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #25b9d7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Indicateur d'utilisateur actuel */
.current-account-indicator {
    position: relative;
}

.current-account-indicator::before {
    content: "●";
    color: #28a745;
    font-size: 12px;
    position: absolute;
    top: -2px;
    right: -8px;
}

/* Responsive pour le sélecteur */
@media (max-width: 768px) {
    .account-switcher-container .row {
        flex-direction: column;
    }
    
    .account-switcher-container .col-md-6 {
        margin-bottom: 20px;
    }
    
    .switch-account-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .current-account-info {
        text-align: center;
    }
}

/* Animation pour le changement de compte */
.account-switch-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.account-switch-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #25b9d7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Badge pour le nombre de comptes */
.accounts-count-badge {
    background-color: #25b9d7;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
} 