Roundcube login failed error can occur due to various reasons that include incorrect hostname, improper ports setup, mail directory incorrectly set, and so on.
To fix this error, go to https://ibmimedia.com/blog/52/how-to-resolve-roundcube-webmail-login-failed-error