<!doctype html>
<html lang="fr">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <title>Admin Login</title>
    <style>body{font-family:system-ui,Arial;padding:24px} .card{max-width:420px;margin:40px auto;padding:20px;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,0.06)}</style>
  </head>
  <body>
    <div class="card">
      <h2>Connexion Admin</h2>
      <% if (error) { %>
        <div style="color:#b00020"><%= error %></div>
      <% } %>
      <form method="post" action="/admin/login">
        <label>Utilisateur
          <input name="username" required autofocus />
        </label>
        <label style="display:block;margin-top:8px">Mot de passe
          <input name="password" type="password" required />
        </label>
        <div style="margin-top:12px">
          <button type="submit">Se connecter</button>
        </div>
      </form>
    </div>
  </body>
</html>
