/* Standby screen on the log-in page: a silver card taps the contactless reader, then the white log-in side opens from the NFC mark. */
html.no-st .st { display: none; }
body.st-on { background: #2c2d31; overflow: hidden; }
.st { position: fixed; inset: 0; z-index: 50; cursor: pointer; outline: none; color: #ececef; }
.st::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(120deg, rgba(255,255,255,.02) 0 2px, transparent 2px 14px); }
.st-top { position: absolute; left: 34px; top: 28px; display: flex; align-items: center; gap: 12px; z-index: 3; transition: opacity .3s; }
.st-word { font: 400 22px Georgia, "Times New Roman", serif; color: #fafafb; }
.st-badge { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid #4a4b51; padding: 7px 16px; border-radius: 99px; font-size: 13px; color: #d6d7dc; z-index: 3; transition: opacity .3s; white-space: nowrap; }
.st-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-hint { position: absolute; left: 0; right: 0; bottom: 34px; margin: 0; text-align: center; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #9a9a9f; z-index: 3; transition: opacity .3s; }
.st-hint::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9a9a9f; margin-left: 12px; animation: stblink 1.6s ease-in-out infinite; }
@keyframes stblink { 50% { opacity: .2; } }
.st-art { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.st .sp-chip { display: block; width: 42px; height: 31px; border-radius: 7px; background: linear-gradient(135deg, #f6f6f8, #a9abb2); }
/* the contactless reader and the card */
.term { position: absolute; left: 50%; top: 14%; width: 230px; height: 160px; margin-left: -115px; border-radius: 28px; background: linear-gradient(#3a3b40, #2a2b2f); border: 1px solid #4a4b51; display: grid; place-items: center; color: #d6d7dc; box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: opacity .4s .9s; }
.term svg { width: 68px; height: 68px; position: relative; z-index: 1; }
.term path { animation: starc 2.1s ease-in-out infinite; } .term .a2 { animation-delay: .25s; } .term .a3 { animation-delay: .5s; }
@keyframes starc { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }
.tw { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 3px solid #6fd6a2; opacity: 0; }
.pcard { position: absolute; left: 50%; top: calc(14% + 234px); width: 340px; height: 200px; margin-left: -170px; border-radius: 20px; padding: 20px 22px; background: linear-gradient(135deg, #f6f6f8, #a9abb2); color: #2a2b2f; box-shadow: 0 14px 30px rgba(0,0,0,.35); display: flex; flex-direction: column; animation: stbob 3s ease-in-out infinite; }
.pcard span { margin-top: auto; font-weight: 700; font-size: 13px; letter-spacing: 3px; }
.pcard em { font-style: normal; font-weight: 600; font-size: 14px; font-family: ui-monospace, Menlo, monospace; letter-spacing: 2px; color: #5a5c63; margin-top: 6px; }
@keyframes stbob { 50% { transform: translateY(-12px); } }
/* the log-in page underneath stays hidden until the tap */
body.st-on .sp-l > *, body.st-on .sp-nfc, body.st-on .sp-form { opacity: 0; }
body.st-on .sp-form, body.st-on .sp-nfc { transform: translateY(16px); }
body.st-on .sp-r { clip-path: circle(0% at calc(100% - 72px) 72px); visibility: hidden; }
body.st-on .sp-big { transform: scale(.8); }
/* the tap */
html.st-wake .st-top, html.st-wake .st-badge, html.st-wake .st-hint { opacity: 0; }
html.st-wake .pcard { animation: stTap 1.1s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes stTap { 0% { transform: none; opacity: 1; } 45% { transform: translateY(-125px) scale(.8); opacity: 1; } 58% { transform: translateY(-112px) scale(.8); opacity: 1; } 100% { transform: translateY(-112px) scale(.8); opacity: 0; } }
html.st-wake .term path { animation: none; opacity: 1; stroke: #6fd6a2; }
html.st-wake .tw { animation: stBurst 1s ease-out .45s forwards; } html.st-wake .tw2 { animation-delay: .6s; } html.st-wake .tw3 { animation-delay: .75s; }
@keyframes stBurst { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(7); } }
html.st-wake .term { opacity: 0; }
html.st-wake body.st-on .sp-r { visibility: visible; clip-path: circle(150% at calc(100% - 72px) 72px); transition: clip-path 1s cubic-bezier(.5,0,.2,1) .8s; }
html.st-wake body.st-on .sp-l > * { opacity: 1; transition: opacity .6s ease-out .5s; }
html.st-wake body.st-on .sp-big { transform: none; transition: transform .6s cubic-bezier(.3,1.4,.5,1) .6s; }
html.st-wake body.st-on .sp-form, html.st-wake body.st-on .sp-nfc { opacity: 1; transform: none; transition: opacity .5s ease-out 1.45s, transform .6s cubic-bezier(.2,.8,.2,1) 1.45s; }
html.st-wake .st { pointer-events: none; }
@media (max-width: 820px) { .st { display: none; } body.st-on { overflow: auto; } body.st-on .sp-l > *, body.st-on .sp-nfc, body.st-on .sp-form { opacity: 1; transform: none; } body.st-on .sp-big { transform: none; } body.st-on .sp-r { clip-path: none; visibility: visible; } }   /* window made narrow while waiting: show the log-in page, no standby */
@media (prefers-reduced-motion: reduce) { .st *, .st *::before, body.st-on .sp-r, body.st-on .sp-l > *, body.st-on .sp-form, body.st-on .sp-nfc, body.st-on .sp-big { animation: none !important; transition: none !important; } }
.st::before { transition: opacity .5s ease-out .6s; } html.st-wake .st::before { opacity: 0; }
