<!DOCTYPE html>
<html lang="it">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login — Console MEB</title>
    <link rel="stylesheet" href="/static/style/style.css">
    <link rel="stylesheet" href="/static/style/login.css">
</head>

<body>
    <div class="container">
        <div class="login">
            <div class="header">
                <h1>Accedi alla <span class="prominent-title">Console MEB</span></h1>
            </div>

            {% if error %}
            <p class="error">{{ error }}</p>
            {% endif %}

            <form action="/api/auth/login" method="post">
                <input type="hidden" name="redirect" value="{{ redirect }}">
                <input type="hidden" name="_csrf" value="{{ csrf_token }}">
                <div class="group">
                    <label for="username">Username</label>
                    <input type="text" id="username" name="username" required autocomplete="username">
                </div>
                <div class="group">
                    <label for="password">Password</label>
                    <input type="password" id="password" name="password" required autocomplete="current-password">
                </div>

                <button type="submit" class="prominent">Login</button>
            </form>
        </div>
    </div>
</body>

</html>
