66 lines
2.1 KiB
HTML
66 lines
2.1 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>登录</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: linear-gradient(135deg, #0f172a, #1e293b);
|
|
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
|
|
color: #e2e8f0;
|
|
}
|
|
.card {
|
|
width: 100%;
|
|
max-width: 380px;
|
|
background: #0b1224;
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
box-shadow: 0 25px 60px rgba(0,0,0,0.45);
|
|
}
|
|
h1 { margin: 0 0 12px; }
|
|
label { display: block; margin: 10px 0 6px; font-weight: 600; color: #cbd5e1; }
|
|
input {
|
|
width: 100%;
|
|
padding: 11px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
background: rgba(255,255,255,0.04);
|
|
color: #e2e8f0;
|
|
}
|
|
button {
|
|
margin-top: 16px;
|
|
width: 100%;
|
|
padding: 12px;
|
|
border-radius: 10px;
|
|
border: none;
|
|
cursor: pointer;
|
|
background: linear-gradient(135deg, #22d3ee, #a855f7);
|
|
color: #0b1224;
|
|
font-weight: 700;
|
|
}
|
|
.error { color: #f87171; margin-top: 10px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="card">
|
|
<h1>登录</h1>
|
|
<form method="post">
|
|
<input type="hidden" name="next" value="{{ next_url }}">
|
|
<label for="username">用户名</label>
|
|
<input id="username" name="username" required>
|
|
<label for="password">密码</label>
|
|
<input id="password" name="password" type="password" required>
|
|
<button type="submit">登录</button>
|
|
{% if error %}<div class="error">{{ error }}</div>{% endif %}
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|