-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
146 lines (123 loc) · 3.16 KB
/
styles.css
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
/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-image: url('img/login-background.jpg'); /* Replace 'your-background-image.jpg' with the path to your image */
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 120vh;
padding: 20px;
}
.form-container {
background-color: transparent; /* Transparent background */
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); /* Box shadow */
padding: 20px;
max-width: 900px; /* Adjust width as needed */
width: 100%;
display: flex;
justify-content: space-between;
margin-left: 10%;
border-radius: 10px;
}
h1 {
color: white; /* Dark color for heading */
margin-top: 0; /* Remove default margin */
font-family: "Poppins", sans-serif;
font-weight: 700;
font-style: normal;
}
form {
flex: 1;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
width: calc(100% - 22px); /* Adjust for padding */
padding: 10px;
margin-bottom: 10px;
border: none;
border-radius: 5px;
background-color: transparent;
color: white; /* Text color */
box-shadow: 0px 0px 5px rgba(135, 206, 235, 0.7); /* Sky blue box shadow for input */
transition: border-color 0.3s ease; /* Added transition */
font-size: 16px;
}
textarea {
resize: vertical;
min-height: 100px;
}
input[type="submit"] {
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #007bff;
color: white;
font-size: 16px;
cursor: pointer;
font-weight: 500;
}
input[type="submit"]:hover {
background-image: linear-gradient(to bottom, #007bff, skyblue);
font-weight: bold;
color: white;
}
.image-container {
flex: 1;
padding-right: 20px;
}
.image-container img {
width: 27rem;
height: 25rem;
border-radius: 5px;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
border-color: skyblue; /* Added border color when focused */
}
input[type="text"]::placeholder, input[type="email"]::placeholder, input[type="tel"]::placeholder, textarea::placeholder {
color: white; /* Changed placeholder color */
font-size: 16px;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
.form-container {
margin-top: 20px;
flex-direction: column;
}
form {
margin-right: 0;
}
.image-container {
margin-top: 20px;
}
}
@media (max-width: 450px) {
.container {
height: auto; /* Removing the height */
padding: 10px;
margin-top: 0;
}
.form-container {
margin-left: 0;
margin-top: 20px;
}
.image-container {
padding-right: 0;
}
.image-container img {
width: 100%;
height: auto;
}
input[type="submit"] {
width: auto; /* Adjusting the width to fit content */
}
}