You can now have 2 separate template files.

One for outgame (login, register, etc) and one for ingame.
outgame.php for outgame
main.php for ingame