<!-- Copyright 2015 ForgeRock AS.
	License terms: https://forgerock.org/cddlv1-0/ -->
<div class="container">
    <div class="row">
        <form class="form-signin" role="form">
            <div class="col-sm-6 col-sm-offset-3">
                <div class="login">
                    <div class="form-group">
                        <input type="text" name="login" id="login" value="" class="form-control input-lg" placeholder="Username" required autofocus>
                    </div>
                    <div class="form-group">
                        <input type="password" name="password" id="password" class="form-control input-lg" placeholder="Password" required>
                    </div>
                    <div class="remember-forgot">
                        <div class="checkbox pull-left">
                            <label>
                                <input type="checkbox" type="checkbox" name="loginRemember"> {{t "templates.user.LoginTemplate.loginRemember"}}
                            </label>
                        </div>
                    </div>
                    <input type="submit" name="loginButton" class="btn btn-lg btn-primary btn-block btn-uppercase" value="{{t "common.user.login"}}">

                    <div class="text-center clearfix remember-forgot">
                        <ul>

                            {{#if forgotUsername}}
                            <li><a href="{{url 'forgotUsername'}}">{{t "templates.user.LoginTemplate.forgotUsername"}}</a></li>
                            {{/if}}

                            {{#if passwordResetLink}}
                            <li><a href="{{passwordResetLink}}">{{t "templates.user.LoginTemplate.resetPassword"}}</a></li>
                            {{else}}
                            {{#if passwordReset}}
                            <li><a href="{{url 'passwordReset'}}">{{t "templates.user.LoginTemplate.resetPassword"}}</a></li>
                            {{/if}}
                            {{/if}}

                        </ul>
                    </div>

                    {{#if selfRegistration}}
                    <div class="toggle-login-register">
                        <hr>
                        {{t "templates.user.LoginTemplate.noAccountQuestion"}} <a href="{{url 'selfRegistration'}}">{{t "templates.user.LoginTemplate.registerAccount"}}</a>
                    </div>
                    {{/if}}
                </div>
            </div>
        </form>
    </div>
</div>
