I did it like you described, but after the last update, the color changed. Is there another solution?
You need to do this with the admin, preferences, WebInterface, login page, custom css. Don't do duplicating and editing of login pages anymore. That was advice from 2 years ago.