@using System
@using MrCMS.Helpers
@using MrCMS.Web.Apps.Core.Pages
@model MrCMS.Models.Auth.LoginModel
@using (Html.BeginForm())
{
    <div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                @Html.LabelFor(model => model.Email)
                @Html.TextBoxFor(model => model.Email, new { @class = "form-control" })
                @Html.ValidationMessageFor(model => model.Email)
            </div>
            <div class="form-group">
                @Html.LabelFor(model => model.Password, new { @class = "control-label" })
                @Html.PasswordFor(model => model.Password, new { @class = "form-control" })
                @Html.ValidationMessageFor(model => model.Password)
            </div>
            <div class="checkbox">
                <label>
                    @Html.CheckBoxFor(model => model.RememberMe)
                    @Resource("Remember me")
                </label>
            </div>

            <div class="btn-group">
                <button type="submit" value="@Resource("Login")" class="btn btn-primary"><span class="glyphicon glyphicon-user"></span> @Resource("Login")</button>

                <a href="@(UniquePageHelper.GetUrl<ForgottenPasswordPage>())" class="btn btn-default">
                    <span class="glyphicon glyphicon glyphicon-question-sign"></span>
                    @Resource("Forgotten password")?
                </a>
                
            </div>

            @if (!String.IsNullOrEmpty(Model.Message))
            {
                <br /><br />
                <div class="alert alert-danger">@Model.Message</div>
            }

        </div>
    </div>
    @Html.Honeypot()
}
