The whole point of Christianity is that even though no one is good enough to deserve salvation, God still loved us enough to save us:
For while we were still weak, at the right time Christ died for the ungodly. For one will scarcely die for a righteous person-though perhaps for a good person one would dare even to die—but God shows his love for us in that while we were still sinners, Christ died for us. Since, therefore, we have now been justified by his blood, much more shall we be saved by him from the wrath of God. For if while we were enemies we were reconciled to God by the death of his Son, much more, now that we are reconciled, shall we be saved by his life. (Romans 5:6-10)
Not only did Christ die for us while we were still sinners, he died for us while we were enemies in a state of hostility with God.
But now in Christ Jesus you who once were far off have been brought near by the blood of Christ. For he himself is our peace, who has made us both one and has broken down in his flesh the dividing wall of hostility. (Eph. 2:13-14)
Through Christ, that state of hostility has already been abolished. If God loved you enough to send his only son to die for you while you were still his enemy, how much more do you think he delights in you now that you have been reconciled to him and are trying to follow him? Please don’t lower the greatness of God’s salvation by telling yourself he cannot save you because you're not good enough.
I do also know what it feels like to have a low opinion of oneself and to doubt one’s salvation—the latter was a source of anxiety to me for a long time—so allow me to offer some advice as someone who has been through similar struggles:
First, although other people will disagree with this, I firmly believe that the way out of the trap of self-loathing is not to try to boost your self-esteem or tell yourself you deserve respect but to take your eyes off of yourself. Look at the depths and the richness and the mystery of Christ’s love; look at the people around you, those people for whom he died, and start asking yourself how you can meet
their needs. Being a follower of Christ isn’t about getting your own needs met; it’s about loving God and loving others.
Second, by all means, find a church or a group of Christians with whom you can meet together and have fellowship
in person—and by “fellowshipâ€