{{define "login"}}<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>登录 · Pangolin 管理后台</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body class="centered">
<form method="post" action="/login" class="card login">
  <h1>管理后台登录</h1>
  {{if .Flash}}<div class="error">{{.Flash}}</div>{{end}}
  <label>用户名<input type="text" name="username" autocomplete="username" required autofocus></label>
  <label>密码<input type="password" name="password" autocomplete="current-password" required></label>
  <label>动态验证码 (TOTP)<input type="text" name="totp" inputmode="numeric" autocomplete="one-time-code" pattern="[0-9]*" maxlength="6" required></label>
  <button type="submit">登录</button>
  <p class="hint">仅限内网 / SSH 隧道访问。</p>
</form>
</body>
</html>{{end}}
