Mac freezes after entering login password
Try starting your Mac in safe mode by holding Shift key right after pressing the power button. If that works, you can at least back up your files and we can try to find a solution from there.

You can find more details on safe mode in the Apple support article, Use safe mode to isolate issues with your Mac.