|
43 | 43 | } |
44 | 44 |
|
45 | 45 | .login-form input { |
46 | | - width: 340px; |
| 46 | + width: 100%; /* 🔥 고정 340px 제거 */ |
| 47 | + max-width: 420px; /* ✅ 원하면 제한만 두기 */ |
47 | 48 | padding: 0.75rem 1rem; |
48 | 49 | font-size: 0.9rem; |
49 | 50 | border: 1px solid #ccc; |
|
52 | 53 | display: block; |
53 | 54 | } |
54 | 55 |
|
| 56 | + |
55 | 57 | .login-form button { |
56 | | - width: 340px; |
| 58 | + width: 300px; |
57 | 59 | padding: 0.85rem; |
58 | 60 | font-size: 0.9rem; |
59 | 61 | background-color: #6a1b9a; |
|
114 | 116 | .social-buttons { |
115 | 117 | display: flex; |
116 | 118 | justify-content: center; |
117 | | - gap: 1rem; |
118 | | - margin-top: 1rem; |
| 119 | + gap: 0.6rem; |
| 120 | + width: 100%; |
| 121 | + max-width: 325px; |
119 | 122 | } |
120 | 123 |
|
121 | 124 | .social-button { |
122 | | - width: 24px; |
123 | | - height: 48px; |
124 | | - padding: 0; |
125 | | - border: none; |
126 | | - border-radius: 12px; |
127 | | - background-color: #f5f5f5; |
| 125 | + flex: 1; |
128 | 126 | display: flex; |
129 | 127 | align-items: center; |
130 | 128 | justify-content: center; |
| 129 | + gap: 0.5rem; |
| 130 | + padding: 0.65rem; |
| 131 | + font-size: 0.95rem; |
| 132 | + font-weight: 500; |
| 133 | + border-radius: 6px; |
| 134 | + border: 1px solid #ddd; |
| 135 | + background-color: #fcfcfc; /* 더 밝게 */ |
131 | 136 | cursor: pointer; |
132 | | - box-shadow: 0 2px 4px rgba(0,0,0,0.1); |
133 | | - transition: transform 0.2s ease; |
134 | | -} |
135 | | - |
136 | | -.social-button:hover { |
137 | | - transform: translateY(-2px); |
| 137 | + transition: background-color 0.2s; |
138 | 138 | } |
139 | 139 |
|
140 | 140 | .social-button img { |
141 | | - width: 30px; |
142 | | - height: 30px; |
| 141 | + width: 24px; |
| 142 | + height: 24px; |
143 | 143 | object-fit: contain; |
144 | 144 | display: inline-block; |
145 | 145 | vertical-align: middle; |
146 | 146 | } |
147 | 147 |
|
| 148 | +.social-button:hover { |
| 149 | + background-color: #ededed; |
| 150 | +} |
| 151 | + |
| 152 | +.social-button.google, |
148 | 153 | .social-button.github { |
149 | | - background-color: #f5f5f5; /* 라이트 모드용 */ |
| 154 | + background-color: #fcfcfc; |
150 | 155 | } |
151 | 156 |
|
152 | 157 |
|
|
207 | 212 | color: #ccc; |
208 | 213 | } |
209 | 214 |
|
210 | | - |
211 | | -/* 회원가입 스타일 */ |
212 | 215 | .login-logo { |
213 | 216 | width: 150px; |
214 | 217 | height: auto; |
215 | 218 | display: block; |
216 | 219 | margin: 0 auto 0.5rem; |
217 | 220 | } |
| 221 | +.login-password-wrapper { |
| 222 | + position: relative; |
| 223 | + width: 100% !important; |
| 224 | + max-width: 420px; /* 적절한 최대 너비 */ |
| 225 | + margin: 0 auto; /* 중앙 정렬 */ |
| 226 | +} |
| 227 | + |
| 228 | +.login-password-wrapper input { |
| 229 | + width: 100%; /* 부모(.login-password-wrapper)에 맞춤 */ |
| 230 | + height: 42px; |
| 231 | + padding: 0.75rem 2.5rem 0.75rem 1rem; |
| 232 | + box-sizing: border-box; |
| 233 | + font-size: 0.9rem; |
| 234 | +} |
| 235 | + |
| 236 | + |
| 237 | +.login-toggle-password-btn { |
| 238 | + position: absolute; |
| 239 | + top: 50%; |
| 240 | + right: 12px; |
| 241 | + transform: translateY(-50%); |
| 242 | + cursor: pointer; |
| 243 | + font-size: 1.1rem; |
| 244 | + color: #888; |
| 245 | + display: flex; |
| 246 | + align-items: center; |
| 247 | + justify-content: center; |
| 248 | + width: 24px; |
| 249 | + height: 24px; |
| 250 | +} |
| 251 | + |
218 | 252 |
|
| 253 | +/* 회원가입 스타일 */ |
219 | 254 | .signup-container { |
220 | 255 | display: flex; |
221 | 256 | flex-direction: column; |
222 | 257 | align-items: center; |
223 | 258 | justify-content: center; |
224 | | - padding: 2rem 1rem; |
| 259 | + padding: 0 1rem 2rem; |
225 | 260 | min-height: 100vh; |
226 | 261 | background-color: #ffffff; |
| 262 | + margin-top: -2rem; /* 폼 전체를 위로 */ |
227 | 263 | } |
228 | 264 |
|
229 | 265 | .signup-title { |
230 | | - font-size: 1.7rem; |
| 266 | + font-size: 1.4rem; |
231 | 267 | font-weight: bold; |
232 | 268 | text-align: center; |
233 | 269 | margin-bottom: 0.2rem; |
234 | 270 | } |
235 | 271 |
|
236 | 272 | .signup-subtitle { |
237 | 273 | text-align: center; |
238 | | - font-size: 1rem; |
| 274 | + font-size: 0.9rem; |
239 | 275 | color: #666; |
240 | | - margin-bottom: 1.5rem; |
| 276 | + margin-bottom: 1.7rem; |
| 277 | + margin-top: 0.2rem; |
241 | 278 | } |
242 | 279 |
|
243 | 280 | .signup-form { |
244 | 281 | width: 100%; |
245 | | - max-width: 325px; |
| 282 | + max-width: 300px; |
246 | 283 | display: flex; |
247 | 284 | flex-direction: column; |
248 | 285 | gap: 0.6rem; |
249 | 286 | } |
250 | 287 |
|
251 | 288 | .signup-form label { |
252 | | - font-size: 1rem; |
253 | | - font-weight: 600; |
254 | | - margin-bottom: 0.05rem; |
| 289 | + font-size: 0.85rem; |
| 290 | + font-weight: 500; |
255 | 291 | display: block; |
256 | 292 | } |
257 | 293 |
|
|
264 | 300 | border: 1px solid #ccc; |
265 | 301 | border-radius: 5px; |
266 | 302 | box-sizing: border-box; |
| 303 | + height: 42px; |
| 304 | + |
267 | 305 | } |
268 | 306 |
|
269 | | -.form-guide { |
270 | | - font-size: 0.9rem; |
| 307 | +/* 공통 안내문 스타일 */ |
| 308 | +.password-rules, |
| 309 | +.email-guide, |
| 310 | +.confirm-password { |
| 311 | + font-size: 0.8rem; |
271 | 312 | color: #999; |
272 | | - margin-top: 0.1rem; |
273 | | - line-height: 1.3; |
| 313 | + margin-bottom: 0.5rem; |
| 314 | + line-height: 1.6; |
| 315 | + list-style: none; |
| 316 | + padding-left: 0; |
| 317 | +} |
| 318 | + |
| 319 | +/* 성공 시 */ |
| 320 | +.valid { |
| 321 | + color: green; |
274 | 322 | } |
275 | 323 |
|
276 | | -.signup-check { |
| 324 | +/* 실패 시 */ |
| 325 | +.invalid { |
| 326 | + color: red; |
| 327 | +} |
| 328 | + |
| 329 | +.signup-benefit { |
277 | 330 | display: flex; |
278 | 331 | align-items: flex-start; |
279 | 332 | gap: 0.5rem; |
280 | | - font-size: 0.7rem; |
| 333 | + font-size: 0.4rem; |
| 334 | + color: #444; |
281 | 335 | line-height: 1.4; |
282 | | - margin-top: 0.6rem; |
283 | | - width: 100%; |
| 336 | + justify-content: center; |
284 | 337 | } |
285 | 338 |
|
286 | | -.signup-check input[type="checkbox"] { |
287 | | - margin-top: 0.2rem; |
| 339 | +.signup-benefit input[type="checkbox"] { |
288 | 340 | flex-shrink: 0; |
289 | 341 | } |
290 | 342 |
|
| 343 | +.benefits-label { |
| 344 | + font-size: 0.6rem !important; |
| 345 | + color: #444; |
| 346 | +} |
| 347 | + |
291 | 348 | .signup-check label { |
292 | 349 | flex: 1; |
293 | 350 | line-height: 1.4; |
294 | | - font-size: 0.75rem; |
| 351 | + font-size: 0.7rem; |
295 | 352 | color: #444; |
296 | 353 | } |
| 354 | +.signup-benefit input[type="checkbox"] { |
| 355 | + appearance: none; |
| 356 | + width: 16px; |
| 357 | + height: 16px; |
| 358 | + border: 1px solid #aaa; |
| 359 | + border-radius: 3px; |
| 360 | + background-color: #fff; |
| 361 | + cursor: pointer; |
| 362 | + position: relative; |
| 363 | +} |
| 364 | + |
| 365 | +.signup-benefit input[type="checkbox"]:checked { |
| 366 | + background-color: #8e24aa !important; |
| 367 | + border-color: #8e24aa !important; |
| 368 | +} |
| 369 | + |
| 370 | +.signup-benefit input[type="checkbox"]::after { |
| 371 | + content: ""; |
| 372 | + position: absolute; |
| 373 | + width: 4px; |
| 374 | + height: 8px; |
| 375 | + border: solid white; |
| 376 | + border-width: 0 2px 2px 0; |
| 377 | + transform: rotate(45deg); |
| 378 | + top: 2px; |
| 379 | + left: 5px; |
| 380 | + display: none; |
| 381 | +} |
| 382 | + |
| 383 | +.signup-benefit input[type="checkbox"]:checked::after { |
| 384 | + display: block; |
| 385 | +} |
| 386 | + |
297 | 387 |
|
298 | 388 | .signup-button { |
299 | 389 | background-color: #8e24aa; |
300 | 390 | color: white; |
301 | | - padding: 0.85rem; |
| 391 | + padding: 0.75rem; |
302 | 392 | font-size: 0.95rem; |
303 | 393 | font-weight: 600; |
304 | 394 | border: none; |
305 | 395 | border-radius: 6px; |
306 | 396 | cursor: pointer; |
307 | | - margin-top: 0.4rem; |
| 397 | + margin-top: 1.3rem; |
308 | 398 | } |
309 | 399 |
|
310 | 400 | .signup-button:hover { |
|
419 | 509 | font-size: 1.2rem; |
420 | 510 | } |
421 | 511 |
|
| 512 | +.logo-wrapper { |
| 513 | + display: flex; |
| 514 | + justify-content: center; |
| 515 | + margin-bottom: 1rem; |
| 516 | +} |
| 517 | + |
| 518 | +.signup-logo { |
| 519 | + max-width: 120px; |
| 520 | + height: auto; |
| 521 | +} |
0 commit comments