The ID of, e.g., the user_login form changes to reflect the number of times the form has been submitted in this dialog.

Would it be possible to add the "original" ID of the form as a class so that it can be used for CSS? As it stands, there's no way to write CSS targeting elements in a specific form in the the Modal Forms dialog.