Vastai-ConnectHub/app/admin/templates/login.html

72 lines
1.8 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>登录</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
background: #f5f6f8;
}
.card {
max-width: 360px;
margin: 120px auto;
background: #fff;
border-radius: 8px;
padding: 24px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.title {
font-size: 20px;
margin-bottom: 16px;
text-align: center;
}
.field {
margin-bottom: 12px;
}
.field input {
width: 100%;
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
}
.btn {
width: 100%;
padding: 10px 12px;
border: none;
border-radius: 6px;
background: #2563eb;
color: #fff;
font-size: 14px;
cursor: pointer;
}
.error {
color: #b91c1c;
margin-bottom: 12px;
font-size: 13px;
text-align: center;
}
</style>
</head>
<body>
<div class="card">
<div class="title">系统登录</div>
{% if error %}
<div class="error">{{ error }}</div>
{% endif %}
<form method="post" action="/login">
<input type="hidden" name="next" value="{{ next }}" />
<div class="field">
<input type="text" name="username" placeholder="用户名" required />
</div>
<div class="field">
<input type="password" name="password" placeholder="密码" required />
</div>
<button class="btn" type="submit">登录</button>
</form>
</div>
</body>
</html>