{% 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="/register" 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="new-password" minlength="6">
        </label>
        <button type="submit" class="btn btn-primary">Создать аккаунт</button>
    </form>
    <p class="muted">Уже есть аккаунт? <a href="/login">Войти</a></p>
</div>
{% endblock %}
