Welp, I just rebooted via ssh and that fixed it. The new password I set for root with passwd is now working to login to the web gui now, whereas it wasn't before. I guess the problem was not the password, but instead something in the login flow breaks over time and a reboot restores it.