/* Shared 6-digit OTP boxes (login + step-up) */
.grapa-otp {
	width: 100%;
}
.grapa-otp-boxes {
	display: flex;
	justify-content: center;
	width: 100%;
	gap: 8px;
}
.grapa-otp-digit {
	width: 48px;
	height: 56px;
	padding: 0;
	border: 1px solid #e4e6ef;
	border-radius: 10px;
	background: #f5f8fa;
	color: #181c32;
	font-size: 1.35rem;
	font-weight: 700;
	text-align: center;
	caret-color: #009ef7;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	-moz-appearance: textfield;
}
.grapa-otp-digit::-webkit-outer-spin-button,
.grapa-otp-digit::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.grapa-otp-digit:focus {
	border-color: #009ef7;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 158, 247, .15);
}
.grapa-otp.is-error .grapa-otp-digit {
	border-color: #f1416c;
	background: #fff5f8;
}
@media (max-width: 420px) {
	.grapa-otp-boxes { gap: 6px; }
	.grapa-otp-digit {
		width: 42px;
		height: 50px;
		font-size: 1.2rem;
		border-radius: 8px;
	}
}

/* Shared stepper (login + step-up modal) */
.grapa-login-steps {
	--steps: 2;
	display: grid;
	grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
	width: 100%;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}
.grapa-login-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	min-width: 0;
}
.grapa-login-step-rail {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	position: relative;
	margin-bottom: 10px;
}
.grapa-login-step-num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	background: #f5f8fa;
	color: #7e8299;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}
.grapa-login-step.is-active .grapa-login-step-num,
.grapa-login-step.is-done .grapa-login-step-num {
	background: #009ef7;
	color: #fff;
}
.grapa-login-step-line {
	display: none;
}
.grapa-login-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 17px;
	left: calc(50% + 22px);
	width: calc(100% - 44px);
	height: 2px;
	background: #e4e6ef;
	z-index: 0;
}
.grapa-login-step.is-done:not(:last-child)::after {
	background: #009ef7;
}
.grapa-login-step-title {
	font-weight: 700;
	font-size: 13px;
	color: #181c32;
	line-height: 1.2;
}
.grapa-login-step-sub {
	font-size: 11px;
	color: #a1a5b7;
	margin-top: 2px;
	line-height: 1.3;
}
.grapa-login-step.is-active .grapa-login-step-title { color: #009ef7; }

@media (max-width: 991.98px) {
	.grapa-login-steps {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: fit-content;
		max-width: 100%;
		margin: 0 auto 1.5rem;
		gap: 0;
	}
	.grapa-login-step {
		flex-direction: row;
		align-items: stretch;
		text-align: left;
		padding: 0;
		width: 100%;
	}
	.grapa-login-step:not(:last-child)::after { display: none; }
	.grapa-login-step-rail {
		flex-direction: column;
		align-items: center;
		width: 36px;
		margin: 0 14px 0 0;
		margin-bottom: 0;
	}
	.grapa-login-step-line {
		display: block;
		width: 2px;
		flex: 1 1 auto;
		min-height: 18px;
		background: #e4e6ef;
		margin-top: 6px;
		border-radius: 2px;
	}
	.grapa-login-step.is-done .grapa-login-step-line { background: #009ef7; }
	.grapa-login-step:last-child .grapa-login-step-line { display: none; }
	.grapa-login-step-text {
		padding-top: 6px;
		padding-bottom: 14px;
	}
	.grapa-login-step:last-child .grapa-login-step-text { padding-bottom: 0; }
}
