{% extends 'base.html' %}
{% load static %}
{% load crispy_forms_tags %}

{% block title %}Вход | Автошкола{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card shadow bg-dark bg-opacity-75 text-white">
                <div class="card-header bg-primary text-white">
                    <h4 class="mb-0">
                        <i class="fas fa-sign-in-alt me-2"></i>Вход в систему
                    </h4>
                </div>
                <div class="card-body">
                    <form method="post" novalidate>
                        {% csrf_token %}
                        <div class="mb-3">
                            <label for="id_username" class="form-label text-white">Имя пользователя</label>
                            <input type="text" name="username" id="id_username" class="form-control bg-dark text-white border-secondary" required>
                        </div>
                        <div class="mb-3">
                            <label for="id_password" class="form-label text-white">Пароль</label>
                            <input type="password" name="password" id="id_password" class="form-control bg-dark text-white border-secondary" required>
                        </div>
                        <div class="d-grid gap-2 mt-4">
                            <button type="submit" class="btn btn-primary">
                                <i class="fas fa-sign-in-alt me-2"></i>Войти
                            </button>
                            <a href="{% url 'accounts:register' %}" class="btn btn-outline-light">
                                <i class="fas fa-user-plus me-2"></i>Нет аккаунта? Зарегистрироваться
                            </a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 