1.8 KiB · text History 2264215
{% extends "root.html" %}

{% block inner %}
<div class="hero min-h-[70vh] bg-base-200">
    <div class="hero-content flex-col lg:flex-row-reverse">
        <div class="text-center lg:text-left">
            <h1 class="text-5xl font-bold">Login</h1>
            <p class="py-6">Sign in to {{ app_name }}.</p>
        </div>
        <div class="card flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-100">
            <form class="card-body" action="/auth/login" method="post">
                <div class="form-control">
                    <label class="label"><span class="label-text">Username</span></label>
                    <input type="text" name="username" placeholder="Username" class="input input-bordered" required autofocus/>
                </div>
                <div class="form-control">
                    <label class="label"><span class="label-text">Password</span></label>
                    <input type="password" name="password" placeholder="Password" class="input input-bordered" required/>
                </div>
                <div class="form-control mt-6">
                    <button class="btn btn-primary" type="submit">
                        <i class="fas fa-sign-in-alt mr-2"></i> Login
                    </button>
                </div>
                <div class="text-center mt-4">
                    <p class="text-sm">
                        {% if registration_open %}
                          Don't have an account?
                          <a href="/register" class="link link-primary">Register here</a>
                        {% else %}
                          <span class="opacity-70">Registration is invite-only — ask an existing member for an invite link.</span>
                        {% endif %}
                    </p>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}