{include file="./index_top.tpl"}
<script>
$('.header__user-item--logout').hide();
</script>
<br><br>
<form action="login.php" method="post" class="login-form--bb-view">
    {if $config.anti_bot_active == 2}
        <div align=center style="color:red">&nbsp;{$lang.anti_bot_mess1}{$lang.anti_bot_mess1_10_min}
            <br>{$lang.anti_bot_mess2}{$wait_time}{$lang.anti_bot_mess2_10_min}&nbsp;</div>
    {elseif $config.anti_bot_active == 3}
        <div align=center style="color:red">&nbsp;{$lang.anti_bot_mess1}{$lang.anti_bot_mess1_10_hour}
            <br>{$lang.anti_bot_mess2}{$wait_time}{$lang.anti_bot_mess2_10_hour}&nbsp;</div>
    {elseif $error}
        <div align=center style="color:red">
            <div>
                <span>&nbsp;{$error}&nbsp;{if $error_btn}</span>
                <span class='help_bt' h_id='{$error_btn}'></span>
            </div>
        </div>
    {/if}
    {elseif $warning}
        <div align=center style="color:orange">&nbsp;{$warning}&nbsp;</div>
    {/if}
    {if $double_session eq 1}
        <div align=center style="color:red">&nbsp;{$lang.other_browser_login}&nbsp;</div>
        {if $save_enter_checked}<input type="hidden" name="double_session" value="1"/>{/if}
    {/if}
    <br>
    <div class="container">
        <div class="row">
            <div class="col-md-2 col-md-offset-5 login-form">
                <div class="form-group form-group--login-input">
                    <input type=text class="form-control" name="login" size=30 value="{$user_login}" placeholder="{$lang.Login}" autofocus>
                </div>
                <div class="form-group form-group--login-input">
                    <input type=password class="form-control" name="password" size=30 value="{$user_pass}" placeholder="{$lang.Password}">
                </div>
                <div class="checkbox">
                    <label style="display: flex; align-items: center;">
                        <input type=checkbox name="save_enter" checked>
                        {$lang.save_login}
                    </label>
                </div>
                <div class="form-group form-group--login-btn">
                    <div class="">
                        <div>
                            <input type=submit value="{$lang.Enter}" class="btn btn-default btn-block">
                            <input type=hidden name="csrf" value="{$csrf}">
                        </div>
                    </div>
                </div>
                {if $error}
                    <br>
                    <div class="form-group">
                        <div class="row">
                            <div class="forgot-password-btn">
                                <a href="login.php?restore_pass" style="text-decoration: underline">{$lang.forget_password}</a>
                            </div>
                        </div>
                    </div>
                {/if}
            </div>
        </div>
    </div>
</form>
<br>