Ah, yes. I have a separate login form as a wrapper around the popup. So if my other forms detect we are not logged in, it does an open_form("Login")
which is a custom HTML form that in turn opens the login popup.
That might be worth a go, putting your login form CSS in there. (confession - I’ve not tried it)
I’ve suspected the theme.css is auto-loaded before. Maybe blank it?