{include file="header2.tpl"}
<main role="main" class=" ">
                <div class="container h-100- px-4 px-sm-0">
                    <div class="row flex h-100 align-items-center"><div
                    class=" col-sm-12 col-md-8 col-lg-6 col-xl-6 mx-auto ">
                    <div class="text-center auth-logo">
                        <img src="#" alt="BO Portal" aria-roledescription="logo"
                                 class="company_logo"/>
                    </div>


             <br><br><div class="auth-container text-white"><div class=""><div class="text-center pb-3"><h3 class="mb-5">
                    Forgot your password?
                </h3><p class="mt-n4">
                    Not a problem, happens to the best of us. Just enter your registered email below and we'll send you instructions to reset your password.
                </p></div>
{literal}
<script language=javascript>
function checkform() {
  if (document.forgotform.email.value == '') {
    alert("Please type your username or email!");
    document.forgotform.email.focus();
    return false;
  }
  return true;
}
</script>
{/literal} 

{if $errors.turing_image}
Invalid turing image<br><br>
{/if}


{if $found_records == 2}
Your accound was found. Please check your e-mail address and follow confirm URL to reset your password.
<br><br>
{else}

{if $found_records == 0}
No accounts found for provided info.
<br><br>
{elseif $found_records == 1}
Request was confirmed. Login and password was sent to your email address.
<br><br>
{/if}

<form method=post name=forgotform onsubmit="return checkform();">
<input type=hidden name=a value="forgot_password">
<input type=hidden name=action value="forgot_password">
<table cellspacing=0 cellpadding=2 border=0>
<div class="form-group">
<label class="form-label" for="lostaccount">Username or e-mail</label>
<input type=text name='email' value="{$frm.email|escape:htmlall}" class="form-control-lg valid-email form-control" size=30 placeholder="Type your username or e-mail">
</div>
{include file="captcha.tpl" action="forgot_password"}

<div class="text-center text-center pb-7">
<div class="form-group">
    <button type="submit" value="Forgot" class="btn btn-primary btn-rounded text-uppercase btn-rounded login-mobile">
                    Submit
    </button>
                
</div></div><p class="mb-0 text-center">
                Already a member?
<a href="?a=login" class="fw-500 text-primary">
                    Login
                </a></p>
</table>
</form>
{/if}

</div></div>

{literal}                
       <script>
   $('form').on('submit', function () {
            if ($(this)) {
                $('#candles-loader-overlay').show()
            }
        });
    </script>          
{/literal}

    </div></div></div></main>
{include file="footer.tpl"}