Choose the appropriate login system or use the mixed system
Your design replaces login.html while all RouterOS files stay intact.
For RouterOS v7 using REST API. A backup of the current login page is created before replacement.