12.tna {3 position: relative;4 width: 320px;5 padding: 26px 18px 12px;6 box-sizing: border-box;7 border-radius: 2px;8 background: #fffdf6;9 box-shadow: 0 1px 1px rgb(0 0 0 / 0.08), 0 16px 26px -14px rgb(60 45 20 / 0.45);10 color: #2a2620;11 font-family: ui-monospace, SFMono-Regular, Menlo, monospace;12 transform: rotate(-1.2deg);13 transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;14}15.tna:focus-within {16 box-shadow: 0 0 0 2px #2a2620, 0 22px 30px -14px rgb(60 45 20 / 0.5);17 transform: rotate(0) translateY(-3px);18}19.tna__tape {20 position: absolute;21 top: -10px;22 left: 50%;23 width: 92px;24 height: 22px;25 margin-left: -46px;26 background: rgb(227 178 60 / 0.6);27 clip-path: polygon(0 10%, 4% 0, 8% 12%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 12%, 100% 88%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 90%);28 transform: rotate(2deg);29}30.tna__label {31 display: block;32 margin-bottom: 6px;33 color: #b52a17;34 font-size: 10px;35 font-weight: 700;36 letter-spacing: 0.2em;37 text-transform: uppercase;38}39.tna__in {40 display: block;41 width: 100%;42 box-sizing: border-box;43 padding: 0 4px 0 30px;44 border: 0;45 background: linear-gradient(90deg, transparent 22px, #e9a9a1 22px 23px, transparent 23px), repeating-linear-gradient(transparent 0 23px, #c6d3db 23px 24px);46 background-attachment: local;47 color: #2a2620;48 font: 14px/24px ui-monospace, SFMono-Regular, Menlo, monospace;49 resize: none;50 outline: none;51}52.tna__in::placeholder {53 color: #a59d8e;54}55.tna__hint {56 display: flex;57 justify-content: space-between;58 margin: 8px 0 0;59 color: #8a8273;60 font-size: 11px;61}62.tna__hint::after {63 content: "empty";64}65.tna:has(.tna__in:not(:placeholder-shown):invalid) .tna__hint::after {66 content: "keep going";67 color: #b52a17;68}69.tna:has(.tna__in:valid) .tna__hint {70 color: #5b6b2e;71}72.tna:has(.tna__in:valid) .tna__hint::after {73 content: "ready for the pass";74}75@media (prefers-reduced-motion: reduce) {76 .tna {77 transition: none;78 }79}
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
.tna {
position: relative;
width: 320px;
padding: 26px 18px 12px;
box-sizing: border-box;
border-radius: 2px;
background: #fffdf6;
box-shadow: 0 1px 1px rgb(0 0 0 / 0.08), 0 16px 26px -14px rgb(60 45 20 / 0.45);
color: #2a2620;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
transform: rotate(-1.2deg);
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.tna:focus-within {
box-shadow: 0 0 0 2px #2a2620, 0 22px 30px -14px rgb(60 45 20 / 0.5);
transform: rotate(0) translateY(-3px);
}
.tna__tape {
position: absolute;
top: -10px;
left: 50%;
width: 92px;
height: 22px;
margin-left: -46px;
background: rgb(227 178 60 / 0.6);
clip-path: polygon(0 10%, 4% 0, 8% 12%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 12%, 100% 88%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 90%);
transform: rotate(2deg);
}
.tna__label {
display: block;
margin-bottom: 6px;
color: #b52a17;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.2em;
text-transform: uppercase;
}
.tna__in {
display: block;
width: 100%;
box-sizing: border-box;
padding: 0 4px 0 30px;
border: 0;
background: linear-gradient(90deg, transparent 22px, #e9a9a1 22px 23px, transparent 23px), repeating-linear-gradient(transparent 0 23px, #c6d3db 23px 24px);
background-attachment: local;
color: #2a2620;
font: 14px/24px ui-monospace, SFMono-Regular, Menlo, monospace;
resize: none;
outline: none;
}
.tna__in::placeholder {
color: #a59d8e;
}
.tna__hint {
display: flex;
justify-content: space-between;
margin: 8px 0 0;
color: #8a8273;
font-size: 11px;
}
.tna__hint::after {
content: "empty";
}
.tna:has(.tna__in:not(:placeholder-shown):invalid) .tna__hint::after {
content: "keep going";
color: #b52a17;
}
.tna:has(.tna__in:valid) .tna__hint {
color: #5b6b2e;
}
.tna:has(.tna__in:valid) .tna__hint::after {
content: "ready for the pass";
}
@media (prefers-reduced-motion: reduce) {
.tna {
transition: none;
}
}
You need to sign in before you can write a comment.