<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><%= siteName %> — Connexion</title>
<link rel="stylesheet" href="/admin.css">
</head>
<body class="login-page">
  <form class="login-box" method="post" action="/admin/login">
    <h1><%= siteName %></h1>
    <p class="muted">Espace d'administration</p>
    <% if (error) { %><div class="err"><%= error %></div><% } %>
    <label>Email
      <input name="email" type="email" required autofocus autocomplete="username">
    </label>
    <label>Mot de passe
      <input name="password" type="password" required autocomplete="current-password">
    </label>
    <button class="btn" type="submit">Se connecter</button>
  </form>
</body>
</html>
