I'm not entirely sure it's just a software issue - it could also be a problem with your keyboard or touchpad not responding correctly to the password field, even though the cursor is moving. Try first using an external USB keyboard (if you have one handy) to see if you can type the password, because sometimes the problem is actually with the input and not the interface. If you have a smartphone, you can also try connecting a Bluetooth mouse or using Android as a remote mouse to test whether the issue is specific to the keyboard.
The trap that others missed: when Task Manager opens, sometimes you see processes consuming resources, but forcing them to close can leave the system in worse condition. Before that, try Ctrl + Alt + Delete, then click "Sign out" and log back in. If even that doesn't work, restart the PC by holding down the power button until it shuts down completely (wait 30 seconds) and turn it back on. Often a full reset cycle resolves login freezes without needing heavier tools.
If it's still frozen after that, then you'll have to go into Safe Boot or Recovery Mode, but save those options for last - first exhaust the simple stuff.