blob: 6e8b965d74f72ddd55d4df5a64b6b7e990679dc7 [file] [log] [blame]
Krishya57cc17b2025-05-26 16:43:34 +08001 .auth-container {
2 display: flex;
3 align-items: center;
Krishya7096ab12025-06-05 17:15:46 +08004 /* justify-content: flex-end; */
5 justify-content: space-between;
Krishya57cc17b2025-05-26 16:43:34 +08006 min-height: 100vh;
7 font-family: Arial, sans-serif;
Krishya7096ab12025-06-05 17:15:46 +08008 background: #5F4437;
Krishya57cc17b2025-05-26 16:43:34 +08009 /* background: linear-gradient(180deg, #5F4437, #823c3c) */
10 padding: 0 2rem; /* 添加左右内边距 */
11}
Krishya7096ab12025-06-05 17:15:46 +080012
13 .logo-container {
14 flex: 1;
15 display: flex;
16 justify-content: center;
17 align-items: center;
18 padding: 2rem;
19 }
20
21 .site-logo {
22 width: 300px; /* 设置固定宽度 */
23 height: auto; /* 高度自适应,保持比例 */
24 }
Krishya57cc17b2025-05-26 16:43:34 +080025
26 .auth-card {
27 width: 100%;
28 max-width: 480px;
29 background-color: #E4D8C9;
30 border-radius: 8px;
31 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
32 overflow: hidden;
33 }
34
35 .auth-header {
36 display: flex;
37 border-bottom: 1px solid #eee;
38 }
39
40 .auth-tab {
41 flex: 1;
42 padding: 16px;
43 text-align: center;
44 font-size: 18px;
45 font-weight: 500;
46 cursor: pointer;
47 transition: all 0.3s ease;
48 }
49
50 .auth-tab.active {
51 color: #BA929A;
52 border-bottom: 2px solid #BA929A;
53 }
54
55 .auth-tab:not(.active) {
56 color: #888;
57 }
58
59 .auth-tab:hover:not(.active) {
60 background-color: #f9f9f9;
61 }
62
63 .auth-content {
64 padding: 30px;
65 }
66
67 .auth-form {
68 display: flex;
69 flex-direction: column;
70 gap: 20px;
71 }
72
73 .form-group {
74 display: flex;
75 flex-direction: column;
76 gap: 8px;
77 }
78
79 .form-group label {
80 font-weight: 500;
81 color: #333;
82 text-align: left;
83 align-self: flex-start;
84 }
85
86 .form-group input[type="text"],
87 .form-group input[type="email"],
88 .form-group input[type="password"] {
89 padding: 12px 16px;
90 border: 1px solid #ddd;
91 border-radius: 4px;
92 font-size: 16px;
93 transition: border-color 0.3s;
94 }
95
96 .form-group input:focus {
97 border-color: #BA929A;
98 outline: none;
99 }
100
101 .form-group-inline {
102 display: flex;
103 justify-content: space-between;
104 align-items: center;
105 }
106
107 .checkbox-container {
108 display: flex;
109 align-items: center;
110 gap: 8px;
111 }
112
113 .checkbox-container input[type="checkbox"] {
114 width: 18px;
115 height: 18px;
116 cursor: pointer;
117 }
118
119 .forgot-password {
120 color: #BA929A;
121 text-decoration: none;
122 font-size: 14px;
123 }
124
125 .forgot-password:hover {
126 text-decoration: underline;
127 }
128
129 .auth-button {
130 background-color: #BA929A;
131 color: white;
132 border: none;
133 border-radius: 4px;
134 padding: 14px;
135 font-size: 16px;
136 font-weight: 500;
137 cursor: pointer;
138 transition: background-color 0.3s;
139 }
140
141 .auth-button:hover {
142 background-color: #BA929A;
143 }
144
145 .social-login {
146 margin-top: 20px;
147 text-align: center;
148 }
149
150 .social-login p {
151 color: #666;
152 margin-bottom: 15px;
153 position: relative;
154 }
155
156 .social-login p::before,
157 .social-login p::after {
158 content: "";
159 position: absolute;
160 top: 50%;
161 width: 30%;
162 height: 1px;
163 background-color: #ddd;
164 }
165
166 .social-login p::before {
167 left: 0;
168 }
169
170 .social-login p::after {
171 right: 0;
172 }
173
174 .social-icons {
175 display: flex;
176 justify-content: center;
177 gap: 20px;
178 }
179
180 .social-icon {
181 width: 40px;
182 height: 40px;
183 border-radius: 50%;
184 display: flex;
185 align-items: center;
186 justify-content: center;
187 color: white;
188 font-size: 12px;
189 cursor: pointer;
190 }
191
192 .social-icon.wechat {
193 background-color: #07c160;
194 }
195
196 .social-icon.weibo {
197 background-color: #e6162d;
198 }
199
200 .social-icon.qq {
201 background-color: #12b7f5;
202 }
203
204 .terms-container {
205 flex-direction: column;
206 align-items: flex-start;
207 }
208
209 .terms-link {
210 color: #BA929A;
211 text-decoration: none;
212 }
213
214 .terms-link:hover {
215 text-decoration: underline;
216 }
217
218 .error-message {
219 color: #e53e3e;
220 font-size: 14px;
221 margin-top: 4px;
222 }
223
224 /* Responsive adjustments */
225 @media (max-width: 576px) {
226 .auth-card {
227 box-shadow: none;
228 border-radius: 0;
229 }
230
231 .auth-content {
232 padding: 20px;
233 }
234
235 .form-group-inline {
236 flex-direction: column;
237 align-items: flex-start;
238 gap: 10px;
239 }
240
241 .social-icons {
242 flex-wrap: wrap;
243 }
244 }
245