You probably want to look at something like Welcome page for private sites where you’d be adding content to the “account required” page.
As far as I know what you can do with a theme is very limited when login is required because at that point most of Discourse (not just the content) is inaccessible to anonymous users.