Login form: User ID and Password in same page vs User ID in the first page and password in the next

Some major sites like Google and Amazon take 2-page approach for signin. They first ask for ID and in the next page ask for password. What is the advantage in this against single page signin process? Is this because of security, technical, usability or any other reason?