Login screen stuck after entering password after BigSur update
Bummer. Before you try and reset the password, have you tried a safe mode start? (Power down, hold shift as the Mac starts)

https://support.apple.com/en-us/HT201255

Here is the script to reset the password when it’s not working anymore.

https://support.apple.com/en-us/HT202860