I fall into this trap myself. Humanly speaking, the Church is a hopeless mess. She's infected with Modernism, feminism, and liberalism. A great number of the bishops are practical atheists or Kasperite heretics. Many of our priests are social workers who can't have sex. And us lay people go along to get along.
Atheist polemicists often describe faith as being an irrational belief in something despite a complete lack of evidence. This is, of course, wrong. Christianity is based on the historical birth, death, and resurrection of Christ. Catholics must hold it as an article of faith that the existence of God can be proven through human reason alone. Faith is more like trust and confidence. Faith means believing in something solely based on the authority of God who revealed it.
That means believing that the decline of the Church and the fall of Western civilization is part of God's plan. It means Catholics must hold fast to the faith handed down by the Apostles no matter how lax the Church herself may have become or how wanting is episcopal leadership. We won't know with any great certainty the exact steps of God's plan in this life but he has given us everything we need to know about attaining salvation during our time on earth.