/* MH Platforms OTP Motion v1 — visual layer only. No authentication logic changes. */
:root{--mh-otp-red:#ad1629;--mh-otp-deep:#801125;--mh-otp-outline:#d6d8df;--mh-otp-ink:#232630}
.mh-otp-motion{direction:ltr;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(5px,1vw,11px);width:min(100%,356px);margin:15px auto 20px;isolation:isolate}
.mh-otp-motion .mh-otp-cell{position:relative;display:grid;place-items:center;width:100%;min-width:0;aspect-ratio:1/1.17;border:2px solid var(--mh-otp-outline);border-radius:clamp(9px,1.7vw,14px);background:linear-gradient(160deg,#fff 0%,#fdf9fa 100%);color:var(--mh-otp-ink);font:800 clamp(18px,3.3vw,27px)/1 system-ui,Arial,sans-serif;box-shadow:0 5px 12px rgba(24,28,44,.07);opacity:0;transform:translateY(16px) scale(.84);animation:mh-otp-arrive .52s cubic-bezier(.19,1.18,.37,1) both;animation-delay:calc(var(--mh-otp-i)*65ms);transition:border-color .19s,box-shadow .19s,background .19s}
.mh-otp-motion .mh-otp-cell:after{position:absolute;inset:auto 22% 9%;height:3px;background:var(--mh-otp-red);border-radius:4px;content:"";transform:scaleX(0);opacity:0;transition:transform .19s,opacity .19s}
.mh-otp-motion .mh-otp-cell:focus-within{z-index:1;border-color:var(--mh-otp-red);box-shadow:0 9px 22px rgba(173,22,41,.18),0 0 0 4px rgba(173,22,41,.095);background:#fff}
.mh-otp-motion .mh-otp-cell:focus-within:after{transform:scaleX(1);opacity:1}
.mh-otp-motion .mh-otp-cell input{all:unset;box-sizing:border-box;display:block;width:100%!important;height:100%!important;text-align:center;direction:ltr;line-height:1;cursor:text;border:0!important;border-radius:inherit;background:transparent!important;color:#222!important;font:inherit!important;box-shadow:none!important;outline:none!important;padding:0!important;min-width:0}
.mh-otp-motion .mh-otp-cell.mh-otp-focused{animation:mh-otp-lift .25s ease-out both;border-color:var(--mh-otp-red);box-shadow:0 9px 22px rgba(173,22,41,.16),0 0 0 4px rgba(173,22,41,.075)}
.mh-otp-motion .mh-otp-cell.mh-otp-filled{border-color:#bd7181;background:linear-gradient(155deg,#fff,#fff4f5)}
.mh-otp-motion .mh-otp-cell.mh-otp-new{animation:mh-otp-tap .33s cubic-bezier(.23,1,.46,1) both}
.mh-otp-motion.mh-otp-complete .mh-otp-cell{border-color:var(--mh-otp-red);animation:mh-otp-complete .5s both;animation-delay:calc(var(--mh-otp-i)*36ms)}
.mh-otp-motion.mh-otp-complete .mh-otp-cell:after{opacity:.8;transform:scaleX(1)}
.mh-otp-motion.mh-otp-invalid{animation:mh-otp-shake .34s ease-in-out}
.mh-otp-motion.mh-otp-invalid .mh-otp-cell{border-color:#d33242}
.mh-otp-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;border:0!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.mh-otp-motion .mh-otp-cell .mh-otp-dot{display:block;background:#c88a95;width:12px;height:12px;border-radius:50%;box-shadow:0 0 0 4px #f9ebee}
.mh-otp-motion.mh-otp-decor{width:min(100%,340px);margin:17px auto 9px;pointer-events:none}
.mh-otp-motion.mh-otp-decor .mh-otp-cell{animation:mh-otp-arrive .58s cubic-bezier(.2,.95,.3,1) both,mh-otp-float 3s ease-in-out infinite;animation-delay:calc(var(--mh-otp-i)*75ms),calc(900ms + var(--mh-otp-i)*130ms);box-shadow:0 5px 14px rgba(137,24,44,.1);background:linear-gradient(150deg,#fff 0%,#fbf2f4 100%);border-color:#dec4ca}
.mh-otp-motion.mh-otp-decor.mh-otp-wave .mh-otp-cell{animation:mh-otp-tap .37s ease-out both;animation-delay:calc(var(--mh-otp-i)*60ms);border-color:var(--mh-otp-red)}
.mh-otp-motion.mh-otp-decor.mh-otp-success .mh-otp-cell{animation:mh-otp-complete .5s both;animation-delay:calc(var(--mh-otp-i)*40ms);background:#ecf9f2;border-color:#248c5d}
.mh-otp-motion.mh-otp-decor.mh-otp-failure{animation:mh-otp-shake .35s ease-in-out}
@keyframes mh-otp-arrive{0%{opacity:0;transform:translateY(16px) scale(.84)}64%{opacity:1;transform:translateY(-4px) scale(1.035)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes mh-otp-lift{0%{opacity:1;transform:translateY(0) scale(1)}60%{opacity:1;transform:translateY(-5px) scale(1.08)}100%{opacity:1;transform:translateY(-3px) scale(1.04)}}
@keyframes mh-otp-tap{0%{opacity:1;transform:translateY(-3px) scale(.85)}55%{opacity:1;transform:translateY(-8px) scale(1.095)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes mh-otp-complete{0%{opacity:1;transform:scale(1)}45%{opacity:1;transform:translateY(-9px) scale(1.1);box-shadow:0 12px 20px rgba(173,22,41,.18)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes mh-otp-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@keyframes mh-otp-float{0%,100%{opacity:1;transform:translateY(0)}50%{opacity:1;transform:translateY(-5px)}}
@media(max-width:420px){.mh-otp-motion{gap:5px;width:min(100%,310px)}.mh-otp-motion .mh-otp-cell{border-radius:9px;border-width:1.5px}}
@media(prefers-reduced-motion:reduce){.mh-otp-motion,.mh-otp-motion .mh-otp-cell,.mh-otp-motion .mh-otp-cell:after{animation:none!important;transition:none!important;transform:none!important;opacity:1!important}}
