-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
84 lines (72 loc) · 1.62 KB
/
style.css
File metadata and controls
84 lines (72 loc) · 1.62 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
/* reset & variables */
:root {
--primary: #ff6b35;
--primary-hover: #e85d2a;
--success: #10b981;
--error: #ef4444;
--bg-light: #fff5f2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background-color: var(--bg-light);
font-family: "Poppins", sans-serif;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
/* container */
.container {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
padding: 30px;
overflow: hidden;
}
h1 { text-align: center; color: #333; margin-bottom: 1.2rem; }
/* form fields */
.form-group { margin-bottom: 20px; position: relative; }
label {
display: block;
margin-bottom: 5px;
color: #555;
font-weight: 600;
}
input {
border: 2px solid #f0f0f0;
border-radius: 4px;
display: block;
width: 100%;
padding: 10px;
font-size: 14px;
transition: border-color 0.3s;
}
input:focus { outline: none; border-color: var(--primary); }
small {
visibility: hidden;
position: absolute;
bottom: -18px;
left: 0;
font-size: 12px;
}
/* submit button */
button {
cursor: pointer;
background: var(--primary);
border: none;
color: white;
display: block;
font-size: 1rem;
margin-top: 20px;
padding: 12px;
border-radius: 4px;
width: 100%;
transition: background-color 0.3s;
}
button:hover { background-color: var(--primary-hover); }
/* validation states */
.form-group.error input { border-color: var(--error); }
.form-group.success input { border-color: var(--success); }
.form-group.error small { visibility: visible; color: var(--error); }