[deleted] bidi
is a feature that's used in the Mithril framework. Adding it on a plain HTTP page won't do anything ?
I suggest you add a custom page inside Flarum and re-use the login logic already written with Mithril components. You can have a look at Masquerade or the Custom Pages extensions to see how to add new pages. You can find which code to reuse by looking at the login modal source code (and not the HTML output of the page!)