{% extends "base.html" %}
{% block title %}Вход — FitnessCenter{% endblock %}
{% block content %}
<div class="container py-4 py-lg-5" style="max-width: 420px;">
    <div class="card glass-card shadow-lg">
        <div class="card-body p-4 p-lg-5">
            <h1 class="h3 fw-bold mb-4">Вход</h1>
            <form method="post" novalidate>
                {% csrf_token %}
                {% for field in form %}
                    <div class="mb-3">
                        <label class="form-label" for="id_{{ field.name }}">{{ field.label }}</label>
                        {{ field }}
                        {% for error in field.errors %}<div class="text-danger small">{{ error }}</div>{% endfor %}
                    </div>
                {% endfor %}
                <button class="btn btn-accent w-100" type="submit">Войти</button>
            </form>
            <div class="text-secondary mt-3">Нет аккаунта? <a href="{% url 'register' %}">Зарегистрироваться</a></div>
        </div>
    </div>
</div>
{% endblock %}
