Where exactly do you click?
On the logo, or login button or somewhere else?
Does any error appear in the Console of the Developer Tools (F12) at your Web browser?
May I ask what troubleshooting steps have you already tried regarding the 524 error you’re getting for your Website from the article below?
Before moving to Cloudflare, was your Website working over HTTPS connection?
You could determine this by:
- Use the “Pause Cloudflare on Site” option from the Overview tab for your domain at dash.cloudflare.com .
- The link is in the lower right corner of that page.
- Give it five minutes to take effect, then make sure site is working as expected with HTTPS without any error
- Check with your hosting provider / cPanel AutoSSL / Let’s Encrypt / Certbot / ACME and renew it in case if needed
- Only then, when your website responds over HTTPS, you should un-pause Cloudflare and double-check your SSL/TLS setting to make sure it’s Full (Strict).
What port are you using to access your Webmail?
May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?