.gu-otp{--box:#fbf8f2;--text:#0e0e10;--muted:#57534b;--line:#0e0e102e;--accent:#ff5a1f;--ok:#d7ff3a;--bad:#c2410c;--focus:#2b35ff;color:var(--text);text-align:center;justify-items:center;gap:18px;font-family:system-ui,sans-serif;display:grid}.gu-otp[data-theme=dark]{--box:#18181b;--text:#f3eee3;--muted:#aea89c;--line:#f3eee32e;--bad:#fb923c;--focus:#d7ff3a}.gu-otp__title{margin:0;font-weight:700}.gu-otp__boxes{gap:clamp(6px,2vw,12px);display:flex}.gu-otp input{border:1.5px solid var(--line);background:var(--box);width:clamp(42px,11vw,58px);height:clamp(54px,14vw,70px);color:inherit;text-align:center;caret-color:var(--accent);border-radius:14px;outline:none;padding:0;font:800 1.7rem/1 ui-monospace,JetBrains Mono,monospace;transition:border-color .2s,box-shadow .2s,transform .3s cubic-bezier(.34,1.56,.64,1),background-color .3s}.gu-otp input:nth-child(3){margin-right:clamp(6px,2vw,14px)}.gu-otp input:focus{border-color:var(--focus);box-shadow:0 0 0 4px color-mix(in srgb, var(--focus) 20%, transparent)}.gu-otp input[data-filled]{border-color:var(--text);transform:translateY(-3px)}.gu-otp[data-state=checking] input{animation:.9s ease-in-out infinite gu-otp-wave}.gu-otp[data-state=checking] input:nth-child(2){animation-delay:80ms}.gu-otp[data-state=checking] input:nth-child(3){animation-delay:.16s}.gu-otp[data-state=checking] input:nth-child(4){animation-delay:.24s}.gu-otp[data-state=checking] input:nth-child(5){animation-delay:.32s}.gu-otp[data-state=checking] input:nth-child(6){animation-delay:.4s}@keyframes gu-otp-wave{50%{transform:translateY(-8px)}}.gu-otp[data-state=ok] input{background:var(--ok);color:#0e0e10;border-color:#0000;transform:none}.gu-otp[data-state=bad] input{border-color:var(--bad);color:var(--bad);transform:none}.gu-otp[data-state=bad] .gu-otp__boxes{animation:.45s gu-otp-shake}@keyframes gu-otp-shake{20%,60%{transform:translate(-8px)}40%,80%{transform:translate(8px)}}.gu-otp__status{min-height:1.4em;margin:0;font-size:.9rem;font-weight:600}.gu-otp__status span{color:var(--muted);font-weight:500}.gu-otp[data-state=bad] .gu-otp__status{color:var(--bad)}@media (prefers-reduced-motion:reduce){.gu-otp input,.gu-otp input[data-filled]{transition:none;transform:none}.gu-otp[data-state=checking] input,.gu-otp[data-state=bad] .gu-otp__boxes{animation:none}}
