Great question. I would love to help you with this.
That form actually comes from WordPress itself. It is generated by a call to wp_login_form() . The form includes a few different filters, including a one for the header and footer where you can add content. I would checkout that function in WordPress and see the filter available.
Does that all make sense? Will that work for you? Please let me know.