{% extends "base.html" %}

{% block title %}Вход — Robot Management{% endblock %}

{% block content %}
<div class="card auth-card">
    <h1>Вход</h1>
    {% if error %}
    <div class="alert alert-error">{{ error }}</div>
    {% endif %}
    <form method="post" action="/login" class="form">
        <label>
            Email
            <input type="email" name="email" required autocomplete="email" placeholder="user@example.com">
        </label>
        <label>
            Пароль
            <input type="password" name="password" required autocomplete="current-password" minlength="6">
        </label>
        <button type="submit" class="btn btn-primary">Войти</button>
    </form>
    <p class="muted">Нет аккаунта? <a href="/register">Зарегистрироваться</a></p>
</div>
{% endblock %}
