{include file="_partials/head.tpl"}
<link rel="stylesheet" href="/public/assets/account/account.css">

<div class="acc-container acc-container--auth">
  <div class="acc-authcard">
    <h1 class="acc-auth__title">Вход в личный кабинет</h1>
    <p class="acc-auth__sub">Войдите, чтобы видеть заказы и управлять аккаунтом.</p>

    [if {error}]<div class="acc-flash acc-flash--error">{error}</div>[/if]

    <form method="post" action="/account/login" class="acc-form">
      {csrf}
      [if {next}]<input type="hidden" name="next" value="{next}">[/if]
      <div class="acc-field">
        <label for="acc-email">Email</label>
        <input id="acc-email" type="email" name="email" value="{old.email}" required autocomplete="email" autofocus>
      </div>
      <div class="acc-field">
        <label for="acc-pass">Пароль</label>
        <input id="acc-pass" type="password" name="password" required autocomplete="current-password">
      </div>
      <label class="acc-check"><input type="checkbox" name="remember" value="1"> Запомнить меня</label>
      <div class="acc-form__actions">
        <button type="submit" class="acc-btn acc-btn--primary acc-btn--block">Войти</button>
      </div>
    </form>

    <p class="acc-auth__alt">Нет аккаунта? <a href="/account/register">Зарегистрироваться</a></p>
  </div>
</div>

{include file="_partials/foot.tpl"}
