/* The sign-in forms (site/signin.js), used on /login and in the sign-in sheet inside the app. */
.si-step { display: flex; flex-direction: column; }
.si-step[hidden] { display: none; }
.si-h { font: 800 28px/32px var(--pe-font); font-stretch: 88%; letter-spacing: -0.01em; margin: 0 0 6px; text-wrap: balance; }
.si-sub { font: var(--pe-subhead); color: var(--pe-text-2); margin: 0 0 20px; }
.si-legal { font: var(--pe-footnote); color: var(--pe-text-2); text-align: center; margin: 14px 0 0; }
.si-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.si-sub b { color: var(--pe-text); font-weight: 600; overflow-wrap: anywhere; }
.si-lbl { display: block; font: var(--pe-label); text-transform: uppercase; letter-spacing: .08em; color: var(--pe-text-2); margin: 0 0 6px; }
.si-in { width: 100%; font: 400 17px/22px var(--pe-font); height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--pe-separator); background: var(--pe-surface); color: var(--pe-text); }
.si-in:focus { outline: 2px solid var(--pe-red); outline-offset: 0; border-color: transparent; }
.si-captcha { margin: 12px 0 0; }
.si-captcha:empty { margin: 0; }
.si-go { display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--pe-red); color: #fff; font: 800 17px/1 var(--pe-font); cursor: pointer; margin-top: 16px; }
.si-go:active { background: var(--pe-sleeper); }
.si-go[disabled] { opacity: .5; cursor: default; }
.si-go:focus-visible, .si-back:focus-visible { outline: 2px solid var(--pe-text); outline-offset: 2px; }
.si-back { background: none; border: 0; color: var(--pe-text-2); font: 500 15px/1 var(--pe-font); padding: 14px 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.si-msg { font: var(--pe-footnote); color: var(--pe-text-2); min-height: 18px; margin: 12px 0 0; }
.si-msg:empty { min-height: 0; margin: 0; }
.si-msg.err { color: var(--pe-tint); }

/* Six boxes drawn under one transparent input, so autofill and paste still work. */
.si-code { position: relative; }
.si-code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; color: transparent; background: none; caret-color: transparent; z-index: 1; }
.si-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.si-boxes span { height: 58px; border-radius: 12px; border: 1px solid var(--pe-separator); background: var(--pe-surface); display: flex; align-items: center; justify-content: center; font: 800 26px/1 var(--pe-font); font-variant-numeric: tabular-nums; color: var(--pe-text); }
.si-boxes span.on { border-color: transparent; outline: 2px solid var(--pe-red); }
.si-boxes span.on:empty::after { content: ""; width: 2px; height: 26px; background: var(--pe-red); animation: si-blink 1s steps(1) infinite; }
@keyframes si-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .si-boxes span.on:empty::after { animation: none; } }
