<%- include("partials/layout-top", { title }) %>
<section class="standalone-card card">
  <span class="eyebrow">Development access</span>
  <h1>Localhost Login</h1>
  <p class="hint">
    This login option is only available when the site is opened from localhost.
    The default credentials are admin / admin until changed in settings.
  </p>
  <form method="post" action="/auth/localhost" class="form-grid">
    <div class="field full">
      <label for="localhost-username">Username</label>
      <input id="localhost-username" name="username" value="<%= username || 'admin' %>" autocomplete="username" required />
    </div>
    <div class="field full">
      <label for="localhost-password">Password</label>
      <input id="localhost-password" name="password" type="password" autocomplete="current-password" required />
    </div>
    <div class="field full">
      <button type="submit" class="button">Login locally</button>
    </div>
  </form>
</section>
<%- include("partials/layout-bottom") %>
