<!doctype html>
<html lang="ru" data-theme="auto">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{page.title} — {site.name}</title>
{csrf format="meta"}
<link rel="stylesheet" href="/public/assets/runtime/celena.css?v={asset_v}">
<link rel="stylesheet" href="/public/assets/admin/admin.css?v={asset_v}">
<script src="/public/assets/runtime/celena.js?v={asset_v}" defer></script>
</head>
<body class="auth-page">
  <div class="auth-card">
    <div class="auth-brand">{site.name}</div>
    <h1>{lang key="admin.login_to_panel"}</h1>
    [if {error}]
      <div class="alert error">{error}</div>
    [/if]
    <form method="post" action="/admin/login" autocomplete="off">
      {csrf}
      <label>{lang key="admin.email"}</label>
      <input type="email" name="email" required autofocus>
      <label>{lang key="admin.password"}</label>
      <input type="password" name="password" required>
      <label class="checkbox"><input type="checkbox" name="remember" value="1"> {lang key="admin.remember_me"}</label>
      <button type="submit" class="btn-primary">{lang key="admin.login"}</button>
    </form>
  </div>
</body>
</html>
