XWIKI-10515: Improve the display of the Login form on Flamingo.

(cherry picked from commit efc9a681151bbd60e80b6f70ac3414860a23037e)