{if $userinfo.logged != 1}
{literal}
<script language=javascript>
function checklogin() {   
  if (document.loginform.username.value=='') {
    alert("Please enter your username!");
    document.loginform.username.focus();
    return false;
  }
  if (document.loginform.password.value=='') {
    alert("Please enter your password!");
    document.loginform.password.focus();
    return false;
  }
  return true;
}
</script>
{/literal}
<form method=post name=loginform onsubmit="return checklogin()">
<input type=hidden name=a value='do_login'>
<input type=hidden name=follow value='{$frm.follow}'>
<div class="row">
    <div class="col-sm-6 col-lg-6">
        <div class="form-group">
            <label>
                <i class='bx bx-user'></i>
            </label>
            <input type="text" name="username" class="form-control" placeholder="Enter Username*">
        </div>
    </div>
    
    <div class="col-sm-6 col-lg-6">
        <div class="form-group">
            <label>
                <i class='bx bx-show-alt'></i>
            </label>
            <input type="password" name="password" class="form-control" placeholder="Enter Password*">
        </div>
    </div>
    
    {include file="captcha.tpl" action="login" inpt_size=15}
    
    <div class="col-lg-12">
        <div class="form-group">
        <a href="/?a=forgot_password">
            Forgot Password?
        </a>
        </div>
    </div>
    
    
    <div class="col-lg-12">
        <button type="submit" class="btn cmn-banner-btn">
            Login to Dashboard
            <i class='bx bx-right-arrow-alt'></i>
        </button>
    </div>

</div>


</form>

{else}

<div class="row">
    <div class="col-sm-6 col-lg-6">
        <div class="form-group">
            <label>
                <i class='bx bx-user'></i>
            </label>
            <input type="text" name="username" class="form-control" placeholder="Enter Username*">
        </div>
    </div>
    
    <div class="col-sm-6 col-lg-6">
        <div class="form-group">
            <label>
                <i class='bx bx-show-alt'></i>
            </label>
            <input type="password" name="password" class="form-control" placeholder="Enter Password*">
        </div>
    </div>
    
    {include file="captcha.tpl" action="login" inpt_size=15}
    
    <div class="col-lg-12">
        <div class="form-group">
        <a href="/?a=forgot_password">
            Forgot Password?
        </a>
        </div>
    </div>
    
    <div class="col-lg-12">
        <a href="/?a=account" class="btn cmn-banner-btn">
            Back to Dashboard
            <i class='bx bx-right-arrow-alt'></i>
        </a>
    </div>

</div>


{/if}