The recommended way to do this is to setup 2 vservers with 2 portal config
databases, both pointing to the same content database. 1 instance setup
anonymous, the other authenticated. The "main" URL would be the anon site, the
"login" link would just be a link to the same page in the other instance.