<%- include('partials/auth-open', { title }) %>
    <p class="kicker">Staff portal</p>
    <h1>Welcome back</h1>
    <p class="muted">Sign in to manage requests, approvals, and petty cash.</p>
    <% if (error) { %><div class="alert error" role="alert"><%= error %></div><% } %>
    <% if (typeof notice !== 'undefined' && notice) { %><div class="alert success" role="status"><%= notice %></div><% } %>
    <form method="post" action="/login" class="stack">
      <label>Work email<input type="email" name="email" autocomplete="username" placeholder="firstname.lastname@gaptechsolutions.com" required autofocus></label>
      <label>Password<input type="password" name="password" autocomplete="current-password" required></label>
      <button class="button primary block" type="submit">Sign in</button>
    </form>
    <div class="auth-links">
      <a href="/forgot-password">Forgot password?</a>
      <span>New staff member? <a href="/register">Create an account</a></span>
    </div>
<%- include('partials/auth-close') %>
