aboutsummaryrefslogtreecommitdiff
path: root/src/web/components/login/Login.css
blob: 1be8f84b8ac9a6a36744efc9dd21093bc7420f9e (plain)
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
.screenCenter {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--login-z-index);

    position: fixed;
    inset: 0;
    visibility: hidden;
}

.darken {
    z-index: calc(var(--login-z-index) - 1);
}
.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 1 100%;

    position: relative;
    padding: 4em 2em 2em;
    margin: 0em 3em;
    max-width: 25em;

    color: var(--black-98);
    visibility: visible;
    border-radius: 2em;

    translate: 100vw;
    transition: translate var(--transition-time) ease-in-out;
}
.loginActive {
    translate: initial;
    visibility: initial;
}

.formContainer {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.login .formContainer h1 {
    font-size: 2em;
    font-weight: bolder;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}
.login .formContainer h2 {
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.login .formContainer p {
    text-align: center;
    line-height: 1.25em;
}

.promptContainer {
    min-height: 5em;
    display: flex;
    justify-content: space-between;
}

.login .formContainer button {
    height: 2.25rem;
    font-size: 1.25em;
    margin-bottom: 1.25rem;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 2.5rem;
    font-weight: 600;
    cursor: pointer;
}

.loading {
    font-size: 1.65rem;
    filter: invert(95%);
}

.formContainer a {
    display: block;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
    min-height: 3em;
    color: inherit;
}

.promptContainer input {
    margin: 0 0.25em 0 0;
}

.cardError {
    display: none;
    position: absolute;
    inset: 0 0 auto 0;
    min-height: 2em;
    margin: 1em;

    justify-content: center;
    align-items: center;

    color: white;
    border-radius: 2em;
    font-weight: normal;
    font-style: italic;
    text-transform: uppercase;
}
.cardErrorActive {
    display: flex;
}