Unless you want to modify a theme directly (not good practice), you'll need to make a child theme and override the relevant templates and SCSS. (eg. login.mustache and classes/output/core_renderer.php if you wanted to add functionality)
The theme development section here should help.
General developer forum
How to design my own login page and course page?
This discussion has been locked so you can no longer reply to it.