<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BlockWatch Login</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <div class="launcher-header">
        <div class="launcher-logo">BlockWatch Console</div>
        <div class="header-actions">
            <a class="btn btn-ghost" href="/">Главная</a>
        </div>
    </div>
    <div class="container">
        <div class="minecraft-panel">
            <div class="launcher-panel form-panel">
                <h1 class="title">Вход оператора</h1>
                {{if .Error}}
                <div class="form-error">{{.Error}}</div>
                {{end}}
                <form class="form" method="POST" action="/login">
                    <label class="form-label">Логин</label>
                    <input class="form-input" type="text" name="username" required>

                    <label class="form-label">Пароль</label>
                    <input class="form-input" type="password" name="password" required>

                    <button class="btn btn-primary form-submit" type="submit">Войти в консоль</button>
                </form>
                <div class="form-footer">
                    <span>Нет доступа?</span>
                    <a class="link" href="/register">Создать учётную запись</a>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
