I would like to develop a webpart or an application for Sharepoint 2013 foundation.
The webpart consists of a Custom Login page that validate the user against an Active Directory. On top of that, I would like to have a reCaptcha feature when the user fails to authenticate after 2 trials (http://www.google.com/recaptcha).
Also, I would like to add a two factor authentication using the Google Authenticator (https://code.google.com/p/google-authenticator/). This would be a second screen after the login. All users would have to register its mobile devices to get the code generation from Google Authenticator app.
I prefer to get this project done as a webpart format, or a project that I can deploy in the SharePoint.
I think you could use this Project as a startup point to setup a custom login page: http://sp2013customloginpage.codeplex.com