/**
 * مودال ورود هانل هسته — کرم، سرمه‌ای، طلایی
 */

.hanel-auth {
	--hanel-auth-ink: #151923;
	--hanel-auth-cream: #faf8f5;
	--hanel-auth-gold: #c5a059;
	--hanel-auth-gold-bright: #e8c979;
	--hanel-auth-muted: #737887;
	--hanel-auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hanel-auth-pad: clamp(0.9rem, 3.2vw, 1.85rem);
	--hanel-auth-gap: clamp(0.7rem, 2vw, 1.25rem);
	--hanel-auth-otp: clamp(2.55rem, 12vw, 3.2rem);
	--hanel-auth-safe-b: env(safe-area-inset-bottom, 0px);
	--hanel-auth-safe-t: env(safe-area-inset-top, 0px);

	position: fixed;
	inset: 0;
	z-index: 240;
	display: grid;
	place-items: center;
	padding: max(1rem, var(--hanel-auth-safe-t)) 1.15rem max(1rem, var(--hanel-auth-safe-b));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hanel-auth.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hanel-auth[hidden] {
	display: none !important;
}

.hanel-auth.is-open[hidden] {
	display: grid !important;
}

.hanel-auth__backdrop {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 46% at 82% 0%, rgba(197, 160, 89, 0.26), transparent 58%),
		radial-gradient(ellipse 48% 38% at 8% 100%, rgba(21, 25, 35, 0.4), transparent 55%),
		rgba(21, 25, 35, 0.64);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.hanel-auth__mote {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--hanel-auth-gold-bright);
	box-shadow: 0 0 14px rgba(232, 201, 121, 0.7);
	opacity: 0;
}

.hanel-auth.is-open .hanel-auth__mote--1 {
	top: 18%;
	right: 18%;
	animation: hanel-auth-mote 7s 0.2s ease-in-out infinite;
}

.hanel-auth.is-open .hanel-auth__mote--2 {
	top: 62%;
	left: 14%;
	width: 5px;
	height: 5px;
	animation: hanel-auth-mote 8.4s 1.1s ease-in-out infinite;
}

.hanel-auth.is-open .hanel-auth__mote--3 {
	bottom: 16%;
	right: 28%;
	width: 4px;
	height: 4px;
	animation: hanel-auth-mote 6.2s 2s ease-in-out infinite;
}

.hanel-auth.is-open .hanel-auth__mote--4 {
	top: 34%;
	left: 26%;
	width: 6px;
	height: 6px;
	animation: hanel-auth-mote 9s 0.7s ease-in-out infinite;
}

@keyframes hanel-auth-mote {
	0%,
	100% {
		opacity: 0;
		transform: translate3d(0, 12px, 0) scale(0.4);
	}
	35% {
		opacity: 0.85;
		transform: translate3d(-10px, -18px, 0) scale(1);
	}
	70% {
		opacity: 0.25;
		transform: translate3d(8px, -36px, 0) scale(0.7);
	}
}

.hanel-auth__dialog {
	position: relative;
	z-index: 1;
	width: min(26.75rem, 100%);
	max-height: min(92dvh, 46rem);
	overflow: hidden auto;
	padding: var(--hanel-auth-pad) clamp(1.05rem, 4vw, 1.6rem) calc(var(--hanel-auth-pad) * 0.75);
	border-radius: 1.7rem;
	background:
		linear-gradient(180deg, #fff 0%, var(--hanel-auth-cream) 38%, #fff 100%);
	color: var(--hanel-auth-ink);
	box-shadow:
		0 30px 80px rgba(21, 25, 35, 0.34),
		0 0 0 1px rgba(197, 160, 89, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transform: translateY(36px) scale(0.92);
	opacity: 0;
	transition:
		transform 0.58s var(--hanel-auth-ease),
		opacity 0.42s ease;
}

.hanel-auth.is-open .hanel-auth__dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.hanel-auth.is-shake .hanel-auth__dialog {
	animation: hanel-auth-shake 0.42s var(--hanel-auth-ease);
}

@keyframes hanel-auth-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-7px);
	}
	50% {
		transform: translateX(6px);
	}
	75% {
		transform: translateX(-3px);
	}
}

.hanel-auth__frame {
	position: absolute;
	inset: 10px;
	border-radius: 1.3rem;
	border: 1px solid rgba(197, 160, 89, 0.16);
	pointer-events: none;
}

.hanel-auth__frame::before,
.hanel-auth__frame::after {
	content: "";
	position: absolute;
	width: 1.15rem;
	height: 1.15rem;
	border: 1.5px solid var(--hanel-auth-gold);
	opacity: 0.7;
}

.hanel-auth__frame::before {
	top: -1px;
	right: -1px;
	border-bottom: 0;
	border-left: 0;
	border-radius: 0 0.35rem 0 0;
}

.hanel-auth__frame::after {
	bottom: -1px;
	left: -1px;
	border-top: 0;
	border-right: 0;
	border-radius: 0 0 0 0.35rem;
}

.hanel-auth__glow {
	position: absolute;
	top: -38%;
	right: 6%;
	left: 6%;
	height: 52%;
	background: radial-gradient(circle, rgba(197, 160, 89, 0.24), transparent 70%);
	pointer-events: none;
	animation: hanel-auth-glow 5.5s ease-in-out infinite;
}

@keyframes hanel-auth-glow {
	0%,
	100% {
		opacity: 0.7;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.08);
	}
}

.hanel-auth__orbit {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.hanel-auth__spark {
	position: absolute;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hanel-auth-gold-bright);
	box-shadow: 0 0 10px rgba(232, 201, 121, 0.75);
	opacity: 0;
}

.hanel-auth.is-open .hanel-auth__spark--1 {
	top: 22%;
	right: 14%;
	animation: hanel-auth-spark 4.6s 0.4s ease-in-out infinite;
}

.hanel-auth.is-open .hanel-auth__spark--2 {
	top: 46%;
	left: 10%;
	animation: hanel-auth-spark 5.2s 1.6s ease-in-out infinite;
}

.hanel-auth.is-open .hanel-auth__spark--3 {
	bottom: 18%;
	right: 18%;
	animation: hanel-auth-spark 4.8s 2.4s ease-in-out infinite;
}

@keyframes hanel-auth-spark {
	0%,
	100% {
		opacity: 0;
		transform: translateY(8px) scale(0.4);
	}
	40% {
		opacity: 0.95;
		transform: translateY(-8px) scale(1);
	}
}

.hanel-auth__close {
	position: absolute;
	top: 0.95rem;
	left: 0.95rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(21, 25, 35, 0.05);
	color: var(--hanel-auth-ink);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.28s var(--hanel-auth-ease), color 0.2s ease;
}

.hanel-auth__close:hover {
	background: rgba(197, 160, 89, 0.2);
	color: #9a7420;
	transform: rotate(90deg);
}

.hanel-auth__seal {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 6.4rem;
	height: 6.4rem;
	margin: 0.15rem auto 1.15rem;
}

.hanel-auth.is-entering .hanel-auth__seal {
	animation: hanel-auth-rise 0.7s 0.08s var(--hanel-auth-ease) both;
}

.hanel-auth__seal-spin,
.hanel-auth__seal-spin--soft {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
}

.hanel-auth__seal-spin {
	background:
		conic-gradient(
			from 0deg,
			transparent 0 18%,
			var(--hanel-auth-gold) 22% 28%,
			transparent 32% 68%,
			var(--hanel-auth-gold-bright) 72% 78%,
			transparent 82% 100%
		);
	mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
	animation: hanel-auth-spin 8s linear infinite;
}

.hanel-auth__seal-spin--soft {
	inset: 7px;
	border: 1px dashed rgba(197, 160, 89, 0.45);
	background: none;
	mask: none;
	animation: hanel-auth-spin 14s linear infinite reverse;
}

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

.hanel-auth__seal-disc {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 4.7rem;
	height: 4.7rem;
	border-radius: 50%;
	background: #fff;
	box-shadow:
		0 10px 24px rgba(21, 25, 35, 0.1),
		0 0 0 1px rgba(197, 160, 89, 0.18);
	animation: hanel-auth-float 4.4s ease-in-out infinite;
}

@keyframes hanel-auth-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-4px);
	}
}

.hanel-auth__logo {
	display: block;
	width: 3.15rem;
	height: auto;
	max-height: 2.35rem;
	object-fit: contain;
}

.hanel-auth__logo-word {
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--hanel-auth-ink);
}

.hanel-auth__top {
	position: relative;
	z-index: 1;
	text-align: center;
	margin-bottom: 1.25rem;
}

.hanel-auth.is-entering .hanel-auth__eyebrow {
	animation: hanel-auth-rise 0.65s 0.16s var(--hanel-auth-ease) both;
}

.hanel-auth.is-entering .hanel-auth__title {
	animation: hanel-auth-rise 0.7s 0.24s var(--hanel-auth-ease) both;
}

.hanel-auth.is-entering .hanel-auth__hint {
	animation: hanel-auth-rise 0.7s 0.32s var(--hanel-auth-ease) both;
}

.hanel-auth.is-entering .hanel-auth__steps {
	animation: hanel-auth-rise 0.72s 0.4s var(--hanel-auth-ease) both;
}

.hanel-auth.is-entering .hanel-auth__fine {
	animation: hanel-auth-rise 0.7s 0.5s var(--hanel-auth-ease) both;
}

@keyframes hanel-auth-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hanel-auth__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.6rem;
	padding: 0.28rem 0.75rem;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(197, 160, 89, 0.2), rgba(232, 201, 121, 0.08));
	border: 1px solid rgba(197, 160, 89, 0.38);
	font-size: 0.74rem;
	font-weight: 700;
	color: #9a7420;
}

.hanel-auth__eyebrow-dot {
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 50%;
	background: var(--hanel-auth-gold);
	box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
	animation: hanel-auth-pulse 1.8s ease-in-out infinite;
}

@keyframes hanel-auth-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
	}
	50% {
		box-shadow: 0 0 0 6px rgba(197, 160, 89, 0.08);
	}
}

.hanel-auth__title {
	margin: 0;
	font-size: clamp(1.35rem, 3.4vw, 1.62rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.hanel-auth__title-text {
	background: linear-gradient(120deg, #151923 0%, #2a3348 52%, #9a7420 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hanel-auth__title-mark {
	display: block;
	width: 3.2rem;
	height: 0.26rem;
	margin: 0.5rem auto 0;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--hanel-auth-gold), rgba(232, 201, 121, 0.15));
	transform-origin: center;
}

.hanel-auth.is-entering .hanel-auth__title-mark {
	animation: hanel-auth-mark 0.7s 0.42s var(--hanel-auth-ease) both;
}

@keyframes hanel-auth-mark {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

.hanel-auth__hint {
	margin: 0.55rem 0 0;
	font-size: 0.88rem;
	line-height: 1.75;
	color: var(--hanel-auth-muted);
}

.hanel-auth__sent {
	display: grid;
	justify-items: center;
	gap: 0.28rem;
	margin: 0 0 1rem;
	padding: 0.85rem 0.9rem;
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(197, 160, 89, 0.14), rgba(197, 160, 89, 0.05));
	border: 1px solid rgba(197, 160, 89, 0.26);
	color: var(--hanel-auth-ink);
	text-align: center;
	animation: hanel-auth-rise 0.45s var(--hanel-auth-ease) both;
}

.hanel-auth__sent-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	color: #9a7420;
}

.hanel-auth__sent-phone {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.hanel-auth__label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--hanel-auth-ink);
}

.hanel-auth__field {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.15rem 0.85rem;
	border-radius: 1rem;
	background: #fff;
	border: 1px solid rgba(21, 25, 35, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.hanel-auth__field:focus-within {
	border-color: rgba(197, 160, 89, 0.72);
	box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.14);
	transform: translateY(-1px);
}

.hanel-auth__field:focus-within .hanel-auth__field-icon {
	animation: hanel-auth-wiggle 0.45s var(--hanel-auth-ease);
}

@keyframes hanel-auth-wiggle {
	0%,
	100% {
		transform: rotate(0);
	}
	30% {
		transform: rotate(-12deg);
	}
	60% {
		transform: rotate(8deg);
	}
}

.hanel-auth__field-icon {
	display: grid;
	place-items: center;
	color: var(--hanel-auth-gold);
}

.hanel-auth__input,
.hanel-auth .hanel-auth__input:focus,
.hanel-auth .hanel-auth__input:focus-visible,
.hanel-auth .hanel-auth__otp-box:focus,
.hanel-auth .hanel-auth__otp-box:focus-visible {
	outline: none;
	outline-offset: 0;
	-webkit-tap-highlight-color: transparent;
}

.hanel-auth__input {
	flex: 1;
	width: 100%;
	min-height: 3.05rem;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--hanel-auth-ink);
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.hanel-auth__otp {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
	direction: ltr;
}

.hanel-auth__otp-box {
	position: relative;
	width: 100%;
	aspect-ratio: 0.88;
	min-height: 3.15rem;
	padding: 0;
	border: 1px solid rgba(21, 25, 35, 0.1);
	border-radius: 0.95rem;
	background: #fff;
	font-family: inherit;
	font-size: 1.4rem;
	font-weight: 800;
	text-align: center;
	color: var(--hanel-auth-ink);
	outline: none;
	transition:
		border-color 0.28s ease,
		transform 0.28s var(--hanel-auth-ease),
		box-shadow 0.28s ease,
		background 0.28s ease,
		color 0.28s ease;
}

.hanel-auth.is-code-in .hanel-auth__otp-box {
	animation: hanel-auth-otp-in 0.7s var(--hanel-auth-ease) both;
}

.hanel-auth.is-code-in .hanel-auth__otp-box:nth-child(1) { animation-delay: 0.06s; }
.hanel-auth.is-code-in .hanel-auth__otp-box:nth-child(2) { animation-delay: 0.14s; }
.hanel-auth.is-code-in .hanel-auth__otp-box:nth-child(3) { animation-delay: 0.22s; }
.hanel-auth.is-code-in .hanel-auth__otp-box:nth-child(4) { animation-delay: 0.3s; }
.hanel-auth.is-code-in .hanel-auth__otp-box:nth-child(5) { animation-delay: 0.38s; }

@keyframes hanel-auth-otp-in {
	0% {
		opacity: 0;
		transform: translateY(22px) scale(0.72) rotate(-6deg);
		filter: blur(4px);
	}
	70% {
		opacity: 1;
		filter: blur(0);
		transform: translateY(-3px) scale(1.04) rotate(0);
	}
	100% {
		opacity: 1;
		filter: blur(0);
		transform: translateY(0) scale(1) rotate(0);
	}
}

.hanel-auth__otp-box:focus {
	border-color: var(--hanel-auth-gold);
	box-shadow:
		0 0 0 4px rgba(197, 160, 89, 0.16),
		0 10px 20px rgba(197, 160, 89, 0.12);
	transform: translateY(-3px);
}

.hanel-auth__otp-box.is-filled {
	background: linear-gradient(180deg, #fff, rgba(197, 160, 89, 0.12));
	border-color: rgba(197, 160, 89, 0.55);
	color: #9a7420;
}

.hanel-auth__otp-box.is-pop {
	animation: hanel-auth-digit 0.4s var(--hanel-auth-ease);
}

@keyframes hanel-auth-digit {
	0% {
		transform: scale(0.86);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

.hanel-auth__otp-box.is-ok {
	background: linear-gradient(180deg, #f4fff8, #d8f6e5);
	border-color: #2f9e6a;
	color: #18794c;
	box-shadow:
		0 0 0 4px rgba(47, 158, 106, 0.16),
		0 10px 22px rgba(47, 158, 106, 0.12);
	transform: translateY(-2px);
}

.hanel-auth__otp.is-ok .hanel-auth__otp-box {
	animation: hanel-auth-ok 0.55s var(--hanel-auth-ease) both;
}

.hanel-auth__otp.is-ok .hanel-auth__otp-box:nth-child(1) { animation-delay: 0s; }
.hanel-auth__otp.is-ok .hanel-auth__otp-box:nth-child(2) { animation-delay: 0.09s; }
.hanel-auth__otp.is-ok .hanel-auth__otp-box:nth-child(3) { animation-delay: 0.18s; }
.hanel-auth__otp.is-ok .hanel-auth__otp-box:nth-child(4) { animation-delay: 0.27s; }
.hanel-auth__otp.is-ok .hanel-auth__otp-box:nth-child(5) { animation-delay: 0.36s; }

@keyframes hanel-auth-ok {
	0% {
		transform: scale(1);
		background: #fff;
		border-color: rgba(197, 160, 89, 0.55);
		color: #9a7420;
	}
	45% {
		transform: scale(1.08);
	}
	100% {
		transform: translateY(-2px) scale(1);
		background: linear-gradient(180deg, #f4fff8, #d8f6e5);
		border-color: #2f9e6a;
		color: #18794c;
	}
}

.hanel-auth__submit {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.1rem;
	margin-top: 1rem;
	padding: 0.75rem 1.1rem;
	border: 0;
	border-radius: 1rem;
	background: linear-gradient(135deg, #151923 0%, #2a3348 100%);
	color: #fff;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hanel-auth__submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(21, 25, 35, 0.24);
}

.hanel-auth__submit:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

.hanel-auth__submit-shine {
	position: absolute;
	inset: 0 auto 0 -40%;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(232, 201, 121, 0.3), transparent);
	transform: skewX(-18deg);
	animation: hanel-auth-shine 2.8s ease-in-out infinite;
}

@keyframes hanel-auth-shine {
	0% {
		left: -40%;
	}
	55%,
	100% {
		left: 130%;
	}
}

.hanel-auth__back {
	display: block;
	width: 100%;
	margin-top: 0.7rem;
	padding: 0.35rem;
	border: 0;
	background: none;
	color: var(--hanel-auth-muted);
	font-family: inherit;
	font-size: 0.86rem;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
}

.hanel-auth__back:hover {
	color: #9a7420;
	transform: translateX(-3px);
}

.hanel-auth__msg {
	margin: 0.9rem 0 0;
	padding: 0.65rem 0.8rem;
	border-radius: 0.8rem;
	font-size: 0.86rem;
	line-height: 1.6;
	animation: hanel-auth-rise 0.35s var(--hanel-auth-ease) both;
}

.hanel-auth__msg.is-error {
	background: #fff1f0;
	color: #b42318;
}

.hanel-auth__msg.is-ok {
	background: #edf8f1;
	color: #1f8a52;
}

.hanel-auth__fine {
	position: relative;
	z-index: 1;
	margin: 1.05rem 0 0;
	font-size: 0.75rem;
	line-height: 1.7;
	color: var(--hanel-auth-muted);
	text-align: center;
}

.hanel-auth__step[hidden] {
	display: none;
}

.hanel-auth__step.is-active:not([hidden]) {
	animation: hanel-auth-step 0.55s var(--hanel-auth-ease) both;
}

@keyframes hanel-auth-step {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
		filter: blur(3px);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

.hanel-auth__body {
	position: relative;
	z-index: 1;
	transition: opacity 0.42s ease, transform 0.42s var(--hanel-auth-ease);
}

.hanel-auth__body[hidden] {
	display: none !important;
}

.hanel-auth.is-clearing .hanel-auth__body {
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
}

.hanel-auth__success {
	position: relative;
	z-index: 2;
	display: none;
	place-content: center;
	place-items: center;
	gap: 0.7rem;
	min-height: 16rem;
	padding: 1.8rem 1rem;
}

.hanel-auth.is-success .hanel-auth__success:not([hidden]) {
	display: grid;
	animation: hanel-auth-rise 0.45s var(--hanel-auth-ease) both;
}

.hanel-auth__success[hidden] {
	display: none !important;
}

.hanel-auth__burst {
	position: absolute;
	top: 42%;
	left: 50%;
	width: 0;
	height: 0;
	pointer-events: none;
}

.hanel-auth__burst span {
	position: absolute;
	top: 0;
	left: 0;
	width: 7px;
	height: 7px;
	margin: -3px;
	border-radius: 50%;
	background: var(--hanel-auth-gold-bright);
	box-shadow: 0 0 10px rgba(232, 201, 121, 0.7);
	opacity: 0;
}

.hanel-auth.is-success .hanel-auth__burst span {
	animation: hanel-auth-burst 0.95s var(--hanel-auth-ease) both;
}

.hanel-auth.is-success .hanel-auth__burst span:nth-child(odd) {
	width: 5px;
	height: 5px;
	background: #c5a059;
}

.hanel-auth.is-success .hanel-auth__burst span:nth-child(1) { animation-delay: 0.12s; }
.hanel-auth.is-success .hanel-auth__burst span:nth-child(2) { animation-delay: 0.16s; }
.hanel-auth.is-success .hanel-auth__burst span:nth-child(3) { animation-delay: 0.2s; }
.hanel-auth.is-success .hanel-auth__burst span:nth-child(4) { animation-delay: 0.24s; }
.hanel-auth.is-success .hanel-auth__burst span:nth-child(5) { animation-delay: 0.18s; }
.hanel-auth.is-success .hanel-auth__burst span:nth-child(6) { animation-delay: 0.22s; }
.hanel-auth.is-success .hanel-auth__burst span:nth-child(7) { animation-delay: 0.14s; }
.hanel-auth.is-success .hanel-auth__burst span:nth-child(8) { animation-delay: 0.26s; }

@keyframes hanel-auth-burst {
	0% {
		opacity: 0;
		transform: rotate(var(--a)) translateY(0) scale(0.3);
	}
	25% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: rotate(var(--a)) translateY(-78px) scale(0.2);
	}
}

.hanel-auth__success-mark {
	position: relative;
	z-index: 1;
	width: 5.4rem;
	height: 5.4rem;
}

.hanel-auth__success-circle,
.hanel-auth__success-check {
	stroke: var(--hanel-auth-gold);
}

.hanel-auth__success-circle {
	stroke-dasharray: 214;
	stroke-dashoffset: 214;
}

.hanel-auth__success-check {
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
}

.hanel-auth.is-success .hanel-auth__success-circle {
	animation: hanel-auth-draw 0.7s 0.08s var(--hanel-auth-ease) forwards;
}

.hanel-auth.is-success .hanel-auth__success-check {
	animation: hanel-auth-draw 0.45s 0.55s var(--hanel-auth-ease) forwards;
}

@keyframes hanel-auth-draw {
	to {
		stroke-dashoffset: 0;
	}
}

.hanel-auth.is-success .hanel-auth__success-mark {
	animation: hanel-auth-mark-pop 0.7s 0.05s var(--hanel-auth-ease) both;
}

@keyframes hanel-auth-mark-pop {
	0% {
		transform: scale(0.6);
		opacity: 0;
	}
	70% {
		transform: scale(1.08);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.hanel-auth__success-title,
.hanel-auth__success-sub {
	margin: 0;
	text-align: center;
}

.hanel-auth__success-title {
	font-size: 1.45rem;
	font-weight: 800;
	background: linear-gradient(120deg, #151923 0%, #9a7420 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hanel-auth__success-sub {
	font-size: 0.9rem;
	color: var(--hanel-auth-muted);
}

.hanel-auth.is-success .hanel-auth__success-title {
	animation: hanel-auth-rise 0.5s 0.35s var(--hanel-auth-ease) both;
}

.hanel-auth.is-success .hanel-auth__success-sub {
	animation: hanel-auth-rise 0.5s 0.48s var(--hanel-auth-ease) both;
}

.hanel-auth.is-leaving .hanel-auth__dialog,
.hanel-auth.is-leaving .hanel-auth__backdrop {
	animation: hanel-auth-leave 0.4s var(--hanel-auth-ease) forwards;
}

.hanel-auth.is-success .hanel-auth__glow {
	animation: hanel-auth-glow-win 1.2s ease-in-out;
}

@keyframes hanel-auth-glow-win {
	0%,
	100% {
		opacity: 0.7;
	}
	50% {
		opacity: 1;
		transform: scale(1.25);
	}
}

@keyframes hanel-auth-leave {
	to {
		opacity: 0;
		transform: translateY(-18px) scale(0.94);
	}
}

.hanel-auth.is-busy .hanel-auth__submit-text {
	animation: hanel-auth-pulse-text 0.9s ease-in-out infinite;
}

@keyframes hanel-auth-pulse-text {
	50% {
		opacity: 0.55;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hanel-auth,
	.hanel-auth__dialog,
	.hanel-auth__mote,
	.hanel-auth__spark,
	.hanel-auth__glow,
	.hanel-auth__eyebrow-dot,
	.hanel-auth__title-mark,
	.hanel-auth__submit-shine,
	.hanel-auth__seal,
	.hanel-auth__seal-spin,
	.hanel-auth__seal-spin--soft,
	.hanel-auth__seal-disc,
	.hanel-auth__eyebrow,
	.hanel-auth__title,
	.hanel-auth__hint,
	.hanel-auth__steps,
	.hanel-auth__fine,
	.hanel-auth__otp-box,
	.hanel-auth__step.is-active,
	.hanel-auth.is-shake .hanel-auth__dialog,
	.hanel-auth__success-circle,
	.hanel-auth__success-check,
	.hanel-auth__success-mark,
	.hanel-auth__success-title,
	.hanel-auth__success-sub,
	.hanel-auth__burst span,
	.hanel-auth.is-success .hanel-auth__dialog {
		animation: none !important;
		transition: none !important;
	}

	.hanel-auth.is-open .hanel-auth__dialog {
		transform: none;
	}
}

.hanel-auth-gate {
	max-width: 28rem;
	margin: 0 auto;
	padding: 2rem 1.5rem;
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: 0 18px 50px rgba(21, 25, 35, 0.08);
	text-align: center;
}

.hanel-auth-gate__eyebrow {
	display: inline-block;
	margin-bottom: 0.7rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgba(197, 160, 89, 0.14);
	color: #9a7420;
	font-size: 0.75rem;
	font-weight: 700;
}

.hanel-auth-gate__title {
	margin: 0 0 0.55rem;
	font-size: 1.45rem;
	font-weight: 800;
	color: #151923;
}

.hanel-auth-gate__text {
	margin: 0 0 1.25rem;
	color: #737887;
	line-height: 1.75;
}

.hanel-auth-gate__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(12rem, 100%);
	min-height: 3.1rem;
	padding: 0.75rem 1.3rem;
	border: 0;
	border-radius: 1rem;
	background: #151923;
	color: #fff;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	cursor: pointer;
}

.hanel-auth__handle {
	display: none;
	width: 2.6rem;
	height: 0.28rem;
	margin: 0 auto 0.85rem;
	border-radius: 99px;
	background: rgba(21, 25, 35, 0.14);
}

html.hanel-auth-lock,
html.hanel-auth-lock body {
	overflow: hidden;
	overscroll-behavior: none;
}

.hanel-auth__dialog {
	touch-action: pan-y;
	-webkit-overflow-scrolling: touch;
}

.hanel-auth__otp-box {
	min-height: var(--hanel-auth-otp);
}

@media (min-width: 900px) {
	.hanel-auth {
		padding: 2rem;
	}

	.hanel-auth__dialog {
		width: min(28.5rem, 100%);
		padding: 2.1rem 1.85rem 1.5rem;
	}

	.hanel-auth__title {
		font-size: 1.7rem;
	}

	.hanel-auth__seal {
		width: 6.8rem;
		height: 6.8rem;
	}
}

@media (max-width: 720px) {
	.hanel-auth {
		place-items: end center;
		padding: 0;
	}

	.hanel-auth__dialog {
		width: 100%;
		max-width: none;
		max-height: min(92dvh, 52rem);
		border-radius: 1.7rem 1.7rem 0 0;
		padding:
			0.7rem
			clamp(1rem, 4.5vw, 1.4rem)
			calc(1.15rem + var(--hanel-auth-safe-b));
		transform: translateY(110%);
		box-shadow:
			0 -18px 60px rgba(21, 25, 35, 0.28),
			0 0 0 1px rgba(197, 160, 89, 0.16);
	}

	.hanel-auth.is-open .hanel-auth__dialog {
		transform: translateY(0);
	}

	.hanel-auth.is-shake .hanel-auth__dialog {
		animation-name: hanel-auth-shake-sheet;
	}

	@keyframes hanel-auth-shake-sheet {
		0%,
		100% { transform: translateY(0); }
		25% { transform: translateY(0) translateX(-6px); }
		75% { transform: translateY(0) translateX(5px); }
	}

	.hanel-auth.is-leaving .hanel-auth__dialog {
		animation-name: hanel-auth-leave-sheet;
	}

	@keyframes hanel-auth-leave-sheet {
		to {
			opacity: 0;
			transform: translateY(42%);
		}
	}

	.hanel-auth__handle {
		display: block;
	}

	.hanel-auth__close {
		top: 0.85rem;
		left: max(0.85rem, env(safe-area-inset-left, 0px));
		width: 2.55rem;
		height: 2.55rem;
	}

	.hanel-auth__seal {
		width: 5.4rem;
		height: 5.4rem;
		margin-bottom: 0.85rem;
	}

	.hanel-auth__seal-disc {
		width: 3.9rem;
		height: 3.9rem;
	}

	.hanel-auth__logo {
		width: 2.7rem;
		max-height: 2rem;
	}

	.hanel-auth__top {
		margin-bottom: 1rem;
	}

	.hanel-auth__title {
		font-size: clamp(1.2rem, 5.4vw, 1.5rem);
	}

	.hanel-auth__hint {
		font-size: 0.84rem;
	}

	.hanel-auth__otp {
		gap: clamp(0.28rem, 1.8vw, 0.5rem);
	}

	.hanel-auth__otp-box {
		min-height: var(--hanel-auth-otp);
		font-size: clamp(1.1rem, 5vw, 1.35rem);
		border-radius: 0.8rem;
	}

	.hanel-auth__submit,
	.hanel-auth__field,
	.hanel-auth__input {
		min-height: 3.05rem;
	}

	.hanel-auth__success {
		min-height: 14rem;
	}

	.hanel-auth-gate {
		margin-inline: 0.75rem;
		padding: 1.5rem 1.15rem;
	}
}

@media (max-width: 380px) {
	.hanel-auth__seal {
		width: 4.6rem;
		height: 4.6rem;
	}

	.hanel-auth__seal-disc {
		width: 3.35rem;
		height: 3.35rem;
	}

	.hanel-auth__eyebrow {
		font-size: 0.68rem;
	}

	.hanel-auth__fine {
		font-size: 0.7rem;
	}
}

@media (max-height: 700px) {
	.hanel-auth__seal {
		width: 5rem;
		height: 5rem;
		margin-bottom: 0.7rem;
	}

	.hanel-auth__hint {
		margin-top: 0.35rem;
	}

	.hanel-auth__fine {
		margin-top: 0.75rem;
	}
}

@media (max-height: 540px) and (orientation: landscape) {
	.hanel-auth {
		place-items: center;
		padding: 0.45rem;
	}

	.hanel-auth__dialog {
		width: min(34rem, 100%);
		max-height: 96dvh;
		border-radius: 1.2rem;
		padding: 0.85rem 1.1rem 0.9rem;
		transform: translateY(12px) scale(0.98);
	}

	.hanel-auth.is-open .hanel-auth__dialog {
		transform: none;
	}

	.hanel-auth__handle,
	.hanel-auth__hint,
	.hanel-auth__fine,
	.hanel-auth__orbit,
	.hanel-auth__mote {
		display: none;
	}

	.hanel-auth__seal {
		width: 3.4rem;
		height: 3.4rem;
		margin: 0 auto 0.45rem;
	}

	.hanel-auth__seal-disc {
		width: 2.5rem;
		height: 2.5rem;
		animation: none;
	}

	.hanel-auth__top {
		margin-bottom: 0.55rem;
	}

	.hanel-auth__title {
		font-size: 1.15rem;
	}

	.hanel-auth__otp-box {
		min-height: 2.5rem;
		aspect-ratio: auto;
	}
}

.hanel-auth.is-keyboard .hanel-auth__seal {
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 0.45rem;
}

.hanel-auth.is-keyboard .hanel-auth__seal-disc {
	width: 2.55rem;
	height: 2.55rem;
	animation: none;
}

.hanel-auth.is-keyboard .hanel-auth__hint,
.hanel-auth.is-keyboard .hanel-auth__fine,
.hanel-auth.is-keyboard .hanel-auth__handle,
.hanel-auth.is-keyboard .hanel-auth__orbit {
	display: none;
}

.hanel-auth.is-keyboard .hanel-auth__top {
	margin-bottom: 0.55rem;
}

.hanel-auth.is-keyboard .hanel-auth__dialog {
	max-height: 100dvh;
}

@media (prefers-reduced-motion: reduce) {
	.hanel-auth.is-leaving .hanel-auth__dialog,
	.hanel-auth.is-keyboard .hanel-auth__dialog {
		animation: none !important;
		transition: none !important;
	}
}
