<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title><%= title %> — <%= appName %></title>
  <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=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap" rel="stylesheet" />
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
  <link rel="apple-touch-icon" href="/apple-touch-icon.svg" />
  <meta name="theme-color" content="#171717" />
  <link rel="stylesheet" href="/css/app.css" />
</head>
<body class="min-h-screen flex items-center justify-center px-4">
  <div class="w-full max-w-sm">
    <% if (flashSuccess && flashSuccess.length > 0) { %>
      <div class="flash-success mb-4"><%= flashSuccess.join(' ') %></div>
    <% } %>
    <% if (flashError && flashError.length > 0) { %>
      <div class="flash-error mb-4"><%= flashError.join(' ') %></div>
    <% } %>
    <%- body %>
  </div>
</body>
</html>
