<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>登录 - VPS补货监控</title>
  <link rel="stylesheet" href="/css/style.css">
</head>
<body>
  <div class="login-page">
    <div class="login-card">
      <h1>📦 VPS补货监控</h1>
      <p class="muted" style="margin-bottom:20px">管理后台登录</p>
      <% if (error) { %>
        <div class="flash-msg" style="background:#f8d7da;border-color:#f5c6cb;color:#721c24;margin-bottom:16px"><%= error %></div>
      <% } %>
      <form method="POST" action="/admin/login">
        <label>用户名
          <input type="text" name="username" required autofocus autocomplete="username">
        </label>
        <label>密码
          <input type="password" name="password" required autocomplete="current-password">
        </label>
        <button type="submit" class="btn btn-primary" style="width:100%;padding:10px;font-size:15px;margin-top:8px">登录</button>
      </form>
      <p style="text-align:center;margin-top:16px"><a href="/" style="font-size:13px;color:#888">← 返回首页</a></p>
    </div>
  </div>
</body>
</html>
