<!doctype html>
<html lang="{{ .lang }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>{{ trans .lang "admin_title" }}</title>
        <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <link href="/static/admin/css/bootstrap.min.css?v={{ version }}" rel="stylesheet">
        <link href="/static/admin/css/dashboard.css?v={{ version }}" rel="stylesheet">
    </head>
    <body class="login-page">
        <main class="login-form">
            <form method="post">
                <div class="form-floating">
                    <input type="text" name="username" class="form-control {{ if .hasErrors }}is-invalid{{ end }}" value="{{ .form.Username }}" id="formUsername" placeholder="{{ trans .lang "admin_username" }}">
                    <label for="formUsername">{{ trans .lang "admin_username" }}</label>
                </div>
                <div class="form-floating">
                    <input type="password" name="password" class="form-control {{ if .hasErrors }}is-invalid{{ end }}" value="{{ .form.Password }}" id="formPassword" placeholder="{{ trans .lang "admin_password" }}">
                    <label for="formPassword">{{ trans .lang "admin_password" }}</label>
                </div>
                <button class="w-100 btn btn-primary" type="submit">{{ trans .lang "admin_auth_btn" }}</button>
            </form>
        </main>
    </body>
</html>