Testing site with login access AND login inside
Use the Secure Site module. This module allows you to authenticate users with a browser-based password (HTTP Auth). Giving you the "outer" authentication layer. Then use Drupal core's login for the "inner".