{% extends "base.html" %}

{% block title %}Авторизация{% endblock %}

{% block head %}
<link rel="stylesheet" href="{{ url_for('static', path='css/login.css') }}">
{% endblock %}

{% block body %}
<div class="full-center">
    <div class="card login-card shadow">
        <div class="card-body">
            <h4 class="text-center mb-4">Вход</h4>

            <form id="loginForm">
                <div class="mb-3">
                    <div class="input-group">
                        <input type="password" class="form-control" id="password" placeholder="Введите пароль"
                            autofocus>
                        <span class="input-group-text password-toggle cursor-pointer noselect" id="togglePassword">
                            <i class="bi bi-eye"></i>
                        </span>
                    </div>
                </div>

                <button type="submit" class="btn btn-success w-100">
                    Войти
                </button>
            </form>

            <div id="error" class="alert alert-danger mt-3 d-none"></div>
        </div>
    </div>
</div>
{% endblock %}

{% block scripts %}
<script src="{{ url_for('static', path='js/login.js') }}"></script>
{% endblock %}