{% extends "base.html" %}
{% block content %}
<div class="columns is-centered mt-6">
    <div class="column is-one-third">
        <div class="box">
            <h1 class="title is-4 has-text-centered">AufmaßWeb – Anmeldung</h1>
            <form method="POST">
                <div class="field">
                    <label class="label">E-Mail</label>
                    <div class="control">
                        <input class="input" type="email" name="email" required autofocus>
                    </div>
                </div>
                <div class="field">
                    <label class="label">Passwort</label>
                    <div class="control">
                        <input class="input" type="password" name="password" required>
                    </div>
                </div>
                <div class="field mt-4">
                    <button class="button is-primary is-fullwidth" type="submit">Anmelden</button>
                </div>
            </form>
            {% if registration_enabled %}
            <p class="has-text-centered mt-3">
                <a href="{{ url_for('auth.register') }}">Neue Firma registrieren</a>
            </p>
            {% endif %}
        </div>
    </div>
</div>
{% endblock %}
