{% extends 'base.html' %}
{% block title %}Přihlášení{% endblock %}
{% block content %}
<div class="row justify-content-center">
  <div class="col-md-5 col-lg-4">
    <div class="card shadow-sm border-0">
      <div class="card-body p-4">
        <h1 class="h4 mb-3">Přihlášení do aplikace</h1>
        <p class="text-secondary small mb-4">Přístup do formuláře pro vytváření LXC kontejnerů.</p>
        {% if error %}
          <div class="alert alert-danger py-2">{{ error }}</div>
        {% endif %}
        <form method="post">
          <div class="mb-3">
            <label for="username" class="form-label">Uživatel</label>
            <input type="text" class="form-control" id="username" name="username" required autofocus>
          </div>
          <div class="mb-3">
            <label for="password" class="form-label">Heslo</label>
            <input type="password" class="form-control" id="password" name="password" required>
          </div>
          <button type="submit" class="btn btn-primary w-100">Přihlásit</button>
        </form>
      </div>
    </div>
  </div>
</div>
{% endblock %}
