-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSignUp_2.css
More file actions
193 lines (168 loc) · 4.04 KB
/
SignUp_2.css
File metadata and controls
193 lines (168 loc) · 4.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body Styling */
body {
margin: 0;
padding: 0;
background: linear-gradient(120deg, #003a74, #001a4d);
color: white;
font-family: "Baloo Bhai 2", sans-serif;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
/* Header Styling */
header {
display: flex;
justify-content: center;
align-items: center;
/* background: linear-gradient(90deg, #ffcc00, #ffaa00); */
background: linear-gradient(90deg, #FF6F61, #f97a6e);
/* color: black; */
color: white;
font-size: 2rem;
font-weight: bold;
padding: 15px;
margin-bottom: 20px;
overflow: hidden;
border-radius: 10px;
width: 100%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
@keyframes slide {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
.header-text {
display: inline-block;
animation: slide 5s linear infinite;
white-space: nowrap;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
/* Form Container Styling */
.form-container {
display: flex;
flex-direction: column;
border: none;
padding: 20px;
background: white;
border-radius: 15px;
overflow: auto;
width: 100%;
max-width: 400px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.form-container:hover {
transform: translateY(-10px);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}
.form-container h2 {
text-align: center;
font-size: 1.8rem;
font-weight: bold;
margin-bottom: 20px;
color: #003366;
}
/* Form Group Styling */
.form-container .form-group {
margin-bottom: 20px; /* Consistent spacing between form elements */
display: flex;
flex-direction: column; /* Stack label and input vertically */
align-items: flex-start;
}
.form-container label {
font-size: 1rem;
font-weight: bold;
color: #333;
margin-bottom: 5px; /* Add space between label and input */
}
.form-container input,
.form-container select {
width: 100%;
height: 40px;
padding: 5px 10px;
font-size: 1rem;
border: 1px solid #ddd;
border-radius: 5px;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-container input:focus,
.form-container select:focus {
border-color: #0066cc;
box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
outline: none;
}
/* Error Message Styling */
.form-container span {
color: red;
font-size: 0.9rem;
margin-top: 5px;
}
/* Gender Options Styling */
.form-container .gender-options {
display: flex;
column-gap: 10px;
margin-top: 10px;
}
.form-container .gender-options input[type="radio"] {
transform: scale(0.8);
}
/* Button Styling */
button {
background: linear-gradient(90deg, #0066cc, #003366);
color: white;
border: none;
border-radius: 5px;
font-size: 1rem;
padding: 10px;
cursor: pointer;
transition: transform 0.3s ease, background-color 0.3s ease;
}
button:hover {
background: linear-gradient(90deg, #005bb5, #002244);
transform: scale(1.05);
}
button:active {
transform: scale(0.98);
background: #004080;
}
/* Responsive Design */
@media (max-width: 768px) {
.form-container {
width: 90%;
}
.form-container h2 {
font-size: 1.6rem;
}
button {
padding: 12px;
font-size: 1rem;
}
}
@media (max-width: 480px) {
.form-container h2 {
font-size: 1.4rem;
}
button {
padding: 10px;
font-size: 0.9rem;
}
.form-container label {
font-size: 0.9rem;
}
.form-container input,
.form-container select {
font-size: 0.9rem;
}
}