/* Styles pour le sélecteur d'authentification */
.auth-selector {
    margin-bottom: 25px;
}

.auth-tabs {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-tab:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.auth-tab.active {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.auth-tab:not(.active) {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #333 !important;
}

.auth-tab i {
    margin-right: 8px;
    font-size: 16px;
}

/* Indicateurs d'authentification */
.auth-indicator-local {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb) !important;
    border: 1px solid #bee5eb !important;
    color: #0c5460 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-indicator-ldap {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animation pour les transitions */
.auth-tab, .auth-indicator-local, .auth-indicator-ldap {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .auth-tab i {
        font-size: 14px;
        margin-right: 6px;
    }
}

/* Effet de focus pour l'accessibilité */
.auth-tab:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-selector {
    animation: fadeInUp 0.5s ease-out;
}
