blob: a7fc6f441a87d3266cbd71cfc5ccbaead5fbd746 [file] [log] [blame]
San3yuan2534d422025-04-08 21:43:18 +08001.form {
2 display: flex;
3 flex-direction: column;
4 align-items: center; /* Center items horizontally */
5 justify-content: center; /* Center items vertically */
6 height: 40%; /* Occupy 40% of the viewport height */
7 width:25%;
8 background-color: #f0f8ff; /* Light blue background */
9 box-shadow: 3px 3px 5px 6px #ccc;
10 position: absolute; /* Position the form absolutely */
11 top: 50%; /* Move to the middle of the viewport */
12 left: 50%; /* Center horizontally */
13 transform: translate(-50%, -50%); /* Adjust for centering */
14 border-radius: 10px; /* Add rounded corners */
15 padding: 20px; /* Add padding for better spacing */
16 box-sizing: border-box; /* Include padding and border in width/height */
17
18}
San3yuan6f2ed692025-04-16 20:24:49 +080019.form .logo{
20 width: 100px; /* Set a fixed width for the logo */
21 height: auto; /* Maintain aspect ratio */
22 margin-bottom: 20px; /* Space between logo and form */
23}
San3yuan2534d422025-04-08 21:43:18 +080024
25.form input {
26 margin: 5px;
27 padding: 5px;
28 border-radius: 5px;
29 border: 1px solid #ccc;
30 font-size: 16px;
31 width: 80%; /* Adjust width for better appearance */
32 max-width: 300px; /* Limit maximum width */
33 box-sizing: border-box;
34}
35
36.form .email,
37.form .password {
38 margin: 10px;
39 padding: 10px;
40 border-radius: 5px;
41 border: 1px solid #ccc;
42 font-size: 16px;
43 width: 80%;
44 max-width: 300px;
45}
46
47.form .submit {
48 margin: 10px;
49 padding: 10px;
50 border-radius: 5px;
51 border: 1px solid #ccc;
52 font-size: 16px;
53 background-color: #4CAF50; /* Green */
54 color: white;
55 cursor: pointer;
56 width: 80%;
57 max-width: 300px;
58}
59
60.form .submit:hover {
61 background-color: #45a049; /* Darker green */
62}
63
San3yuan6f2ed692025-04-16 20:24:49 +080064.form .register {
San3yuan2534d422025-04-08 21:43:18 +080065 margin: 10px;
66 padding: 10px;
67 border-radius: 5px;
68 border: none;
69 font-size: 16px;
70 background-color: #007BFF; /* Blue */
71 color: white;
72 cursor: pointer;
73 width: 80%;
74 max-width: 300px;
75}
76
San3yuan8166d1b2025-06-05 23:15:53 +080077.sendCode {
78 padding:5px;
79 border-radius: 5px;
80 border: none;
81 font-size: 8px;
82 background-color: #ff7300; /* Blue */
83 color: white;
84 cursor: pointer;
85 width: 60px;
86 max-width: 300px;
87}
88
San3yuan6f2ed692025-04-16 20:24:49 +080089.form .register:hover {
San3yuan2534d422025-04-08 21:43:18 +080090 background-color: #0056b3; /* Darker blue */
San3yuan6f2ed692025-04-16 20:24:49 +080091}
92
93.form .forget{
94 border: none;
95 text-decoration: underline;
96 align-content: flex-end;
97
98}
99
100.form .forget:hover{
101 border: none;
102 text-decoration: underline;
103 align-content: flex-end;
104 color: #007BFF; /* Blue */
San3yuan8166d1b2025-06-05 23:15:53 +0800105}
106
107.back {
108 background: none;
109 border: none;
110 text-decoration: underline;
111 cursor: pointer;
112 margin-top: 8px;
113 font-size: 16px;
114 padding: 0;
115 transition: color 0.2s;
116}
117
118.back:hover {
119 color: #0056b3;
120 text-decoration: underline;
San3yuan2534d422025-04-08 21:43:18 +0800121}