Customizing Login Page through jupyterlab extension


How can I customize the login page? I would like to change the texts and styles of this page:

That is presently provided by jinja templates controlled by jupyter_server:

To make it part of the labextension system would be non-trivial today. Some of the patterns on jupyterlite might be interesting, such as defining a very minimal Application and Shell.

Thank you! I could create a custom static login page. But now, I don’t find how to keep the original log logic. is there any tutorial or doc to do that?