I had a similar problem recently, after turning on CloudFlare for my wordpress website. CF does some optimization to the code that is not compatible with OC login web page.
I can’t remember exactly what I did, but basically I turned off all CF optimization switches one by one, until I found the problematic one. That did the trick for me.