{include file="./index_top.tpl"}
<script>
$('.header__user-item--logout').hide();
</script>
<br><br>
<div align=center>{$lang.Password_recovery}</div><br>
{if $restore_ok}
    <div align=center style="font-size:13px;"><p>{$lang.pass_request_mailed}</p></div>
    <br>
{elseif $restore_complete}
    <div align=center style="font-size:13px;">
        <p style='color:green'>{$lang.pass_was_changed}</p><br>
        {$lang.Your_login}: <b>{$login}</b><br><br>
        {$lang.Your_password}: <b>{$new_pass}</b><br><br>
        <form action='{$config.site_root}/login.php' method='post'>
            <table>
                <tr>
                    <td><input type=checkbox name='save_enter'></td>
                    <td>{$lang.save_login_params}</td>
                </tr>
            </table>
            <br><br>
            <input type="hidden" name="csrf" value="{$csrf}"/>
            <input type="hidden" name="login" value="{$login}"/>
            <input type="hidden" name="password" value="{$new_pass}"/>
            <input class="btn btn-sm btn-default" type=submit value='{$lang.Enter}'><br><br>
        </form>
    </div>
    <br>
{else}
    <form action="login.php?restore_pass" method="post">
        <table align=center cellspacing=10>
            <tr>
                <td colspan=2 align=center>
                    {$lang.restore_pass_text}
                </td>
            </tr>
            <tr>
                <td colspan=2 align=center style="color:red">{if $error}{$error}<br><br>{/if}</td>
            </tr>
            <tr>
                <td width=40% align=right>{$lang.Login} / e-mail:</td>
                <td><input class="form-control form-control-160" type=text name="login_email" size=30 value="{$login_email}"></td>
            </tr>
            <tr>
                <td colspan=2 align=center><br><input class="btn btn-sm btn-default" type=submit value="{$lang.Send}"></td>
            </tr>
        </table>
        <input type="hidden" name="csrf" value="{$csrf}"/>
    </form>
{/if}
<br>