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;
|
| 10 | }
|
| 11 |
|
| 12 | .auth-title {
|
| 13 | color: #333;
|
| 14 | font-size: 2.5rem;
|
| 15 | margin-bottom: 2rem;
|
| 16 | text-align: center;
|
| 17 | }
|
| 18 |
|
| 19 | .auth-form-wrapper {
|
| 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);
|
| 26 | }
|
| 27 |
|
| 28 | .auth-form {
|
| 29 | display: flex;
|
| 30 | flex-direction: column;
|
| 31 | gap: 1rem;
|
| 32 | }
|
| 33 |
|
| 34 | .auth-form h2 {
|
| 35 | color: #333;
|
| 36 | text-align: center;
|
| 37 | margin-bottom: 1.5rem;
|
| 38 | }
|
| 39 |
|
| 40 | .form-group {
|
| 41 | display: flex;
|
| 42 | flex-direction: column;
|
| 43 | gap: 0.5rem;
|
| 44 | }
|
| 45 |
|
| 46 | .form-group input {
|
| 47 | padding: 0.8rem;
|
| 48 | border: 1px solid #ddd;
|
| 49 | border-radius: 4px;
|
| 50 | font-size: 1rem;
|
| 51 | }
|
| 52 |
|
| 53 | .form-group input:focus {
|
| 54 | outline: none;
|
| 55 | border-color: #007bff;
|
| 56 | }
|
| 57 |
|
| 58 | .auth-button {
|
| 59 | padding: 0.8rem;
|
| 60 | background-color: #007bff;
|
| 61 | color: white;
|
| 62 | border: none;
|
| 63 | border-radius: 4px;
|
| 64 | font-size: 1rem;
|
| 65 | cursor: pointer;
|
| 66 | transition: background-color 0.3s;
|
| 67 | }
|
| 68 |
|
| 69 | .auth-button:hover {
|
| 70 | background-color: #0056b3;
|
| 71 | }
|
| 72 |
|
| 73 | .auth-button:disabled {
|
| 74 | background-color: #cccccc;
|
| 75 | cursor: not-allowed;
|
| 76 | }
|
| 77 |
|
| 78 | .auth-switch {
|
| 79 | display: flex;
|
| 80 | justify-content: center;
|
| 81 | align-items: center;
|
| 82 | gap: 0.5rem;
|
| 83 | margin-top: 1rem;
|
| 84 | font-size: 0.9rem;
|
| 85 | color: #666;
|
| 86 | }
|
| 87 |
|
| 88 | .switch-button {
|
| 89 | background: none;
|
| 90 | border: none;
|
| 91 | color: #007bff;
|
| 92 | cursor: pointer;
|
| 93 | text-decoration: underline;
|
| 94 | font-size: 0.9rem;
|
| 95 | padding: 0;
|
| 96 | }
|
| 97 |
|
| 98 | .switch-button:hover {
|
| 99 | color: #0056b3;
|
| 100 | }
|
| 101 |
|
| 102 | .error-message {
|
| 103 | color: #dc3545;
|
| 104 | background-color: #f8d7da;
|
| 105 | padding: 0.5rem;
|
| 106 | border-radius: 4px;
|
| 107 | text-align: center;
|
| 108 | margin-bottom: 1rem;
|
| 109 | } |