.ns-sms-auth {
	position: relative;
	display: flex;
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 64px) 0;
	padding-top: 0px !important;
	padding-bottom: 0px !important;
	color: #111;
	direction: rtl;
	font-family: "Vazirmatn", "YekanBakh", sans-serif;
}

.ns-sms-auth__card {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 47px;
	border: 1px solid rgba(62, 14, 87, .07);
	border-radius: 30px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 28px 64px rgba(28, 17, 39, .17), 0 7px 20px rgba(36, 17, 56, .06);
}

.ns-sms-auth__header {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	text-align: right;
}

.ns-sms-auth__eyebrow {
	margin: 0;
	color: rgba(62, 14, 87, .55);
	direction: ltr;
	font-family: "Stretch Pro", "Arial Narrow", "Vazirmatn", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 16.8px;
}

.ns-sms-auth__header h2 {
	margin: 0;
	color: #000;
	font-family: "Vazirmatn", "YekanBakh", sans-serif;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	text-align: right;
}

.ns-sms-auth__description {
	width: 100%;
	margin: 20px 0 0;
	color: rgba(0, 0, 0, .65);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: right;
}

.ns-sms-auth__status {
	margin: 18px 0 0;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.7;
}

.ns-sms-auth__status:empty {
	display: none;
}

.ns-sms-auth__status[data-error="true"] {
	border-color: rgba(156, 37, 58, .14);
	background: #fff1f2;
	color: #8b1e34;
}

.ns-sms-auth__status[data-error="false"] {
	border-color: rgba(31, 116, 83, .16);
	background: #edf8f2;
	color: #185b40;
}

.ns-sms-auth__form {
	display: flex;
	width: 100%;
	max-width: 100%;
	flex-direction: column;
	gap: 20px;
	margin: 28px auto 0;
}

.ns-sms-auth__form[hidden] {
	display: none;
}

.ns-sms-auth__field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: stretch;
	gap: 5px;
}

.ns-sms-auth__field label {
	color: #111;
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	text-align: right;
}

.ns-sms-auth__field input {
	box-sizing: border-box;
	width: 100%;
	height: 43px;
	min-height: 43px;
	padding: 8px 14px;
	border: 1px solid #e4dcf0;
	border-radius: 14px;
	background: #f6f3fb;
	box-shadow: none;
	color: #15111a;
	direction: rtl;
	font-family: "Vazirmatn", "YekanBakh", sans-serif;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ns-sms-auth__field input:focus {
	border-color: rgba(75, 48, 255, .55);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(75, 48, 255, .1);
	outline: 0;
}

.ns-sms-auth__otp-input {
	position: relative;
	width: max-content;
	max-width: 100%;
	min-height: 44px;
	direction: ltr;
}

.ns-sms-auth__otp-digits {
	display: flex;
	width: max-content;
	max-width: 100%;
	min-height: 44px;
	align-items: center;
	gap: clamp(4px, 1.2vw, 8px);
}

.ns-sms-auth__otp-digit {
	display: grid;
	box-sizing: border-box;
	width: 52px;
	max-width: 52px;
	min-width: 0;
	height: auto;
	flex: 1 1 52px;
	aspect-ratio: 1 / 1;
	place-items: center;
	border: 1px solid #e4dcf0;
	border-radius: 13px;
	background: #f6f3fb;
	color: #15111a;
	font-family: "Vazirmatn", "YekanBakh", sans-serif;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ns-sms-auth__otp-digit.is-filled {
	background: #fff;
}

.ns-sms-auth__otp-digit.is-active {
	border-color: rgba(75, 48, 255, .65);
	box-shadow: 0 0 0 3px rgba(75, 48, 255, .1);
}

.ns-sms-auth__otp-input:focus-within .ns-sms-auth__otp-digit.is-active {
	background: #fff;
}

.ns-sms-auth__otp-input input,
.ns-sms-auth__otp-input input:focus {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 13px;
	background: transparent;
	box-shadow: none;
	color: transparent;
	caret-color: transparent;
	direction: ltr;
	font-size: 16px;
	-webkit-text-fill-color: transparent;
}

.ns-sms-auth__otp-input input:focus {
	outline: 0;
}

.ns-sms-auth__otp-input input::selection {
	background: rgba(75, 48, 255, .18);
	color: transparent;
}

.ns-sms-auth__otp-input[data-invalid="true"] .ns-sms-auth__otp-digit {
	border-color: rgba(156, 37, 58, .55);
	background: #fff1f2;
}

.ns-sms-auth__form[data-step="otp"][aria-busy="true"] .ns-sms-auth__otp-digit {
	opacity: .72;
}

.ns-sms-auth__status[data-pending="true"]::before {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-inline-end: 8px;
	border: 2px solid rgba(62, 14, 87, .2);
	border-top-color: #3e0e57;
	border-radius: 50%;
	content: "";
	vertical-align: -2px;
	animation: ns-sms-auth-spin .7s linear infinite;
}

.ns-sms-auth__field input:focus-visible,
.ns-sms-auth button:focus-visible {
	outline: 3px solid rgba(75, 48, 255, .25);
	outline-offset: 3px;
}

.ns-sms-auth__help,
.ns-sms-auth__countdown {
	margin: 0;
	color: rgba(0, 0, 0, .55);
	font-size: 13px;
	line-height: 20px;
	text-align: right;
}

.ns-sms-auth__captcha {
	display: flex;
	justify-content: flex-end;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 78px;
	overflow: hidden;
	direction: ltr;
}

.ns-sms-auth__captcha iframe {
	max-width: 100%;
}

.ns-sms-auth__countdown {
	direction: rtl;
}

.ns-sms-auth button {
	box-sizing: border-box;
	width: 100%;
	min-height: 35px;
	padding: 7px 25px;
	border: 0;
	border-radius: 16px 8px 16px 16px;
	background: linear-gradient(191.793deg, rgb(0, 0, 0) 36.777%, rgb(62, 14, 87) 103.06%);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font-family: "Vazirmatn", "YekanBakh", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.ns-sms-auth button:hover:not(:disabled) {
	background: linear-gradient(191.793deg, rgb(23, 13, 28) 30%, rgb(84, 26, 112) 103.06%);
	box-shadow: 0 7px 18px rgba(62, 14, 87, .17);
	transform: translateY(-1px);
}

.ns-sms-auth button:active:not(:disabled) {
	transform: translateY(0);
}

.ns-sms-auth button:disabled {
	opacity: .64;
	cursor: wait;
}

.ns-sms-auth__form[aria-busy="true"] button[type="submit"]::after {
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-inline-start: 9px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	content: "";
	vertical-align: -2px;
	animation: ns-sms-auth-spin .7s linear infinite;
}

.ns-sms-auth .ns-sms-auth__secondary {
	align-self: flex-start;
	width: auto;
	min-height: 32px;
	margin-top: -10px;
	padding: 4px 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #4b30ff;
	font-size: 15px;
	font-weight: 700;
}

.ns-sms-auth .ns-sms-auth__secondary:hover:not(:disabled) {
	background: transparent;
	box-shadow: none;
	text-decoration: underline;
	transform: none;
}

.ns-sms-auth--signed-in {
	box-sizing: border-box;
	width: 100%;
	margin: clamp(32px, 5vw, 64px) auto;
	padding: 24px;
	border: 1px solid rgba(62, 14, 87, .07);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 36px rgba(28, 17, 39, .12);
	font-family: "Vazirmatn", "YekanBakh", sans-serif;
	text-align: center;
}

.ns-sms-auth--signed-in p {
	margin: 0;
}

@keyframes ns-sms-auth-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 639px) {
	.ns-sms-auth {
		padding: 28px 0;
	}

	.ns-sms-auth__card {
		padding: 28px 20px;
		border-radius: 26px;
	}

	.ns-sms-auth__header h2 {
		font-size: 24px;
		line-height: 1.25;
	}

	.ns-sms-auth__description {
		margin-top: 16px;
		font-size: 14px;
		line-height: 22px;
	}

	.ns-sms-auth__form {
		gap: 16px;
		margin-top: 22px;
	}

	.ns-sms-auth__field label {
		font-size: 15px;
	}

	.ns-sms-auth__status {
		font-size: 13px;
	}

	.ns-sms-auth__captcha {
		min-height: 70px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ns-sms-auth__field input,
	.ns-sms-auth button,
	.ns-sms-auth__otp-digit {
		transition: none;
	}

	.ns-sms-auth__form[aria-busy="true"] button[type="submit"]::after,
	.ns-sms-auth__status[data-pending="true"]::before {
		animation: none;
	}
}
