<div class="modal fade flip-effect" id="loginModal" tabindex="-1" ng-controller="loginController">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"><i class="fa fa-sign-in"></i> Login</h4>
            </div>
            <div class="modal-body">
                <div ng-show="showLogin">
                    <div id="loginStatus"></div>
                    <form name="loginForm" id="loginForm" ng-submit="login()" novalidate>
                        <div class="form-group">
                            <label>Username</label>
                            <input type="text" class="form-control" placeholder="Enter Username"
                                   name="loginUsername" ng-model="loginUser.username" required>
                        </div>
                        <div class="form-group">
                            <label>Password</label>
                            <input type="password" class="form-control" placeholder="Enter Password"
                                   name="loginPass" ng-model="loginUser.pass" required>
                        </div>
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" id="loginRM" value="1" ng-model="loginUser.rm"> Remember me
                            </label>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-sky">
                                <i class="fa fa-sign-in"></i> Login
                            </button>
                            <button type="button" class="btn btn-danger" ng-click="showForgotPass()">Forgot Password?</button>
                        </div>
                    </form>
                </div>
                <div ng-hide="showLogin">
                    <div id="forgotStatus"></div>
                    <form name="forgotForm" id="forgotForm" ng-submit="submitForgotForm(forgotForm.$valid)" novalidate>
                        <div class="form-group">
                            <label>Email</label>
                            <input type="text" class="form-control" placeholder="Enter E-mail"
                                   name="forgotEmail" ng-model="forgotUser.userEmail" required>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-sky">
                                <i class="fa fa-cog"></i> Submit
                            </button>
                            <button type="button" class="btn btn-green" ng-click="showLoginForm()">Login</button>
                        </div>
                    </form>
                </div>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>