<%- include('../partials/head') %>
<div class="auth-page">
  <div class="auth-theme"><%- include('../partials/theme-toggle') %></div>
  <div class="auth-card">
    <img src="/img/lockup-color.png" alt="OTENEX" class="logo">
    <div class="auth-tag">QR Platform</div>
    <% if (error) { %><div class="notice err"><%= error %></div><% } %>
    <form method="post" action="/login">
      <input type="hidden" name="_csrf" value="<%= csrfToken %>">
      <label class="fld"><span>Email</span>
        <input type="email" name="email" value="<%= email %>" required autofocus autocomplete="username">
      </label>
      <label class="fld"><span>Password</span>
        <input type="password" name="password" required autocomplete="current-password">
      </label>
      <button class="btn block" type="submit">Sign in</button>
    </form>
  </div>
</div>
</body></html>
