@font-face { font-family: 'YKWP Vazirmatn'; src: url('../../font/Vazirmatn-Medium.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }

.ykwp-login-page {
	margin: 0;
	background: var(--ykwp-page, #f3ece3);
	color: #172b46;
	font-family: 'YKWP Vazirmatn', Tahoma, sans-serif;
}
.ykwp-page-shell {
	box-sizing: border-box;
	display: grid;
	min-height: 100vh;
	min-height: 100svh;
	place-items: center;
	padding: clamp(18px, 5vw, 68px);
}
.ykwp-login-layout {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, .86fr);
	align-items: stretch;
	gap: clamp(24px, 4vw, 58px);
	width: min(100%, 990px);
	padding: clamp(24px, 4vw, 52px);
	border: 1px solid #e4d7c8;
	border-radius: 32px;
	background: var(--ykwp-card, #fffdf9);
	box-shadow: 0 24px 75px #112b530e;
}
.ykwp-login-content {
	align-self: center;
	width: 100%;
	min-width: 0;
	margin: 0 auto;
}
.ykwp-login-visual {
	position: relative;
	min-width: 0;
	min-height: 460px;
	overflow: hidden;
	background: #112b53;
	border: 1px solid #c2a181;
	border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px;
	box-shadow: 0 16px 34px #112b5319;
}
.ykwp-login-visual img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 62%;
}
.ykwp-native-brand {
	display: grid;
	justify-items: center;
	gap: 12px;
	margin-bottom: 24px;
}
.ykwp-native-brand img { display: block; box-sizing: border-box; width: 76px; height: 76px; padding: 4px; border: 1px solid #e5d8ca; border-radius: 50%; background: #f3ece3; object-fit: contain; }
.ykwp-native-brand h1 { margin: 0; color: var(--ykwp-accent); font: inherit; font-size: 19px; }
.ykwp-login-content .ykwp-native-brand ~ :is(h2, .u-columns h2) { color: #112b53; font-size: 21px; }
.ykwp-login-content :is(.u-columns, #customer_login) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ykwp-login-content :is(.u-columns, #customer_login)::before,
.ykwp-login-content :is(.u-columns, #customer_login)::after { content: none; }
.ykwp-login-content :is(.u-column1, .u-column2) { float: none; width: auto; min-width: 0; }
.ykwp-login-content form:is(.woocommerce-form-login, .woocommerce-form-register):not(.ykwp-auth) {
	box-sizing: border-box;
	margin: 12px 0 0;
	padding: clamp(14px, 2.4vw, 23px);
	border: 1px solid #e4d7c8;
	border-radius: 15px;
	background: #f9f5ef;
	font: inherit;
}
.ykwp-login-content form:not(.ykwp-auth) :is(input[type=text], input[type=email], input[type=password]) {
	box-sizing: border-box;
	width: 100%;
	min-height: 45px;
	padding: 9px 13px;
	border: 1px solid #d5c9bc;
	border-radius: 8px;
	background: #fff;
	color: #172b46;
	font: inherit;
}
.ykwp-login-content form:not(.ykwp-auth) .password-input { width: 100%; }
.ykwp-login-content form:not(.ykwp-auth) :is(.woocommerce-form-login__submit, .woocommerce-form-register__submit) {
	float: none;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--ykwp-button);
	border-radius: 8px;
	background: var(--ykwp-button);
	color: #fff;
	font: inherit;
}
.ykwp-login-content form:not(.ykwp-auth) a { color: var(--ykwp-accent); }
.ykwp-login-content form:not(.ykwp-auth) :is(input, button, a):focus-visible {
	outline: 2px solid var(--ykwp-accent);
	outline-offset: 3px;
}
@media (min-width: 1000px) {
	.ykwp-login-layout--native:has(.u-column2) {
		grid-template-columns: minmax(0, 1fr) 240px;
		width: min(100%, 1120px);
	}
	.ykwp-login-content :is(.u-columns, #customer_login):has(.u-column2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.ykwp-login-layout { grid-template-columns: minmax(0, 1fr); max-width: 485px; gap: 0; }
	.ykwp-login-visual { display: none; }
}

.ykwp-auth { --ykwp-accent: #112b53; --ykwp-button: #112b53; --ykwp-card: #fffdf9; --ykwp-ink: #172b46; --ykwp-muted: #52637a; --ykwp-error: #a83d43; box-sizing: border-box; direction: rtl; font-family: 'YKWP Vazirmatn', Tahoma, sans-serif; color: var(--ykwp-ink); text-align: right; }
.ykwp-auth *, .ykwp-auth *::before, .ykwp-auth *::after { box-sizing: border-box; }
.ykwp-auth [hidden] { display: none !important; }
.ykwp-auth button, .ykwp-auth input { font: inherit; -webkit-tap-highlight-color: transparent; }
.ykwp-auth button { cursor: pointer; }
.ykwp-auth button:disabled { cursor: wait; }
.ykwp-auth button:focus-visible, .ykwp-auth input:focus-visible { outline: 2px solid var(--ykwp-accent); outline-offset: 4px; }
.ykwp-auth svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ykwp-auth .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.woocommerce form.woocommerce-form.ykwp-auth, form.woocommerce-form.ykwp-auth { position: relative; width: 100%; max-width: 420px; margin: 0 auto; padding: 30px clamp(18px, 4vw, 36px) 20px; background: var(--ykwp-card); border: 1px solid #e5d8ca; border-radius: 20px; box-shadow: 0 24px 70px -25px #112b531c, 0 5px 18px #22243e05; animation: ykwp-appear .6s ease-out; }
.ykwp-auth::before { content: ''; position: absolute; top: -1px; left: calc(50% - 23px); width: 46px; height: 3px; border-radius: 0 0 5px 5px; background: #c2a181; }
.ykwp-auth .ykwp-auth-brand { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ykwp-auth .site-logo { width: 76px; height: 76px; padding: 4px; border: 1px solid #e5d8ca; border-radius: 50%; background: #f3ece3; }
.ykwp-auth .site-logo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.ykwp-store-return { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 9px; width: fit-content; max-width: 100%; min-height: 44px; margin: 18px auto 0; padding: 8px 18px; border: 1px solid #e5d8ca; border-radius: 10px; background: transparent; color: #112b53; font-family: 'YKWP Vazirmatn', Tahoma, sans-serif; font-size: 12px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ykwp-store-return:hover { border-color: var(--ykwp-accent, #112b53); box-shadow: 0 5px 15px #112b5316; color: var(--ykwp-accent, #112b53); transform: translateY(-1px); }
.ykwp-store-return:focus-visible { outline: 2px solid var(--ykwp-accent, #112b53); outline-offset: 3px; }
.ykwp-store-return svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ykwp-auth .site-title { font-size: 14px; font-weight: 600; margin: 0; background: var(--ykwp-card); padding: 0 9px; color: var(--ykwp-ink); }
.ykwp-auth .entry-heading { text-align: center; margin-top: 26px; }
.ykwp-auth .greeting { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 9px; color: #52637a; font-size: 10px; }
.ykwp-auth .greeting svg { width: 13px; height: 13px; color: var(--ykwp-accent); stroke-width: 1.2; }
.ykwp-auth .entry-heading h1 { font-size: clamp(24px, 2.4vw, 31px); font-weight: 700; margin: 0 0 10px; line-height: 1.5; color: var(--ykwp-ink); }
.ykwp-auth .entry-heading p { color: var(--ykwp-muted); font-size: 14px; margin: 0; line-height: 1.9; }
.ykwp-auth .auth-panel { margin-top: 13px; }
.ykwp-auth .phone-step { padding-top: 12px; }
.ykwp-auth .phone-step label { display: block; margin: 0 0 9px; font-size: 12px; font-weight: 600; color: var(--ykwp-ink); }
.ykwp-auth .phone-input { display: block; width: 100%; height: 54px; padding: 0 16px; border: 1px solid #d8cabb; border-radius: 12px; background: #fff; box-shadow: none; color: var(--ykwp-ink); text-align: center; font-size: 17px; letter-spacing: 2px; direction: ltr; }
.ykwp-auth .phone-input:focus { border-color: var(--ykwp-accent); box-shadow: 0 0 0 3px #112b5308; outline: none; }
.ykwp-auth .phone-input::placeholder { color: #657185; }
.ykwp-auth .phone-step .submit-button { margin-top: 0; }
.ykwp-auth .recipient { margin: 0; text-align: center; color: var(--ykwp-muted); font-size: 11px; }
.ykwp-auth .recipient b { display: inline-block; color: var(--ykwp-ink); font-size: 12px; font-weight: 600; }
.ykwp-auth .otp-stage { position: relative; height: 116px; display: grid; place-items: center; transition: height .405s ease; }
.ykwp-auth .otp-fields { position: relative; z-index: 2; display: flex; gap: 8px; width: 100%; justify-content: center; }
.ykwp-auth .otp-tile { position: relative; width: calc((100% - 40px) / 6); height: 63px; background: #fff; border: 1px solid #d8cabb; border-radius: 11px; box-shadow: none; transition: border-color .2s, box-shadow .2s, translate .2s; will-change: transform; }
.ykwp-auth .otp-tile:focus-within { border-color: var(--ykwp-accent); box-shadow: 0 0 0 3px #112b5308, 0 5px 12px #112b530a; translate: 0 -2px; }
.ykwp-auth .otp-tile.filled:not(:focus-within) { border-color: #97aac5; box-shadow: 0 3px 0 #e5edf8; }
.ykwp-auth .otp-tile input { display: block; width: 100%; height: 100%; border: 0; outline: none; padding: 0; background: transparent; text-align: center; direction: ltr; font-size: 24px; color: var(--ykwp-ink); caret-color: var(--ykwp-accent); border-radius: inherit; box-shadow: none; }
.ykwp-auth .otp-tile input:focus { border: 0; outline: none; box-shadow: none; }
.ykwp-auth .otp-tile input::placeholder { color: #8d99a9; font-size: 20px; }
.ykwp-auth .status { min-height: 27px; padding: 3px 0 7px; margin: 0; color: var(--ykwp-muted); font-size: 12px; text-align: center; line-height: 1.8; }
.ykwp-auth .submit-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 44px; border: 1px solid var(--ykwp-button); border-radius: 12px; background: var(--ykwp-button); color: #fff; box-shadow: 0 4px 9px #25263810, inset 0 1px 0 #ffffff12; font-size: 14px; font-weight: 500; transition: filter .2s, transform .2s, box-shadow .2s; }
.ykwp-auth .submit-button:hover:not(:disabled) { filter: brightness(1.13); color: #fff; box-shadow: 0 6px 15px #25263820; transform: translateY(-1px); }
.ykwp-auth .submit-button:active:not(:disabled) { transform: translateY(1px); }
.ykwp-auth .submit-button svg { width: 17px; height: 17px; }
.ykwp-auth .button-arrow { position: absolute; left: 11px; color: #f3ece3; background: #ffffff0d; border-radius: 7px; padding: 6px; box-sizing: content-box; transition: translate .2s; }
.ykwp-auth .submit-button:hover:not(:disabled) .button-arrow { translate: -2px 0; }
.ykwp-auth .button-spinner { display: none; position: absolute; left: 18px; width: 15px; height: 15px; border: 1.5px solid #ffffff40; border-top-color: #fff; border-radius: 50%; animation: ykwp-spin .8s linear infinite; }
.ykwp-auth .busy .button-spinner { display: block; }
.ykwp-auth .busy .button-arrow { display: none; }
.ykwp-auth .ykwp-auth__links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 23px; }
.ykwp-auth .ykwp-auth__links button { border: 0; min-height: 36px; padding: 2px 0; background: transparent; color: #52637a; font-size: 12px; }
.ykwp-auth .ykwp-auth__links button:hover:not(:disabled) { color: var(--ykwp-accent); }
.ykwp-auth .ykwp-auth__links button:disabled { opacity: .6; }
.ykwp-auth .card-footer { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 15px 0 0; margin-top: 20px; border-top: 1px solid #ebe0d5; }
.ykwp-auth .security-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ykwp-muted); }
.ykwp-auth .card-footer svg { width: 13px; height: 13px; }
.ykwp-auth .code-step.invalid .otp-tile { border-color: #d39f9f; }
.ykwp-auth .status.is-error { color: var(--ykwp-error); }
.ykwp-auth .status.is-success { color: var(--ykwp-accent); }
.ykwp-auth .orbit-guide { position: absolute; width: 154px; height: 154px; border: 1px dashed #c5d5e9; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.ykwp-auth .code-step.orbiting .otp-stage { height: 210px; }
.ykwp-auth .code-step.orbiting .orbit-guide { opacity: 1; }
.ykwp-auth .code-step.orbiting .otp-tile { border-color: #aabcce; box-shadow: 0 4px 0 #112b530a; }
.ykwp-auth .code-step.orbiting .otp-tile input { color: var(--ykwp-accent); }
.ykwp-auth .success-emblem { position: absolute; z-index: 3; display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid #22a565; border-radius: 22px; background: #22a565; color: #fff; opacity: 0; transform: scale(.4) rotate(-15deg); transition: opacity .27s, transform .495s cubic-bezier(.2,1.5,.5,1); pointer-events: none; }
.ykwp-auth .success-emblem svg { width: 48px; height: 48px; stroke-width: 5; }
.ykwp-auth .success-emblem path { stroke-dasharray: 55; stroke-dashoffset: 55; }
.ykwp-auth .code-step.verified .success-emblem { opacity: 1; transform: scale(1) rotate(0); }
.ykwp-auth .code-step.verified .success-emblem path { animation: ykwp-draw-check .45s .18s forwards; }
.ykwp-auth .success-ring { position: absolute; inset: -15px; border: 1px solid #22a56526; border-radius: 32px; }
.ykwp-auth .code-step.verified .success-ring { animation: ykwp-celebrate .72s ease-out forwards; }
.ykwp-auth .ykwp-auth__notice { margin-top: 16px; font-size: 11px; color: var(--ykwp-muted); text-align: center; }
@keyframes ykwp-spin { to { transform: rotate(360deg); } }
@keyframes ykwp-draw-check { to { stroke-dashoffset: 0; } }
@keyframes ykwp-celebrate { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes ykwp-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .ykwp-page-shell { padding: 24px 18px; } .woocommerce form.woocommerce-form.ykwp-auth, form.woocommerce-form.ykwp-auth { padding: 22px 18px 16px; border-radius: 18px; } .ykwp-auth .entry-heading h1 { font-size: 22px; } .ykwp-auth .otp-tile { height: 58px; } }
@media (max-width: 350px) { .woocommerce form.woocommerce-form.ykwp-auth, form.woocommerce-form.ykwp-auth { padding-inline: 20px; } .ykwp-auth .otp-fields { gap: 5px; } .ykwp-auth .otp-tile { width: calc((100% - 25px) / 6); height: 51px; } }
@media (prefers-reduced-motion: reduce) { .ykwp-auth, .ykwp-auth *, .ykwp-auth *::before, .ykwp-auth *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.ykwp-login-content form.woocommerce-form.ykwp-auth {
	max-width: 415px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.ykwp-login-content .ykwp-auth::before { content: none; }
.ykwp-login-content .ykwp-store-return { margin-top: 24px; }
@media (max-width: 480px) {
	.ykwp-login-layout { padding: 27px 19px; border-radius: 22px; }
	.ykwp-auth .entry-heading p { font-size: 13px; }
}
