I guess to simplify it I could say a satanic pope does not have moral authority by definition.... God's people coming together all submitted to Jesus have the authority. What did Jesus say? "When two or more are gathered in My name."
Discussion
Apostolic succession is valid, even when the person weilding the power is wicked.