<!doctype html>
<html lang="en">
<head>
<%- include('partials/head', { title: 'Log In' }) %>
</head>
<body class="admin-body">
  <div class="admin-login">
    <div class="admin-login__card">
      <div class="admin-login__brand">
        <img src="/images/logo.png" alt="Kubera Wealth Management" />
        <div>
          <h1>Kubera Wealth Management</h1>
          <p class="lead" style="font-size:0.8125rem;">Admin panel</p>
        </div>
      </div>

      <% if (error && error.length) { %>
        <% error.forEach(function(msg) { %><div class="flash flash-error"><%= msg %></div><% }); %>
      <% } %>

      <form action="/admin/login" method="POST">
        <input type="hidden" name="_csrf" value="<%= csrfToken %>" />
        <input type="hidden" name="next" value="<%= next %>" />
        <div class="field">
          <label for="email">Email</label>
          <input id="email" name="email" type="email" required autofocus autocomplete="username" />
        </div>
        <div class="field">
          <label for="password">Password</label>
          <input id="password" name="password" type="password" required autocomplete="current-password" />
        </div>
        <button class="btn btn-primary btn-block" type="submit">Log In</button>
      </form>
    </div>
  </div>
</body>
</html>
