-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
84 lines (73 loc) · 1.42 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
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
form {
background-color: #fff;
padding: 20px 40px;
border-radius: 8px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #333;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type="radio"] {
margin-right: 10px;
}
input[type="submit"] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 12px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #45a049;
}
input:focus {
border-color: #4CAF50;
outline: none;
box-shadow: 0px 0px 5px rgba(76, 175, 80, 0.3);
}
label[for="male"],
label[for="female"] {
display: inline;
font-weight: normal;
}
input[type="radio"] + label {
margin-right: 20px;
}
/* Responsive adjustments */
@media (max-width: 480px) {
form {
padding: 15px;
}
input[type="submit"] {
font-size: 14px;
}
}