I have come across this swell but it is caused from repairing installations using Curseforge and know how to fix it:
(keep in mind I am on windows)
on the bottom of the screen a message is shown talking about migrating users, if the box is black, then the log-in will not work, but if the box is red and it still talks about migrating users then it should work
again, this works for me and might not work for you
What is the installation's resolution set to?