-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.css
119 lines (104 loc) · 2.21 KB
/
default.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
:root {
--input-linear: linear-gradient(120deg, #00001F, #17F2AD);
--input-error: red;
--button-linear: linear-gradient(120deg, #00001F, #17F2AD, #00001F);
--button-disabled: #acacac;
--white: #fff;
--black: #303030;
--gray: #929292;
--light-gray: #cfcfcf;
--border-height: 1px;
}
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.login {
height: 100vh;
background: var(--input-linear);
display: flex;
justify-content: center;
align-items: center;
}
.login__container {
min-height: 400px;
width: 300px;
background-color: var(--white);
box-sizing: border-box;
padding: 32px;
border-radius: 8px;
display: flex;
flex-direction: column;
align-items: center;
}
.login__title {
margin-bottom: 32px;
color: var(--black);
}
.login__form {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.login__input {
height: 48px;
width: 100%;
box-sizing: border-box;
padding-left: 8px;
border: unset;
outline: none;
}
.login__input-border {
height: var(--border-height);
width: 100%;
margin-bottom: 16px;
background-color: var(--light-gray);
transition: .3s ease-in-out;
}
.login__input-border::after {
content: '';
display: block;
height: var(--border-height);
width: 0;
margin-bottom: 16px;
background: var(--input-linear);
transition: .3s ease-in-out;
}
.login__input:focus + .login__input-border::after {
width: 100%;
}
.login__input-border.error {
background: var(--input-error);
}
.login__input-border.error::after {
background: var(--input-error);
}
.login__submit {
height: 48px;
width: 100%;
outline: none;
background: var(--button-linear);
background-size: 200%;
margin-bottom: 32px;
color: var(--white);
font-size: 16px;
font-weight: bold;
border: unset;
border-radius: 4px;
cursor: pointer;
transition: .5s ease-in-out;
}
.login__submit:disabled {
background: var(--button-disabled);
cursor: not-allowed;
}
.login__submit:hover {
background-position: right;
}
.login__reset {
font-size: 12px;
color: var(--gray);
text-decoration: none;
}