Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 1 | /* src/components/AuthForm.css */
|
| 2 | .auth-container {
|
| 3 | display: flex;
|
| 4 | flex-direction: column;
|
| 5 | align-items: center;
|
| 6 | justify-content: center;
|
| 7 | min-height: 100vh;
|
| 8 | background-color: #f5f5f5;
|
| 9 | padding: 20px;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 10 | }
|
| 11 |
|
| 12 | .auth-title {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 13 | color: #333;
|
| 14 | font-size: 2.5rem;
|
| 15 | margin-bottom: 2rem;
|
| 16 | text-align: center;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 17 | }
|
| 18 |
|
| 19 | .auth-form-wrapper {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 20 | width: 100%;
|
| 21 | max-width: 400px;
|
| 22 | background: white;
|
| 23 | padding: 2rem;
|
| 24 | border-radius: 8px;
|
| 25 | box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 26 | }
|
| 27 |
|
| 28 | .auth-form {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 29 | display: flex;
|
| 30 | flex-direction: column;
|
| 31 | gap: 1rem;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 32 | }
|
| 33 |
|
| 34 | .auth-form h2 {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 35 | color: #333;
|
| 36 | text-align: center;
|
| 37 | margin-bottom: 1.5rem;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 38 | }
|
| 39 |
|
| 40 | .form-group {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 41 | display: flex;
|
| 42 | flex-direction: column;
|
| 43 | gap: 0.5rem;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 44 | }
|
| 45 |
|
| 46 | .form-group input {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 47 | padding: 0.8rem;
|
| 48 | border: 1px solid #ddd;
|
| 49 | border-radius: 4px;
|
| 50 | font-size: 1rem;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 51 | width: 100%;
|
| 52 | box-sizing: border-box; /* 确保padding不会影响宽度 */
|
| 53 | height: 42px; /* 固定高度 */
|
| 54 | }
|
| 55 |
|
| 56 | .form-group input:focus {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 57 | outline: none;
|
| 58 | border-color: #007bff;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 59 | }
|
| 60 |
|
| 61 | .auth-button {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 62 | padding: 0.8rem;
|
| 63 | background-color: #007bff;
|
| 64 | color: white;
|
| 65 | border: none;
|
| 66 | border-radius: 4px;
|
| 67 | font-size: 1rem;
|
| 68 | cursor: pointer;
|
| 69 | transition: background-color 0.3s;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 70 | height: 42px; /* 与输入框高度一致 */
|
| 71 | }
|
| 72 |
|
| 73 | .auth-button:hover {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 74 | background-color: #0056b3;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 75 | }
|
| 76 |
|
| 77 | .auth-button:disabled {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 78 | background-color: #cccccc;
|
| 79 | cursor: not-allowed;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 80 | }
|
| 81 |
|
| 82 | .auth-switch {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 83 | display: flex;
|
| 84 | justify-content: center;
|
| 85 | align-items: center;
|
| 86 | gap: 0.5rem;
|
| 87 | margin-top: 1rem;
|
| 88 | font-size: 0.9rem;
|
| 89 | color: #666;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 90 | }
|
| 91 |
|
| 92 | .switch-button {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 93 | background: none;
|
| 94 | border: none;
|
| 95 | color: #007bff;
|
| 96 | cursor: pointer;
|
| 97 | text-decoration: underline;
|
| 98 | font-size: 0.9rem;
|
| 99 | padding: 0;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 100 | }
|
| 101 |
|
| 102 | .switch-button:hover {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 103 | color: #0056b3;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 104 | }
|
| 105 |
|
| 106 | .error-message {
|
Akane1217 | 65b61a7 | 2025-05-17 13:52:25 +0800 | [diff] [blame] | 107 | color: #dc3545;
|
| 108 | background-color: #f8d7da;
|
| 109 | padding: 0.5rem;
|
| 110 | border-radius: 4px;
|
| 111 | text-align: center;
|
| 112 | margin-bottom: 1rem;
|
22301080 | a93bebb | 2025-05-27 19:48:11 +0800 | [diff] [blame^] | 113 | } |