{extends file="layout/auth.tpl"}
{block name=main}
    <div class="signin-wrapper">

      <div class="signin-box">
        <h2 class="slim-logo"><a href="{base_url()}/">Client Area <span></span></a></h2>
          {if $msg}
          <div class="alert alert-warning mg-b-0" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
            <strong>[WARNING]</strong> {$msg}
          </div><br>
          {/if}
          <form method="POST" action="{base_url()}/user/signin">
        <div class="form-group">
          <input type="text" class="form-control" name="user" value="{set_value('user')}" placeholder="Enter your user" required>
        </div><!-- form-group -->
        <div class="form-group mg-b-50">
          <input type="password" class="form-control" name="password" placeholder="Enter your password" required>
        </div><!-- form-group -->
        <button class="btn btn-primary btn-block btn-signin">Sign In</button>
        <p class="mg-b-0">Don't have an account? <a href="{base_url()}/user/signup">Sign Up</a></p>
      </div><!-- signin-box -->
      <input type="hidden" name="{csrf_token()}" value="{csrf_hash()}" />
</form>
    </div><!-- signin-wrapper -->

{/block}