@font-face {
	font-family: "Yekan Bakh";
	src: url("/static/web/idx2/fonts/Yekan_Bakh_Fanum_Regular.TTF") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Yekan Bakh";
	src: url("/static/web/idx2/fonts/Yekan_Bakh_Fanum_Medium.TTF") format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Yekan Bakh";
	src: url("/static/web/idx2/fonts/Yekan_Bakh_Fanum_Semi_Bold.TTF") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Yekan Bakh";
	src: url("/static/web/idx2/fonts/Yekan_Bakh_Fanum_Bold.TTF") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Yekan Bakh";
	src: url("/static/web/idx2/fonts/Yekan_Bakh_Fanum_Extra_Bold.TTF") format("truetype");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {

	--brand: #1e3a5f;
	--brand-600: #182f4d;
	--brand-700: #122236;
	--brand-050: #eef2f7;
	--brand-100: #d7e0ec;

	--gold: #f4b400;
	--gold-600: #d99e00;
	--gold-050: #fff9e8;
	--gold-100: #fceec1;
	--gold-ink: #7a5a00;
	--ink: #1f2430;
	--ink-soft: #4b5161;
	--muted: #7a8194;
	--line: #ececf0;
	--paper: #ffffff;
	--bg: #f5f5f5;
}

* { box-sizing: border-box; }

.preloader {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--paper);
	transition: opacity .5s ease, visibility .5s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader__logo { width: 120px; height: auto; animation: wfPreLogo 1.2s ease infinite; }
.preloader__logo--dark { display: none; }
html[data-theme="dark"] .preloader__logo--light { display: none; }
html[data-theme="dark"] .preloader__logo--dark { display: block; }
@keyframes wfPreLogo {
	0%, 100% { transform: scale(1); opacity: .85; }
	50% { transform: scale(1.08); opacity: 1; }
}
.preloader__bar { display: block; width: 160px; height: 3px; background: var(--line); overflow: hidden; }
.preloader__bar i {
	display: block;
	height: 100%;
	width: 40%;
	background: linear-gradient(90deg, var(--brand), var(--gold));
	animation: wfPreBar .9s ease infinite;
}
@keyframes wfPreBar {
	0% { transform: translateX(-120%); }
	100% { transform: translateX(360%); }
}
@media (prefers-reduced-motion: reduce) {
	.preloader__logo, .preloader__bar i { animation: none; }
}

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: "Yekan Bakh", Vazirmatn, "IRANSans", Tahoma, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.stage {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	min-height: 100vh;
}

.content {
	background: var(--paper);
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border-inline-start: 4px solid var(--brand);
	position: relative;
}

.content__fade {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 72px;
	background: linear-gradient(to top, var(--paper) 16%, rgba(255, 255, 255, 0));
	pointer-events: none;
	z-index: 4;
	opacity: 1;
	transition: opacity .25s ease;
}
.scroll-hint {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 7px;
	background: var(--brand);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 14px;
	box-shadow: 0 8px 20px rgba(18, 34, 54, .28);
	pointer-events: none;
	white-space: nowrap;
	transition: opacity .25s ease, visibility .25s ease;
}
.scroll-hint svg { width: 14px; height: 14px; animation: hintbounce 1.4s ease-in-out infinite; }
@keyframes hintbounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}
.content.at-bottom .content__fade { opacity: 0; }
.content.at-bottom .scroll-hint { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
	.scroll-hint svg { animation: none; }
}

.content__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 40px;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	background: var(--paper);
	z-index: 3;
}

.mark {
	width: 46px;
	height: 46px;
	background: var(--brand);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -1px;
	flex-shrink: 0;
}

.content__bar h1 {
	font-size: 16px;
	margin: 0;
	line-height: 1.7;
	font-weight: 800;
}
.content__bar span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }

.scroll {
	overflow-y: auto;
	padding: 34px 40px 56px;
	line-height: 2.05;
	scrollbar-width: thin;
	scrollbar-color: var(--brand) var(--brand-050);
}
.scroll::-webkit-scrollbar { width: 11px; }
.scroll::-webkit-scrollbar-track { background: var(--brand-050); }
.scroll::-webkit-scrollbar-thumb { background: var(--brand-100); border: 2px solid var(--brand-050); }
.scroll::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.hero-title {
	font-size: 23px;
	font-weight: 800;
	margin: 0 0 6px;
	line-height: 1.6;
}
.hero-kicker {
	display: inline-block;
	background: var(--gold-050);
	color: var(--gold-ink);
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	margin-bottom: 16px;
	border: 1px solid var(--gold-100);
}

.sec { margin-top: 30px; }
.sec__h {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 800;
	margin: 0 0 12px;
	padding-inline-start: 12px;
	border-inline-start: 4px solid var(--brand);
}
.sec p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14.5px; text-align: justify; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
	position: relative;
	padding-inline-start: 24px;
	margin-bottom: 10px;
	color: var(--ink-soft);
	font-size: 14.5px;
	text-align: justify;
}
.list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 13px;
	width: 9px;
	height: 9px;
	background: var(--brand);
}

.ol { counter-reset: c; list-style: none; margin: 0; padding: 0; }
.ol li {
	position: relative;
	padding: 12px 52px 12px 14px;
	margin-bottom: 10px;
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
	color: var(--ink);
	font-size: 14.5px;
}
.ol li b { display: block; margin-bottom: 2px; }
.ol li::before {
	counter-increment: c;
	content: counter(c);
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: 40px;
	background: var(--brand);
	color: #fff;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
	border: 1px solid var(--line);
	border-top: 3px solid var(--brand);
	padding: 16px;
}
.card h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; }
.card p { margin: 0; font-size: 13px; color: var(--muted); }

.meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip {
	border: 1px solid var(--line);
	padding: 10px 14px;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	min-width: 150px;
}
.chip span { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.chip b { font-size: 14px; }
.chip--accent { background: var(--gold); border-color: var(--gold); color: var(--brand-700); }
.chip--accent span { color: rgba(18,34,54,.72); }

.signoff {
	margin-top: 30px;
	padding-top: 18px;
	border-top: 1px dashed var(--line);
	color: var(--muted);
	font-size: 13.5px;
}

.auth {
	background:
		linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 100%);
	color: #fff;
	padding: 68px 44px 56px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.auth::before {
	content: "";
	position: absolute;
	inset-inline-end: -90px;
	top: -90px;
	width: 260px;
	height: 260px;
	background: rgba(255,255,255,.07);
	transform: rotate(45deg);
}
.auth::after {
	content: "";
	position: absolute;
	inset-inline-start: -70px;
	bottom: -70px;
	width: 200px;
	height: 200px;
	border: 30px solid rgba(255,255,255,.06);
}

.auth__inner { position: relative; z-index: 2; max-width: 380px; margin: 0 auto; width: 100%; }

.auth__brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.auth__brandline .mark { background: #fff; color: var(--brand-700); }
.auth__brandline div { font-size: 12.5px; line-height: 1.7; font-weight: 600; opacity: .95; }

.auth h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.auth__lead { font-size: 14px; line-height: 1.9; opacity: .92; margin: 0 0 30px; }

.formcard {
	background: #fff;
	color: var(--ink);
	padding: 28px 26px;
	border-top: 4px solid var(--gold);
}
.formcard h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.formcard p.hint { margin: 0 0 22px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.formcard p.hint .masked { color: var(--brand-700); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field input {
	width: 100%;
	height: 50px;
	border: 1.5px solid var(--line);
	background: #fafafb;
	padding: 0 14px;
	font-size: 16px;
	font-family: inherit;
	color: var(--ink);
	letter-spacing: 1px;
	direction: ltr;
	text-align: center;
	transition: border-color .15s, background .15s;
	outline: none;
}
.field input::placeholder { letter-spacing: normal; color: #b9bdc9; }
.field input:focus { border-color: var(--brand); background: #fff; }

.field--text input { direction: rtl; text-align: right; letter-spacing: normal; }

.field input.code {
	letter-spacing: 10px;
	font-size: 22px;
	font-weight: 800;
	padding: 0;
}
.field input.code::placeholder { letter-spacing: 6px; font-weight: 500; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.btn {
	width: 100%;
	height: 52px;
	border: 0;
	background: var(--gold);
	color: var(--brand-700);
	font-size: 16px;
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s, transform .05s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.btn:hover { background: var(--gold-600); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #e7e9ee; color: var(--muted); cursor: default; }
.btn svg { width: 18px; height: 18px; }

.btn--ghost {
	background: transparent;
	color: var(--brand);
	border: 1.5px solid var(--brand-100);
	height: 48px;
	font-weight: 700;
	margin-top: 12px;
}
.btn--ghost:hover { background: var(--brand-050); }

.alert {
	padding: 11px 14px;
	font-size: 12.5px;
	line-height: 1.8;
	margin-bottom: 16px;
	border: 1px solid;
	border-inline-start-width: 4px;
}
.alert--error { background: #fdf1f1; border-color: #f0c9c9; border-inline-start-color: #d64545; color: #8d2b2b; }
.alert--warn { background: var(--gold-050); border-color: var(--gold-100); border-inline-start-color: var(--gold); color: var(--gold-ink); }
.alert--info { background: var(--brand-050); border-color: var(--brand-100); border-inline-start-color: var(--brand); color: var(--brand-700); }

.auth-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-top: 18px;
}
.auth-actions form { margin: 0; }
.auth-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--brand);
	cursor: pointer;
	text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.auth-link[disabled], .auth-link.is-disabled { color: var(--muted); cursor: default; text-decoration: none; }

.resend-line { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.resend-line b { color: var(--brand-700); font-variant-numeric: tabular-nums; }

.masked { direction: ltr; unicode-bidi: embed; font-weight: 700; }

.welcome { text-align: center; }
.welcome .avatar {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	background: var(--gold);
	color: var(--brand-700);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 800;
}
.welcome h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.welcome p { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.9; }

.auth__foot { margin-top: 26px; font-size: 12px; opacity: .85; text-align: center; }
.auth__foot a { color: #fff; text-decoration: underline; }

.auth__foot.powered {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	opacity: 1;
}
.auth__foot.powered span { font-size: 11.5px; opacity: .8; }
.auth__foot.powered a {
	display: inline-flex;
	text-decoration: none;
	opacity: .92;
	transition: opacity .15s;
}
.auth__foot.powered a:hover { opacity: 1; }
.auth__foot.powered img {
	height: 30px;
	width: auto;
	display: block;
}

.auth__copybar {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 6;
	background: var(--gold);
	color: var(--brand-700);
	text-align: center;
	padding: 6px 14px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.5;
}
.auth__copybar b { font-weight: 800; }
.auth__copybar a { color: var(--brand-700); text-decoration: none; }
.auth__copybar a:hover { text-decoration: underline; }
.auth__copybar-tel { unicode-bidi: plaintext; font-variant-numeric: tabular-nums; }

@media (max-width: 992px) {
	.stage { grid-template-columns: 1fr; }
	.content { order: 2; border-inline-start: 0; border-top: 4px solid var(--brand); }
	.auth { order: 1; padding: 68px 24px 52px; }
	.scroll { max-height: none; padding: 28px 22px 44px; }
	.content__bar { padding: 18px 22px; }
	.cards { grid-template-columns: 1fr; }
}
@media (min-width: 993px) {
	.content { height: 100vh; }
	.auth { height: 100vh; }
}

.wf-toolbar {
	position: absolute;
	top: 0;
	inset-inline: 0;
	z-index: 7;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
}
.wf-tbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 36px;
	min-width: 36px;
	padding: 0 10px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.wf-tbtn:hover { background: rgba(255, 255, 255, .18); }
.wf-tbtn:active { transform: translateY(1px); }
.wf-tbtn svg { width: 18px; height: 18px; }
.wf-tbtn .icon-sun { display: none; }
html[data-theme="dark"] .wf-tbtn .icon-moon { display: none; }
html[data-theme="dark"] .wf-tbtn .icon-sun { display: inline; }
.wf-lang-wrap { position: relative; }
.wf-lang-flag { display: inline-flex; }
.wf-lang-flag img { display: block; width: 18px; height: 18px; object-fit: cover; }
.wf-lang-label { line-height: 1; }
.wf-lang-menu {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	z-index: 20;
	margin: 0;
	padding: 6px;
	min-width: 168px;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: 0 12px 30px rgba(18, 34, 54, .22);
}
.wf-lang-menu[hidden] { display: none; }
.wf-lang-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink);
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: start;
}
.wf-lang-item:hover { background: var(--brand-050); }
.wf-lang-item.is-active { background: var(--brand-050); color: var(--brand-700); }
.wf-lang-sym { display: inline-flex; }
.wf-lang-sym img { display: block; width: 20px; height: 20px; object-fit: cover; }

.wf-tz { position: relative; }
.wf-tbtn--tz { gap: 8px; height: auto; min-height: 36px; padding-top: 5px; padding-bottom: 5px; }
.wf-tz-ico { width: 16px; height: 16px; flex-shrink: 0; }
.wf-tz-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.wf-tz-clock {
	direction: ltr;
	font-variant-numeric: tabular-nums;
	font-size: 12.5px;
	line-height: 1;
	min-width: 58px;
	text-align: center;
}
.wf-tz-flag { display: block; width: 18px; height: 18px; object-fit: cover; flex-shrink: 0; }
.wf-tz-label { line-height: 1; }
.wf-tz-date {
	font-size: 9.5px;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	opacity: .85;
}
.wf-tz-menu {
	inset-inline-start: auto;
	inset-inline-end: 0;
	min-width: 220px;
	max-height: 320px;
	overflow-y: auto;
}
@media (max-width: 560px) {
	.wf-tz-label { display: none; }
	.wf-tz-clock { min-width: 52px; }
}

html[data-theme="dark"] {
	--ink: #e6ebf3;
	--ink-soft: #b6c0cf;
	--muted: #8a94a6;
	--line: #2b3852;
	--paper: #141d2b;
	--bg: #0d1420;
	--brand-050: #1a2740;
	--brand-100: #243353;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .formcard {
	background: #141d2b;
	color: var(--ink);
}
html[data-theme="dark"] .field input {
	background: #0f1825;
	border-color: #2b3852;
	color: var(--ink);
}
html[data-theme="dark"] .field input::placeholder { color: #5a6678; }
html[data-theme="dark"] .field input:focus { background: #0f1825; border-color: var(--gold); }
html[data-theme="dark"] .formcard p.hint .masked { color: #9cc2ec; }
html[data-theme="dark"] .btn--ghost {
	color: #e6ebf3;
	border-color: #2f3e5a;
	background: transparent;
}
html[data-theme="dark"] .btn--ghost:hover { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .auth-link { color: #9cc2ec; }
html[data-theme="dark"] .alert--error { background: #2a1718; border-color: #5a2b2b; color: #f3b6b6; }
html[data-theme="dark"] .alert--info { background: #16243c; border-color: #28406a; color: #cfe0f5; }
html[data-theme="dark"] .scroll-hint { box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .content a,
html[data-theme="dark"] .scroll a { color: #9cc2ec; }
html[data-theme="dark"] .resend-line b { color: #9cc2ec; }
