143 lines
2.7 KiB
HTML
Raw Normal View History

2026-03-10 16:40:19 +08:00
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录页面</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-container {
background-color: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
.login-header {
text-align: center;
margin-bottom: 2rem;
}
.login-header h1 {
color: #333;
font-size: 2rem;
margin-bottom: 0.5rem;
}
.login-header p {
color: #666;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #333;
}
.form-group input {
width: 100%;
padding: 0.8rem;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 1rem;
transition: border-color 0.3s ease;
}
.form-group input:focus {
outline: none;
border-color: #4285f4;
}
.login-button {
width: 100%;
padding: 0.8rem;
background: linear-gradient(135deg, #4285f4 0%, #357abd 100%);
color: white;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: background 0.3s ease;
}
.login-button:hover {
background: linear-gradient(135deg, #357abd 0%, #2c5f88 100%);
}
.forgot-password {
text-align: center;
margin-top: 1rem;
}
.forgot-password a {
color: #4285f4;
text-decoration: none;
font-size: 0.9rem;
}
.forgot-password a:hover {
text-decoration: underline;
}
.register-link {
text-align: center;
margin-top: 1rem;
color: #666;
}
.register-link a {
color: #4285f4;
text-decoration: none;
}
.register-link a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="login-container">
<div class="login-header">
<h1>欢迎登录</h1>
<p>请输入您的账号和密码</p>
</div>
<form>
<div class="form-group">
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名" required>
</div>
<div class="form-group">
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码" required>
</div>
<button type="submit" class="login-button">登录</button>
<div class="forgot-password">
<a href="#">忘记密码?</a>
</div>
</form>
<div class="register-link">
<p>还没有账号? <a href="#">立即注册</a></p>
</div>
</div>
</body>
</html>