[d565449] | 1 | .wrapper {
|
---|
| 2 | display: flex;
|
---|
[79a0317] | 3 | align-items: center; /* Vertically center content */
|
---|
| 4 | justify-content: center; /* Horizontally center content */
|
---|
| 5 | height: 100vh; /* Full viewport height */
|
---|
| 6 | background-color: #ffffff; /* Light background */
|
---|
| 7 | padding: 1rem;
|
---|
| 8 | gap: 2rem; /* Space between form and image */
|
---|
[d565449] | 9 | }
|
---|
| 10 |
|
---|
| 11 | .form {
|
---|
[79a0317] | 12 | padding: 2rem;
|
---|
| 13 | background-color: white;
|
---|
| 14 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
---|
| 15 | border-radius: 10px;
|
---|
| 16 | flex-basis: 100%;
|
---|
| 17 | max-width: 400px; /* Restrict form width */
|
---|
| 18 | text-align: center; /* Center text inside the form */
|
---|
[d565449] | 19 | }
|
---|
| 20 |
|
---|
| 21 | .form .heading {
|
---|
[79a0317] | 22 | font-size: 1.8rem;
|
---|
[d565449] | 23 | font-weight: bold;
|
---|
[79a0317] | 24 | color: #258de6;
|
---|
| 25 | margin-bottom: 1rem;
|
---|
[d565449] | 26 | }
|
---|
| 27 |
|
---|
| 28 | .form label {
|
---|
| 29 | display: block;
|
---|
[79a0317] | 30 | margin: 1.25rem 0 0.5rem 0;
|
---|
| 31 | font-size: 0.9rem;
|
---|
| 32 | font-weight: bold;
|
---|
| 33 | color: #555;
|
---|
[d565449] | 34 | }
|
---|
| 35 |
|
---|
| 36 | .form input {
|
---|
| 37 | height: 40px;
|
---|
| 38 | width: 100%;
|
---|
[79a0317] | 39 | padding: 10px 15px;
|
---|
[d565449] | 40 | background-color: #f1f9ff;
|
---|
| 41 | border: 2px solid #bce0fd;
|
---|
| 42 | border-radius: 8px;
|
---|
[79a0317] | 43 | font-size: 1rem;
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | .form input:focus {
|
---|
| 47 | outline: none;
|
---|
| 48 | border-color: #258de6;
|
---|
| 49 | background-color: #e6f4ff;
|
---|
[d565449] | 50 | }
|
---|
| 51 |
|
---|
| 52 | .form button {
|
---|
[79a0317] | 53 | height: 45px;
|
---|
[d565449] | 54 | width: 100%;
|
---|
| 55 | background-color: #258de6;
|
---|
| 56 | color: white;
|
---|
| 57 | text-transform: uppercase;
|
---|
| 58 | letter-spacing: 1px;
|
---|
| 59 | border: none;
|
---|
| 60 | margin-top: 1.5rem;
|
---|
[79a0317] | 61 | font-weight: bold;
|
---|
[d565449] | 62 | border-radius: 8px;
|
---|
[79a0317] | 63 | cursor: pointer;
|
---|
| 64 | transition: all 0.2s ease;
|
---|
[d565449] | 65 | }
|
---|
| 66 |
|
---|
[79a0317] | 67 | .form button:hover {
|
---|
| 68 | filter: brightness(90%);
|
---|
| 69 | }
|
---|
| 70 |
|
---|
| 71 | .form button:active {
|
---|
| 72 | transform: scale(0.96);
|
---|
| 73 | }
|
---|
| 74 |
|
---|
| 75 | .form p {
|
---|
| 76 | text-align: center;
|
---|
| 77 | margin-top: 1rem;
|
---|
| 78 | font-size: 0.9rem;
|
---|
| 79 | }
|
---|
| 80 |
|
---|
| 81 | .form p a {
|
---|
| 82 | color: #258de6;
|
---|
| 83 | text-decoration: none;
|
---|
| 84 | font-weight: bold;
|
---|
| 85 | }
|
---|
| 86 |
|
---|
| 87 | .form p a:hover {
|
---|
| 88 | text-decoration: underline;
|
---|
| 89 | }
|
---|
| 90 |
|
---|
| 91 | .illustration {
|
---|
| 92 | text-align: center; /* Center image container */
|
---|
| 93 | }
|
---|
| 94 |
|
---|
| 95 | .illustration img {
|
---|
| 96 | max-width: 100%;
|
---|
| 97 | height: auto;
|
---|
| 98 | border-radius: 10px;
|
---|
| 99 | display: block;
|
---|
| 100 | margin: 0 auto; /* Center the image */
|
---|
| 101 | }
|
---|
| 102 |
|
---|
| 103 | @media (min-width: 768px) {
|
---|
[d565449] | 104 | .wrapper {
|
---|
[79a0317] | 105 | flex-direction: row;
|
---|
| 106 | gap: 4rem; /* Space between form and image */
|
---|
[d565449] | 107 | }
|
---|
[79a0317] | 108 |
|
---|
[d565449] | 109 | .form {
|
---|
[79a0317] | 110 | flex-basis: 50%;
|
---|
[d565449] | 111 | }
|
---|
[79a0317] | 112 |
|
---|
| 113 | .illustration {
|
---|
| 114 | flex-basis: 50%;
|
---|
[d565449] | 115 | }
|
---|
[79a0317] | 116 |
|
---|
[d565449] | 117 | .illustration img {
|
---|
[79a0317] | 118 | max-height: 600px;
|
---|
| 119 | width: auto;
|
---|
[d565449] | 120 | }
|
---|
| 121 | }
|
---|
| 122 |
|
---|
[79a0317] | 123 | @media (max-width: 768px) {
|
---|
| 124 | .wrapper {
|
---|
| 125 | flex-direction: column;
|
---|
| 126 | text-align: center; /* Center all content in column layout */
|
---|
[d565449] | 127 | }
|
---|
| 128 |
|
---|
[79a0317] | 129 | .illustration {
|
---|
| 130 | margin-bottom: 2rem; /* Space between image and form */
|
---|
| 131 | }
|
---|
[d565449] | 132 | }
|
---|
| 133 |
|
---|
[79a0317] | 134 | .errorMessage,
|
---|
| 135 | .successMessage {
|
---|
| 136 | font-size: 0.9rem;
|
---|
| 137 | font-weight: bold;
|
---|
| 138 | text-align: center;
|
---|
| 139 | margin-top: 1rem;
|
---|
| 140 | padding: 10px;
|
---|
| 141 | border-radius: 8px;
|
---|
[d565449] | 142 | }
|
---|
| 143 |
|
---|
| 144 | .errorMessage {
|
---|
[79a0317] | 145 | color: #e74c3c;
|
---|
[d565449] | 146 | background-color: #fbeaea;
|
---|
| 147 | border: 1px solid #e74c3c;
|
---|
| 148 | }
|
---|
| 149 |
|
---|
| 150 | .successMessage {
|
---|
[79a0317] | 151 | color: #2ecc71;
|
---|
[d565449] | 152 | background-color: #ebf9f1;
|
---|
| 153 | border: 1px solid #2ecc71;
|
---|
| 154 | }
|
---|