:root {
	--shopland-auth-accent: var(--wd-primary-color, #e40046);
	--shopland-auth-text: var(--wd-title-color, #242424);
	--shopland-auth-muted: #737373;
	--shopland-auth-border: #e5e7eb;
	--shopland-auth-surface: #fff;
}

.shopland-auth-page {
	display: grid;
	min-height: 560px;
	padding: clamp(24px, 5vw, 64px) 18px;
	place-items: start center;
	background:
		radial-gradient(circle at 85% 10%, rgba(228, 0, 70, .08), transparent 34%),
		linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.shopland-auth-page__inner {
	width: min(100%, 460px);
}

.shopland-auth-standalone,
.shopland-auth-host-form {
	margin: 0 !important;
}

.shopland-auth,
.shopland-auth * {
	box-sizing: border-box;
}

.shopland-auth {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 38px);
	border: 1px solid var(--shopland-auth-border);
	border-radius: 22px;
	background: var(--shopland-auth-surface);
	box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
	color: var(--shopland-auth-text);
	direction: rtl;
	text-align: right;
}

.shopland-auth [hidden],
.shopland-auth-native-field[hidden] {
	display: none !important;
}

.shopland-auth__brand {
	display: grid;
	width: 58px;
	height: 58px;
	margin: 0 auto 22px;
	border-radius: 18px;
	background: var(--shopland-auth-accent);
	box-shadow: 0 12px 26px rgba(228, 0, 70, .22);
	place-items: center;
}

.shopland-auth__brand span {
	position: relative;
	display: block;
	width: 23px;
	height: 17px;
	border: 2px solid #fff;
	border-radius: 5px;
}

.shopland-auth__brand span::before {
	position: absolute;
	top: -10px;
	right: 5px;
	width: 9px;
	height: 9px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--shopland-auth-accent);
	content: "";
}

.shopland-auth__step {
	position: relative;
	animation: shopland-auth-in .22s ease-out;
}

.shopland-auth__step--password,
.shopland-auth__step--otp {
	padding-top: 48px;
}

@keyframes shopland-auth-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

.shopland-auth__title {
	margin: 0 0 9px;
	color: var(--shopland-auth-text);
	text-align: center;
	font-size: clamp(22px, 5vw, 27px);
	font-weight: 800;
	line-height: 1.35;
}

.shopland-auth__description {
	margin: 0 0 24px;
	color: var(--shopland-auth-muted);
	text-align: center;
	font-size: 14px;
	line-height: 1.9;
}

.shopland-auth label {
	display: block;
	margin: 0 0 8px;
	color: var(--shopland-auth-text);
	font-size: 13px;
	font-weight: 700;
}

.shopland-auth input.input-text {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0 0 14px;
	padding: 0 16px;
	border: 1px solid #d5d9e0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03) inset;
	color: #1f2937;
	font-size: 16px;
	line-height: 54px;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.shopland-auth input.input-text:focus {
	border-color: var(--shopland-auth-accent);
	box-shadow: 0 0 0 3px rgba(228, 0, 70, .11);
}

.shopland-auth__identifier,
.shopland-auth__code,
.shopland-auth__identity,
.shopland-auth__otp-mobile {
	direction: ltr !important;
	unicode-bidi: isolate;
}

.shopland-auth__identifier,
.shopland-auth__code {
	text-align: left !important;
}

.shopland-auth__code {
	letter-spacing: .28em;
	text-align: center !important;
	font-size: 21px !important;
	font-weight: 700;
}

.shopland-auth .button.alt,
.shopland-auth__continue,
.shopland-auth__password-submit,
.shopland-auth__verify {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 10px 20px;
	border: 0 !important;
	border-radius: 12px;
	background: var(--shopland-auth-accent) !important;
	box-shadow: 0 10px 22px rgba(228, 0, 70, .17);
	color: #fff !important;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.5;
	transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.shopland-auth .button.alt:hover,
.shopland-auth__continue:hover,
.shopland-auth__password-submit:hover,
.shopland-auth__verify:hover {
	box-shadow: 0 13px 26px rgba(228, 0, 70, .23);
	transform: translateY(-1px);
}

.shopland-auth button:disabled {
	opacity: .6;
	cursor: wait;
	transform: none !important;
}

.shopland-auth__back {
	position: absolute;
	top: 0;
	right: 0 !important;
	left: auto !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: auto !important;
	height: 36px;
	min-height: 0 !important;
	padding: 0 11px !important;
	border: 1px solid rgba(228, 0, 70, .17) !important;
	border-radius: 10px !important;
	background: #fff3f6 !important;
	box-shadow: none !important;
	color: var(--shopland-auth-accent) !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transform: none !important;
}

.shopland-auth__back svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.shopland-auth__identity-line {
	margin: 0 0 9px;
	text-align: center;
}

.shopland-auth__identity {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #f4f5f7;
	color: #4b5563;
	font-size: 13px;
}

.shopland-auth__password-wrap {
	position: relative;
}

.shopland-auth__password-wrap input {
	padding-left: 56px !important;
}

.shopland-auth .shopland-auth__show-password {
	position: absolute;
	top: 7px;
	right: auto !important;
	left: 7px !important;
	display: grid;
	width: 40px !important;
	height: 40px;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #6b7280 !important;
	cursor: pointer;
	transform: none !important;
	place-items: center;
}

.shopland-auth__show-password:hover,
.shopland-auth__show-password.is-visible {
	background: #f3f4f6 !important;
	color: var(--shopland-auth-accent) !important;
}

.shopland-auth__show-password svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.shopland-auth__show-password::after {
	position: absolute;
	width: 23px;
	border-top: 2px solid currentColor;
	content: "";
	opacity: 0;
	transform: rotate(-42deg);
}

.shopland-auth__show-password.is-visible::after {
	opacity: 1;
}

.shopland-auth__lost-password,
.shopland-auth__use-otp {
	display: block;
	width: 100%;
	margin: 14px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--shopland-auth-accent);
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.shopland-auth__sent-to bdi,
.shopland-auth__identity {
	white-space: nowrap;
}

.shopland-auth__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
}

.shopland-auth__actions button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--shopland-auth-accent);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.shopland-auth__message {
	margin: 16px 0 0;
	padding: 10px 12px;
	border-radius: 9px;
	text-align: center;
	font-size: 13px;
	line-height: 1.7;
}

.shopland-auth__message:empty {
	display: none;
}

.shopland-auth__message.is-error {
	background: #fff1f2;
	color: #b42318;
}

.shopland-auth__message.is-success {
	background: #ecfdf3;
	color: #067647;
}

.login-dropdown-inner .shopland-auth,
.login-form-side .shopland-auth {
	padding: 20px;
	border: 0;
	border-radius: 14px;
	box-shadow: none;
}

.login-dropdown-inner .shopland-auth__brand,
.login-form-side .shopland-auth__brand {
	width: 46px;
	height: 46px;
	margin-bottom: 15px;
	border-radius: 14px;
}

.login-dropdown-inner .shopland-auth__title,
.login-form-side .shopland-auth__title {
	font-size: 20px;
}

.login-form-side .create-account-question {
	display: none !important;
}

body.login .shopland-auth {
	padding: 26px 22px;
	border-radius: 16px;
	box-shadow: 0 15px 45px rgba(15, 23, 42, .12);
}

body.login form.shopland-auth-host-form {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

@media (max-width: 575px) {
	.shopland-auth-page {
		min-height: auto;
		padding: 18px 10px;
		background: #fff;
	}

	.shopland-auth {
		padding: 24px 18px;
		border-radius: 16px;
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shopland-auth__step {
		animation: none;
	}
}
