admin
2023-08-04 9dede2eaa1d3e68be387c5fd612eb48226a54c9d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
 
<!DOCTYPE html>
<html lang="zh">
 
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户登录</title>
  <style>
    body {
      font-family: "宋体", Arial, Helvetica, sans-serif;
      background-color: #FEEFE3;
      background-image: url("https://i.imgur.com/9NyJSkH.jpg");
      background-size: 800px;
      background-repeat: no-repeat;
      background-position: center top;
    }
 
    * {
      box-sizing: border-box;
    }
 
    /* Add padding to container elements */
    .container {
      padding: 20px;
      background-color: rgba(255, 255, 255, 0.8);
      border-radius: 20px;
      width: 380px;
      margin: auto;
      margin-top: 15vh;
      box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.2);
    }
 
    /* Full-width input fields */
    input[type=text],
    input[type=password] {
      width: 100%;
      padding: 12px 20px;
      margin: 8px 0;
      display: inline-block;
      border: none;
      background-color: #FEEFE3;
      border-radius: 8px;
      font-size: 18px;
    }
 
    /* Set a style for the submit button */
    button {
      background-color: #F53A20;
      color: white;
      padding: 16px 20px;
      margin: 20px 0;
      border: none;
      cursor: pointer;
      width: 100%;
      border-radius: 8px;
      font-size: 24px;
      letter-spacing: 2px;
    }
 
    /* Set a hover effect for the submit button */
    button:hover {
      opacity: 0.8;
    }
 
    /* Center the login form */
    .login-form {
      text-align: center;
      font-size: 24px;
      margin-bottom: 20px;
    }
 
    /* Add a red border to invalid inputs */
    input:invalid {
      border-color: #E91E63;
    }
 
    /* Style for the heading */
    h1 {
      font-size: 48px;
      color: #F53A20;
      text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
      text-align: center;
      margin-top: 80px;
    }
 
    /* Style for the input labels */
    label {
      font-size: 24px;
      color: #FFC400;
      display: block;
      text-align: left;
      margin-bottom: 8px;
      letter-spacing: 2px;
    }
 
    /* Style for the error message */
    .error {
      color: #E91E63;
      font-size: 18px;
      text-align: left;
      margin-top: 8px;
    }
  </style>
</head>
 
<body>
 
  <h1>中国风登录页面</h1>
 
  <form class="login-form" action="" method="post">
    <div class="container">
      <label for="username">用户名</label>
      <input type="text" placeholder="请输入用户名" name="username" required>
 
      <label for="password">密码</label>
      <input type="password" placeholder="请输入密码" name="password" required>
 
      <button type="submit">登录</button>
      <div class="error">用户名或密码错误</div>
    </div>
  </form>
 
</body>
 
</html>