-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
90 lines (90 loc) · 1.96 KB
/
style.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
/* Basic Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f7f7f7;
}
/* Form Container with Border */
.form-container {
width: 100%;
max-width: 500px;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
border: 1px solid #ddd;
/* Added border */
}
.form-container h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
/* Form Elements */
.form-group {
display: flex;
flex-direction: column;
margin-bottom: 15px;
}
.form-group label {
margin-bottom: 5px;
color: #666;
font-weight: bold;
}
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="date"], .form-group input[type="password"], .form-group select {
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
}
/* Placeholder Styling */
.form-group input::placeholder, .form-group select option[value=""][disabled] {
font-style: italic;
color: #aaa;
}
/* Name Group */
.name-group {
display: flex;
gap: 10px;
}
.name-group input[type="text"] {
width: 100%;
}
/* Button Group */
.button-group {
display: flex;
gap: 10px;
}
/* Submit and Reset Buttons */
.submit-btn, .reset-btn {
flex: 1;
padding: 10px;
font-size: 16px;
font-weight: bold;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.submit-btn {
background-color: #6a4ef5;
color: #fff;
}
.submit-btn:hover {
background-color: #573fca;
}
.reset-btn {
background-color: #f44336;
color: #fff;
}
.reset-btn:hover {
background-color: #d32f2f;
}