/* Apple Store Max — OTP login (Apple Account inspired) */
.asm-otp{--asm-blue:#0071e3;--asm-blue-h:#0077ed;--asm-ink:#1d1d1f;--asm-mute:#6e6e73;--asm-line:#d2d2d7;--asm-err:#e30000;
	max-width:980px;margin:0 auto 60px;padding:0 20px;font-family:IRANYekan,Vazirmatn,Tahoma,sans-serif;color:var(--asm-ink);direction:rtl;box-sizing:border-box}
.asm-otp *,.asm-otp *::before,.asm-otp *::after{box-sizing:border-box}
.asm-otp__bar{display:flex;justify-content:space-between;align-items:center;height:52px;border-bottom:1px solid var(--asm-line);font-size:12.5px;color:var(--asm-mute)}
.asm-otp__bar strong{font-size:19px;font-weight:600;color:var(--asm-ink)}
.asm-otp__bar nav{display:flex;gap:22px}
.asm-otp__bar nav span{color:var(--asm-mute)}
.asm-otp__bar nav a{color:var(--asm-ink);text-decoration:none}
.asm-otp__bar nav a:hover{color:var(--asm-blue)}

.asm-otp__hero{display:flex;justify-content:center;margin:44px 0 26px}
.asm-otp__ring{width:150px;height:150px;position:relative;display:flex;align-items:center;justify-content:center}
.asm-otp__ring span{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 200deg,#0071e3,#5ac8fa,#34c759,#a1a1a6,#0071e3);
	-webkit-mask:radial-gradient(circle,transparent 60%,#000 61%,#000 67%,transparent 68%);mask:radial-gradient(circle,transparent 60%,#000 61%,#000 67%,transparent 68%)}
.asm-otp[data-busy="1"] .asm-otp__ring span{animation:asm-spin 1.6s linear infinite}
@keyframes asm-spin{to{transform:rotate(360deg)}}
.asm-otp__ring img{width:64px;height:64px;object-fit:contain;position:relative}

.asm-otp__step{display:none;margin:0}
.asm-otp[data-step="phone"] .asm-otp__step--phone,
.asm-otp[data-step="code"] .asm-otp__step--code,
.asm-otp[data-step="password"] .asm-otp__step--password{display:block;animation:asm-in .25s ease-out}
@keyframes asm-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.asm-otp__title{font-size:32px;font-weight:700;line-height:1.4;text-align:center;margin:0 0 6px;color:var(--asm-ink)}
.asm-otp__sub{font-size:15.5px;text-align:center;margin:0 0 28px;color:var(--asm-ink);line-height:1.9}
.asm-otp__phone{font-weight:600;unicode-bidi:isolate}
.asm-otp__box{width:100%;max-width:440px;margin:0 auto}

.asm-otp__field{display:block;position:relative;margin:0 0 14px}
.asm-otp__field input{width:100%;height:58px;border:1px solid #86868b;border-radius:12px;padding:22px 16px 6px;font:inherit;font-size:17px;color:var(--asm-ink);background:#fff;text-align:right;outline:none;transition:border-color .15s,box-shadow .15s;margin:0}
.asm-otp__field input:focus{border-color:var(--asm-blue);box-shadow:0 0 0 4px rgba(0,113,227,.15)}
.asm-otp__field span{position:absolute;right:16px;top:18px;font-size:16px;color:var(--asm-mute);pointer-events:none;transition:all .15s}
.asm-otp__field input:focus+span,.asm-otp__field input:not(:placeholder-shown)+span{top:8px;font-size:11.5px}
.asm-otp__field.is-err input{border-color:var(--asm-err);background:#fff5f5}

.asm-otp__info{display:flex;gap:12px;margin:24px 0 20px;font-size:12.5px;line-height:2}
.asm-otp__info i{flex:none;width:32px;height:32px;border-radius:50%;background:#e8f2fd;color:var(--asm-blue);display:flex;align-items:center;justify-content:center}
.asm-otp__info p{margin:0;color:var(--asm-ink)}
.asm-otp__info a{color:var(--asm-blue);text-decoration:none}
.asm-otp__info a:hover{text-decoration:underline}

.asm-otp__btns{display:flex;gap:12px;margin-top:6px}
.asm-otp__btn{flex:1;height:46px;border:0;border-radius:12px;background:var(--asm-blue);color:#fff;font:inherit;font-size:15px;cursor:pointer;transition:background .15s,opacity .15s;padding:0 16px}
.asm-otp__btn:hover{background:var(--asm-blue-h)}
.asm-otp__btn--dark{background:var(--asm-ink)}
.asm-otp__btn--dark:hover{background:#000}
.asm-otp__btn[disabled]{opacity:.45;cursor:default}

.asm-otp__code{display:flex;gap:10px;justify-content:center;direction:ltr;margin:0 0 6px}
.asm-otp__code input{width:58px;height:66px;border:1px solid var(--asm-line);border-radius:12px;text-align:center;font:inherit;font-size:28px;color:var(--asm-ink);background:#fff;outline:none;padding:0;margin:0;transition:border-color .15s,box-shadow .15s}
.asm-otp__code input:focus{border-color:var(--asm-blue);box-shadow:0 0 0 4px rgba(0,113,227,.15)}
.asm-otp__code.is-err input{border-color:var(--asm-err)}
.asm-otp__code.is-err{animation:asm-shake .35s}
@keyframes asm-shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

.asm-otp__meta{display:flex;flex-direction:column;align-items:center;gap:4px;margin:18px 0 20px;font-size:13.5px;color:var(--asm-mute)}
.asm-otp__step--password .asm-otp__meta{flex-direction:row;justify-content:space-between;margin-top:4px}
.asm-otp__timer b{color:var(--asm-ink);font-weight:600}
.asm-otp__link{background:none;border:0;padding:2px 0;font:inherit;font-size:13.5px;color:var(--asm-blue);cursor:pointer;text-decoration:none}
.asm-otp__link:hover{text-decoration:underline;background:none;color:var(--asm-blue)}
.asm-otp__link[hidden]{display:none}

.asm-otp__msg{min-height:0;font-size:13px;color:var(--asm-err);text-align:center;line-height:1.9}
.asm-otp__msg:not(:empty){margin:-6px 0 12px}
.asm-otp__msg.is-ok{color:#1a7f37}

@media (max-width:600px){
	.asm-otp{padding:0 16px}
	.asm-otp__bar strong{font-size:16px}
	.asm-otp__hero{margin:30px 0 20px}
	.asm-otp__ring{width:120px;height:120px}
	.asm-otp__ring img{width:52px;height:52px}
	.asm-otp__title{font-size:26px}
	.asm-otp__sub{font-size:14.5px}
	.asm-otp__btns{flex-direction:column}
	.asm-otp__btn{height:50px}
	.asm-otp__code{gap:8px}
	.asm-otp__code input{width:52px;height:60px;font-size:25px}
}
@media (prefers-reduced-motion:reduce){.asm-otp *{animation:none!important;transition:none!important}}

/* theme overrides (theme styles h1/inputs/buttons globally) */
.asm-otp h1.asm-otp__title{font-size:32px!important;font-weight:700!important;line-height:1.4!important;color:#1d1d1f!important;margin:0 0 6px!important;text-align:center!important;font-family:inherit!important;letter-spacing:0!important}
.asm-otp p.asm-otp__sub{font-size:15.5px!important;line-height:1.9!important;margin:0 0 28px!important;text-align:center!important}
.asm-otp .asm-otp__field input{height:58px!important;border-radius:12px!important;font-size:17px!important;padding:22px 16px 6px!important;box-shadow:none}
.asm-otp .asm-otp__field input:focus{box-shadow:0 0 0 4px rgba(0,113,227,.15)!important;border-color:#0071e3!important}
.asm-otp .asm-otp__code input{width:58px!important;height:66px!important;font-size:28px!important;padding:0!important;border-radius:12px!important;text-align:center!important}
.asm-otp .asm-otp__btn{height:46px!important;border-radius:12px!important;font-size:15px!important;line-height:46px!important}
.asm-otp .asm-otp__bar strong{font-size:19px!important}
@media (max-width:600px){
	.asm-otp h1.asm-otp__title{font-size:26px!important}
	.asm-otp .asm-otp__code input{width:52px!important;height:60px!important;font-size:25px!important}
	.asm-otp .asm-otp__btn{height:50px!important;line-height:50px!important}
	.asm-otp .asm-otp__bar strong{font-size:16px!important}
}

/* single real input (iOS/Android SMS autofill) over visual boxes */
.asm-otp .asm-otp__code{position:relative}
.asm-otp .asm-otp__digit{width:58px;height:66px;border:1px solid #d2d2d7;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:28px;color:#1d1d1f;background:#fff;transition:border-color .15s,box-shadow .15s}
.asm-otp .asm-otp__digit.is-active{border-color:#0071e3;box-shadow:0 0 0 4px rgba(0,113,227,.15)}
.asm-otp .asm-otp__code.is-err .asm-otp__digit{border-color:#e30000}
.asm-otp input.asm-otp__otp{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:1!important;border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;margin:0!important;font-size:16px!important;color:transparent!important;-webkit-text-fill-color:transparent!important;background:transparent!important;caret-color:transparent!important;z-index:2;letter-spacing:0;text-align:center!important}
.asm-otp input.asm-otp__otp::selection{background:transparent}
@media (max-width:600px){.asm-otp .asm-otp__digit{width:52px;height:60px;font-size:25px}}
