{% extends 'base.html' %}

{% block content %}
<div class="row justify-content-center my-5">
    <div class="col-lg-5 col-md-7">
        <div class="auth-card">
            <div class="auth-header">
                <div class="auth-icon">
                    <i class="fas fa-shield-alt"></i>
                </div>
                <h1>Вход в систему</h1>
                <p class="auth-subtitle">Введите свои учётные данные</p>
            </div>

            <form method="POST" action="{{ url_for('auth', next=request.args.get('next', '')) }}">
                <div class="mb-3">
                    <label for="login" class="form-label">Логин</label>
                    <div class="input-icon-wrapper">
                        <i class="fas fa-user input-icon"></i>
                        <input type="text" class="form-control form-control-icon" id="login" name="login" placeholder="Введите логин" required>
                    </div>
                </div>
                <div class="mb-3">
                    <label for="password" class="form-label">Пароль</label>
                    <div class="input-icon-wrapper">
                        <i class="fas fa-lock input-icon"></i>
                        <input type="password" class="form-control form-control-icon" id="password" name="password" placeholder="Введите пароль" required>
                    </div>
                </div>
                <div class="mb-4">
                    <label class="checkbox-wrapper">
                        <input type="checkbox" name="remember" class="custom-checkbox">
                        <span class="checkmark"></span>
                        <span class="checkbox-label">Запомнить меня</span>
                    </label>
                </div>
                <button type="submit" class="btn btn-primary w-100">
                    <i class="fas fa-sign-in-alt"></i> Войти
                </button>
            </form>
        </div>
    </div>
</div>
{% endblock %}
