| San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame] | 1 | .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 | } |
| San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 19 | .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 | } |
| San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame] | 24 | |
| 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 | |
| San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 64 | .form .register { |
| San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame] | 65 | 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 | |
| San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 77 | .form .register:hover { |
| San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame] | 78 | background-color: #0056b3; /* Darker blue */ |
| San3yuan | 6f2ed69 | 2025-04-16 20:24:49 +0800 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | .form .forget{ |
| 82 | border: none; |
| 83 | text-decoration: underline; |
| 84 | align-content: flex-end; |
| 85 | |
| 86 | } |
| 87 | |
| 88 | .form .forget:hover{ |
| 89 | border: none; |
| 90 | text-decoration: underline; |
| 91 | align-content: flex-end; |
| 92 | color: #007BFF; /* Blue */ |
| San3yuan | 2534d42 | 2025-04-08 21:43:18 +0800 | [diff] [blame] | 93 | } |