1 | * {
|
---|
2 | margin: 0;
|
---|
3 | padding: 0;
|
---|
4 | -webkit-box-sizing: border-box;
|
---|
5 | box-sizing: border-box;
|
---|
6 | font-family: sans-serif;
|
---|
7 | }
|
---|
8 |
|
---|
9 | .illustration img {
|
---|
10 | max-height: 500px;
|
---|
11 | width: auto;
|
---|
12 | }
|
---|
13 |
|
---|
14 | .wrapper {
|
---|
15 | display: flex;
|
---|
16 | justify-content: flex-end; /* Move content towards the right */
|
---|
17 | align-items: center; /* Center content vertically */
|
---|
18 | height: 100vh;
|
---|
19 | margin-left: 30%;
|
---|
20 | padding: 2rem;
|
---|
21 | }
|
---|
22 |
|
---|
23 |
|
---|
24 |
|
---|
25 | .form {
|
---|
26 | padding: 2rem;
|
---|
27 | display: flex;
|
---|
28 | flex-direction: column; /* Stack form elements vertically */
|
---|
29 | align-items: center; /* Center form elements horizontally */
|
---|
30 | justify-content: center; /* Vertically center the form */
|
---|
31 | background-color: #fff;
|
---|
32 | border-radius: 8px; /* Rounded corners for the form */
|
---|
33 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow to form */
|
---|
34 | width: 100%;
|
---|
35 | max-width: 400px; /* Restrict the form width for better appearance */
|
---|
36 | }
|
---|
37 |
|
---|
38 | .form .heading {
|
---|
39 | font-size: 1.8rem;
|
---|
40 | font-weight: bold;
|
---|
41 | text-align: center;
|
---|
42 | margin-bottom: 1.5rem; /* Spacing between heading and form */
|
---|
43 | }
|
---|
44 |
|
---|
45 | .or {
|
---|
46 | margin-top: 1em;
|
---|
47 | text-align: center;
|
---|
48 | font-weight: bold;
|
---|
49 | color: #666;
|
---|
50 | }
|
---|
51 |
|
---|
52 | .form label {
|
---|
53 | display: block;
|
---|
54 | margin: 1.25rem 0 1rem 0;
|
---|
55 | font-size: 0.95rem;
|
---|
56 | color: #333;
|
---|
57 | }
|
---|
58 |
|
---|
59 | .form input {
|
---|
60 | height: 40px;
|
---|
61 | width: 100%;
|
---|
62 | max-width: 350px; /* Slightly larger max-width */
|
---|
63 | padding: 15px;
|
---|
64 | background-color: #f1f9ff;
|
---|
65 | border: 2px solid #bce0fd;
|
---|
66 | border-radius: 8px;
|
---|
67 | box-sizing: border-box;
|
---|
68 | font-size: 1rem; /* Make input text a bit larger */
|
---|
69 | }
|
---|
70 |
|
---|
71 | .form button {
|
---|
72 | height: 40px;
|
---|
73 | width: 100%;
|
---|
74 | max-width: 350px;
|
---|
75 | margin-top: 1.5rem;
|
---|
76 | background-color: #258de6;
|
---|
77 | color: white;
|
---|
78 | text-transform: uppercase;
|
---|
79 | letter-spacing: 1px;
|
---|
80 | border: none;
|
---|
81 | font-weight: bold;
|
---|
82 | border-radius: 8px;
|
---|
83 | font-size: 1rem; /* Increase font size for better readability */
|
---|
84 | }
|
---|
85 |
|
---|
86 | .socialButtons {
|
---|
87 | display: flex;
|
---|
88 | flex-direction: column; /* Stack social buttons vertically */
|
---|
89 | align-items: center; /* Center them horizontally */
|
---|
90 | }
|
---|
91 |
|
---|
92 | .socialButton {
|
---|
93 | display: inline-flex; /* Align text and image inline */
|
---|
94 | align-items: center; /* Vertically center content */
|
---|
95 | justify-content: flex-start; /* Align items to the left */
|
---|
96 | padding: 10px 15px;
|
---|
97 | border: none;
|
---|
98 | border-radius: 8px;
|
---|
99 | cursor: pointer;
|
---|
100 | font-size: 0.8rem;
|
---|
101 | font-weight: bold;
|
---|
102 | transition: background-color 0.2s, transform 0.2s;
|
---|
103 | width: 100%;
|
---|
104 | max-width: 350px; /* Limit max width */
|
---|
105 | }
|
---|
106 |
|
---|
107 | .socialButton img {
|
---|
108 | width: 20px;
|
---|
109 | height: 20px;
|
---|
110 | margin-right: 10px;
|
---|
111 | vertical-align: middle;
|
---|
112 | }
|
---|
113 |
|
---|
114 | .socialButton:hover {
|
---|
115 | filter: brightness(95%);
|
---|
116 | }
|
---|
117 |
|
---|
118 | .socialButton:active {
|
---|
119 | transform: scale(0.98);
|
---|
120 | }
|
---|
121 |
|
---|
122 | .socialButton:nth-child(2) {
|
---|
123 | background-color: #333; /* GitHub button */
|
---|
124 | color: white;
|
---|
125 | }
|
---|
126 |
|
---|
127 | .socialButton:nth-child(1) {
|
---|
128 | background-color: #ffffff; /* Google button */
|
---|
129 | color: #000000;
|
---|
130 | box-shadow: 1px 2px #2f2525;
|
---|
131 | }
|
---|
132 |
|
---|
133 | @media (min-width: 542px) {
|
---|
134 | body {
|
---|
135 | display: flex;
|
---|
136 | justify-content: center;
|
---|
137 | }
|
---|
138 |
|
---|
139 | .wrapper {
|
---|
140 | display: flex;
|
---|
141 | height: 100vh;
|
---|
142 | align-items: center;
|
---|
143 | justify-content: flex-end; /* Keep the form to the right */
|
---|
144 | padding: 2rem;
|
---|
145 | max-width: 1100px;
|
---|
146 | }
|
---|
147 |
|
---|
148 | .form {
|
---|
149 | flex-basis: auto;
|
---|
150 | align-items: center; /* Center form in larger screens */
|
---|
151 | width: 100%;
|
---|
152 | max-width: 400px; /* Keep form max width consistent */
|
---|
153 | }
|
---|
154 |
|
---|
155 | .form input {
|
---|
156 | width: 100%; /* Ensures the input expands fully */
|
---|
157 | max-width: 350px;
|
---|
158 | }
|
---|
159 |
|
---|
160 | .illustration{
|
---|
161 | margin-right: 40%;
|
---|
162 | }
|
---|
163 |
|
---|
164 | .illustration img {
|
---|
165 | max-width: 100%;
|
---|
166 | height: auto;
|
---|
167 | }
|
---|
168 | }
|
---|
169 |
|
---|
170 | @media (max-width: 680px) {
|
---|
171 | .wrapper {
|
---|
172 | flex-direction: column; /* Stack form and illustration vertically */
|
---|
173 | align-items: center; /* Center content horizontally */
|
---|
174 | padding: 1rem;
|
---|
175 | }
|
---|
176 |
|
---|
177 | .illustration {
|
---|
178 | display: none; /* Hide the illustration on mobile */
|
---|
179 | }
|
---|
180 |
|
---|
181 | .form {
|
---|
182 | width: 100%; /* Full width for mobile */
|
---|
183 | align-items: center; /* Center form elements horizontally */
|
---|
184 | }
|
---|
185 |
|
---|
186 | .form input,
|
---|
187 | .form button,
|
---|
188 | .socialButton {
|
---|
189 | width: 100%; /* Full width for mobile */
|
---|
190 | max-width: 300px; /* Optional: Limit max width */
|
---|
191 | }
|
---|
192 | }
|
---|
193 |
|
---|
194 | button:hover {
|
---|
195 | filter: brightness(95%);
|
---|
196 | }
|
---|
197 |
|
---|
198 | button:active {
|
---|
199 | transform: scale(0.98);
|
---|
200 | }
|
---|
201 |
|
---|
202 | .error {
|
---|
203 | color: red;
|
---|
204 | font-size: 0.9rem;
|
---|
205 | margin-top: 0.5rem;
|
---|
206 | }
|
---|