<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><%= title %> - Qeem Admin</title>
  <link rel="icon" href="<%= theme.brandImages.icon %>" type="image/png">
  <link rel="apple-touch-icon" href="<%= theme.brandImages.icon %>">
  <link rel="manifest" href="/favicon/site.webmanifest">
  <meta name="theme-color" content="#8A28BD">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
  <link href="https://fonts.cdnfonts.com/css/oughter" rel="stylesheet">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/core@latest/dist/css/tabler.min.css">
  <link rel="stylesheet" href="/css/brand.css?v=<%= theme.cssVersion %>">
</head>
<body class="login-page d-flex flex-column">
  <div class="page page-center">
    <div class="container container-tight py-4">
      <div class="text-center mb-4">
        <div class="login-brand-block">
          <img src="<%= theme.brandImages.full %>" alt="Qeem — What's Around You" class="brand-logo-img brand-logo-img-login">
        </div>
      </div>
      <div class="card card-md login-card">
        <div class="card-body">
          <h2 class="h2 text-center mb-4">Login to your account</h2>
          <% if (error) { %>
          <div class="alert alert-danger"><%= error %></div>
          <% } %>
          <form action="/admin/login" method="post" autocomplete="off">
            <div class="mb-3">
              <label class="form-label">Email address</label>
              <input type="email" name="email" class="form-control" placeholder="admin@qeem.app" required>
            </div>
            <div class="mb-2">
              <label class="form-label">Password</label>
              <input type="password" name="password" class="form-control" placeholder="Your password" required>
            </div>
            <div class="form-footer">
              <button type="submit" class="btn btn-primary w-100">Sign in</button>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/@tabler/core@latest/dist/js/tabler.min.js"></script>
  <script src="/js/button-loading.js"></script>
</body>
</html>
