<!doctype html>
<html lang="en">

<head>
    <link href="/assets/main.css" rel="stylesheet" />
    <link rel="shortcut icon" href="/assets/favicon.ico">
    <title>Awstin</title>
    {% block head %}{% endblock %}
</head>

<body>
    <main class="content">
        <form action="/login" method="post">
            <p>
            {% if let Some(username) = username %}
                <label for="username">{{username}}</label>
                <input type="hidden" name="username" id="username" value="{{ username }}" minlength="1" maxlength="20" pattern="[0-9a-z]+" required>
            {% else %}
                <label for="username">Username: </label>
                <input type="text" name="username" id="username" minlength="1" maxlength="20" pattern="[0-9a-z]+" required>
            {% endif %}
            </p>
            <p>
                <label for="password">Password: </label>
                <input type="password" name="password" id="password" required>
            </p>
            <input type="submit" value="Login">
        </form>
    </main>
</body>

</html>
