27 lines
1.2 KiB
HTML
27 lines
1.2 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="zh-CN">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<title>OAuth2 登录</title>
|
||
|
|
<style>
|
||
|
|
body { font-family: Arial, sans-serif; background: #f5f5f5; }
|
||
|
|
.login-box { width: 300px; margin: 100px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px #ccc; }
|
||
|
|
.login-box h2 { text-align: center; margin-bottom: 20px; }
|
||
|
|
.login-box input { width: 100%; padding: 8px; margin: 10px 0; border: 1px solid #ddd; border-radius: 4px; }
|
||
|
|
.login-box button { width: 100%; padding: 10px; background: #1976d2; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
|
||
|
|
.login-box button:disabled { background: #aaa; }
|
||
|
|
.msg { color: #d32f2f; text-align: center; }
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="login-box">
|
||
|
|
<h2>OAuth2 登录</h2>
|
||
|
|
<form method="post" action="/login">
|
||
|
|
<input type="text" name="username" placeholder="用户名" required autocomplete="username">
|
||
|
|
<input type="password" name="password" placeholder="密码" required autocomplete="current-password">
|
||
|
|
<button type="submit">登录</button>
|
||
|
|
</form>
|
||
|
|
<div class="msg"></div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|