{extends "focus/focus.base.tpl"}

{block "focus-content"}
   <form method="post" action="{url s=login}">
      <div class="text-center">
         <img src="/templates/images/logo.svg" alt="{$dbcfg.shop_title}" class="img-responsive" loading="lazy">
         <p class="h5">{t}Přihlášení{/t}</p>
      </div>
      {ifmodule USER_OAUTH}
      {if $dbcfg.oauth.facebook.client_id}
         <a href="/connect/facebook" class="btn btn-fcb btn-primary btn-block"><span
                    class="fc icons_facebook"></span> {t}Přihlášení pomocí Facebooku{/t}</a>
         <p><span>{t}nebo{/t}</span></p>
      {/if}
      {/ifmodule}
      <div class="form-group">
         <label for="log-login">{t}E-mail{/t}</label>
         <input type="email" name="login" id="log-login" value="{$body.inputLogin}" class="form-control" required="">
      </div>
      <div class="form-group">
         <label for="log-password">{t}Heslo{/t}</label>
         <input type="password" name="password" id="log-password" value="" class="form-control" required="">
      </div>
      <div class="form-group">
         <label class="custom-checkbox custom-control">
            <input type="checkbox" class="custom-control-input" name="remember" value="1" checked>
            <span class="custom-control-indicator"></span>
            {t}Zapamatovat si přihlášení{/t}
         </label>
      </div>
      <input type="hidden" name="url" value="{$ctrl.currUrl.Rel}">
      <input class="btn btn-primary btn-block" type="submit" value="{t}Přihlásit se{/t}" name="Submit">
      <div class="text-center">
         <a href="{url s=login act=passw}">{t}Zapomenuté heslo?{/t}</a>
         <hr>
         <p class="text-center">{t}Nový zákazník?{/t}</p>
         <a href="{url s=user act=new}" class="btn btn-muted">{t}Vytvořit účet{/t}</a>
      </div>
   </form>
{/block}
