The login attempt is frozen.
How to clear a frozen login.
How to clear a frozen login.
I am guessing because you didn't say what type of machine, intel or Apple Silicon
First Reboot in Safe Mode: Hold down Shift Key while Rebooting
Try this laptop: Make your Mac is unplugged, and then turn off the power. Hold down the Shift + Control + Option key. At the same time, press and hold down the power button. Hold down all of them for 10 seconds. Re-plug the Mac in and reboot it up.
Eventually it many lead to booting in revery mode and reinstalling just the OS after running disk utility
The login attempt is frozen.