{% extends 'layouts/auth.twig' %}

{% block content %}
  <section class="auth-panel">
    <h1>Sign In</h1>
    <p>Access finance documents and company reports.</p>

    {% if error %}<div class="alert alert-danger">{{ error }}</div>{% endif %}

    <form method="post" action="{{ base_url }}/login">
      <input type="hidden" name="_csrf_token" value="{{ csrf_token }}">
      <div class="field">
        <label>Email</label>
        <input type="email" name="email" value="{{ email|default('') }}" autocomplete="email" autofocus>
      </div>
      <div class="field">
        <label>Password</label>
        <input type="password" name="password" autocomplete="current-password">
      </div>
      <button class="btn btn-primary" type="submit">Sign In</button>
    </form>

    <p class="auth-help">Ask an administrator to reset your password. If this is the only admin account, use the local recovery command in the README.</p>
  </section>
{% endblock %}
