{% extends 'base.html' %}

{% block title %} - Login{% endblock %}

{% block main %}
<div class="container">
  <div class="row">
    <div class="col-12">
      <div class="col-12">
        <div class="card mb-3">
          <div class="card-header">
            <h5 class="mb-0"><i class="ri-login-circle-line"></i> Login</h5>
          </div>
          <div class="card-body">
            {% if wrong_password %}
            <div class="alert alert-warning" role="alert">
              <h4 class="alert-heading">Wrong password!</h4>
              <p>The password you submitted is incorrect.</p>
            </div>
            {% endif %}
            <form action="{{ url_for('login.do_login', next=next) }}" method="post">
              <div class="mb-3">
                <label for="password" class="form-label">Password</label>
                <input type="password" class="form-control" id="password" name="password">
              </div>
              <div class="text-end">
                <button type="submit" class="btn btn-primary">Login</button>
              </div>
            </form>
          </div>
          <div class="card-footer"></div>
        </div>
      </div>
    </div>
  </div>
</div>
{% endblock %}