@model PantheonRA.WebApi.Contracts.ForgotPasswordResponse
@{
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}

<div class="login-splash">
    @*TODO: localize link*@
    <a href="https://www.datalab.si/" target="_blank" class="login-splash-logo"></a>
</div>
<div class="login animated fadeInDown">
    <div class="login-logo"></div>

    <div class="login-title">@Html.Raw(string.Format(Loc.ForgotPassword, "<br/>"))</div>

    <div class="login-form text-center loginscreen">
        @if (Model.Success)
        {
            <p class="text-left acc-info-label">
                @Loc.ResetPassSentOnEmail <span class="acc-info-email">@Model.Email</span>
            </p>
            <p class="text-left acc-info-label">
                @Loc.ResetPassSentInfo
            </p>
            <p class="text-left acc-info-label">
                @Loc.ResetPassSentQuestion
            </p>
        }
        else
        {
            <p class="text-left acc-info-label">
                @Model.Message
            </p>
            <p>&nbsp;</p>
        }
        <p class="text-left">
            <a onclick="redirectToForgot()">@Loc.ResetPassSentLinkText</a>
        </p>
        <p class="text-left">
            <a onclick="redirectToLogin();">
                <span class="fa fa-arrow-left text-success"></span>
                <span class="reset-pass-login">@Loc.ResetPassOnLogin</span>
            </a>
        </p>
    </div>
    <div class="row">
        <div class="acc-copy col-md-12">
            <div class="login-links">
                <a href="@Loc.PersonalProtectionPolicyUrl" target="_blank">@Loc.PersonalProtectionPolicy</a><br />
                <a href="@Loc.DatalabPantheonTermsOfUseUrl" target="_blank">@Loc.DatalabPantheonTermsOfUse</a>

                <p class="m-t-xs login-copyright">Copyright Datalab &copy; 1997 - @DateTime.Now.Year</p>
            </div>
        </div>
    </div>
</div>

<script>
        function redirectToLogin() {
            window.location.href = '@Url.Action("Login", "Account")';
        }
        function redirectToForgot() {
            window.location.href = '@Url.Action("ForgotPassword", "Account")';
        }
</script>