-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
135 lines (134 loc) · 2.64 KB
/
style.css
File metadata and controls
135 lines (134 loc) · 2.64 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
@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');
:root{
--accent-color: #eed049;
--base-color: #303030;
--text-color: #FFF;
--input-text-color: #303030;
--input-color: #F3F0FF;
}
*{
margin: 0;
padding: 0;
}
html{
font-family: Poppins, Segoe UI, sans-serif;
font-size: 12pt;
color: var(--text-color);
text-align: center;
}
body{
background-color: var(--base-color);
background-size: cover;
background-position: right;
overflow: hidden;
}
.wrapper{
box-sizing: border-box;
background-color: var(--base-color);
padding: 10px;
border-radius: 0 0 0 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
h1{
font-size: 2.5rem;
font-weight: 900;
text-transform: uppercase;
}
form{
margin-top: 20px;
margin-bottom: 50px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
form > div{
width: 100%;
display: flex;
justify-content: center;
}
form label{
flex-shrink: 0;
height: 50px;
width: 50px;
background-color: var(--accent-color);
fill: var(--base-color);
color: var(--base-color);
border-radius: 10px 0 0 10px;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
font-weight: 500;
}
form input{
box-sizing: border-box;
flex-grow: 1;
min-width: 0;
height: 50px;
padding: 1em;
font: inherit;
border-radius: 0 10px 10px 0;
border: 2px solid var(--input-color);
border-left: none;
background-color: var(--input-color);
transition: 150ms ease;
}
form input:hover{
border-color: var(--accent-color);
}
form input:focus{
outline: none;
border-color: var(--text-color);
}
div:has(input:focus) > label{
background-color: var(--text-color);
}
form input::placeholder{
color: var(--input-text-color);
}
form button{
margin-top: 10px;
border: none;
border-radius: 1000px;
padding: .85em 4em;
background-color: var(--accent-color);
color: var(--base-color);
font: inherit;
font-weight: 600;
text-transform: uppercase;
cursor: pointer;
transition: 150ms ease;
}
form button:hover{
background-color: var(--text-color);
}
form button:focus{
outline: none;
background-color: var(--text-color);
}
a{
text-decoration: none;
color: var(--accent-color);
}
a:hover{
text-decoration: underline;
}
@media(max-width: 1100px){
.wrapper{
width: min(600px, 100%);
border-radius: 0;
}
}
form div.incorrect label{
background-color: #f06272;
}
form div.incorrect input{
border-color: #f06272;
}
#error-message{
color:#f06272;
}