@font-face {
	font-family: "FaraIbfIranSans";
	src: url("../fonts/iran/woff2/IRANSansWeb(FaNum).woff2") format("woff2"),
		url("../fonts/iran/woff/IRANSansWeb(FaNum).woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "FaraIbfIranSans";
	src: url("../fonts/iran/woff2/IRANSansWeb(FaNum)_Medium.woff2") format("woff2"),
		url("../fonts/iran/woff/IRANSansWeb(FaNum)_Medium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "FaraIbfIranSans";
	src: url("../fonts/iran/woff2/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"),
		url("../fonts/iran/woff/IRANSansWeb(FaNum)_Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--fara-auth-primary: #176b87;
	--fara-auth-primary-dark: #0f526a;
	--fara-auth-primary-soft: #eaf5f8;
	--fara-auth-accent: #d8a63f;
	--fara-auth-bg: #f3f6f8;
	--fara-auth-card: #ffffff;
	--fara-auth-text: #1c2932;
	--fara-auth-muted: #647580;
	--fara-auth-border: #dbe4e8;
	--fara-auth-error: #b42318;
	--fara-auth-error-bg: #fff1f0;
	--fara-auth-success: #027a48;
	--fara-auth-success-bg: #ecfdf3;
	--fara-auth-warning: #9a6700;
	--fara-auth-warning-bg: #fff8e1;
	--fara-auth-shadow: 0 24px 70px rgba(20, 52, 66, 0.14);
	--fara-auth-radius: 24px;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body.fara-ibf-auth-page {
	background: var(--fara-auth-bg);
	color: var(--fara-auth-text);
	font-family: "FaraIbfIranSans", Tahoma, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

button,
input {
	font: inherit;
}

a {
	color: var(--fara-auth-primary);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--fara-auth-primary-dark);
}

.fara-ibf-skip-link {
	position: fixed;
	top: -100px;
	right: 16px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	transition: top 0.2s ease;
}

.fara-ibf-skip-link:focus {
	top: 16px;
	color: #fff;
}

.fara-ibf-auth-shell {
	display: grid;
	grid-template-columns: minmax(340px, 44%) minmax(0, 56%);
	min-height: 100vh;
	min-height: 100dvh;
}

.fara-ibf-auth-brand {
	position: relative;
	display: flex;
	min-height: 100%;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
		radial-gradient(circle at 75% 85%, rgba(216, 166, 63, 0.26), transparent 34%),
		linear-gradient(145deg, #0b4459 0%, #176b87 54%, #1d829d 100%);
	color: #fff;
}

.fara-ibf-auth-brand::before,
.fara-ibf-auth-brand::after {
	content: "";
	position: absolute;
	z-index: -1;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
}

.fara-ibf-auth-brand::before {
	width: 430px;
	height: 430px;
	top: -210px;
	left: -180px;
}

.fara-ibf-auth-brand::after {
	width: 520px;
	height: 520px;
	right: -310px;
	bottom: -270px;
}

.fara-ibf-auth-brand-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 86%);
}

.fara-ibf-auth-brand-content {
	width: min(520px, 82%);
	margin: auto;
	padding: 72px 0 110px;
}

.fara-ibf-auth-logo-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin-bottom: 26px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.14);
	box-shadow: 0 16px 40px rgba(4, 36, 49, 0.22);
	backdrop-filter: blur(8px);
}

.fara-ibf-auth-logo {
	display: block;
	max-width: 66px;
	max-height: 66px;
	object-fit: contain;
}

.fara-ibf-auth-logo-fallback {
	font-size: 38px;
	font-weight: 700;
}

.fara-ibf-auth-eyebrow,
.fara-ibf-auth-kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.fara-ibf-auth-eyebrow {
	color: rgba(255, 255, 255, 0.68);
}

.fara-ibf-auth-brand h1 {
	max-width: 480px;
	margin: 0;
	font-size: clamp(30px, 3vw, 46px);
	line-height: 1.45;
	letter-spacing: -0.04em;
}

.fara-ibf-auth-brand-copy {
	max-width: 460px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 17px;
}

.fara-ibf-auth-features {
	display: grid;
	gap: 13px;
	margin: 38px 0 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.88);
}

.fara-ibf-auth-features li {
	display: flex;
	align-items: center;
	gap: 11px;
}

.fara-ibf-auth-features li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #ffe8a8;
	font-size: 12px;
	font-weight: 700;
}

.fara-ibf-auth-brand-footer {
	position: absolute;
	right: 9%;
	bottom: 30px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
}

.fara-ibf-auth-main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 48px clamp(28px, 6vw, 90px);
	background:
		radial-gradient(circle at 85% 15%, rgba(23, 107, 135, 0.07), transparent 28%),
		var(--fara-auth-bg);
}

.fara-ibf-auth-card {
	width: min(100%, 500px);
	padding: clamp(28px, 4.5vw, 50px);
	border: 1px solid rgba(219, 228, 232, 0.88);
	border-radius: var(--fara-auth-radius);
	background: var(--fara-auth-card);
	box-shadow: var(--fara-auth-shadow);
}

.fara-ibf-auth-mobile-brand {
	display: none;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	color: var(--fara-auth-primary-dark);
	font-weight: 700;
}

.fara-ibf-auth-mobile-brand img {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	object-fit: contain;
}

.fara-ibf-auth-header {
	margin-bottom: 28px;
}

.fara-ibf-auth-kicker {
	color: var(--fara-auth-primary);
}

.fara-ibf-auth-header h2 {
	margin: 0;
	font-size: clamp(25px, 3vw, 32px);
	line-height: 1.45;
	letter-spacing: -0.035em;
}

.fara-ibf-auth-header > p:last-child {
	margin: 10px 0 0;
	color: var(--fara-auth-muted);
	font-size: 14px;
}

.fara-ibf-auth-feedback:empty {
	display: none;
}

.fara-ibf-auth-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 20px;
	padding: 13px 14px;
	border: 1px solid transparent;
	border-radius: 13px;
	font-size: 13px;
	line-height: 1.75;
}

.fara-ibf-auth-alert p {
	margin: 0;
}

.fara-ibf-auth-alert p + p {
	margin-top: 4px;
}

.fara-ibf-auth-alert.error {
	border-color: #fecdca;
	background: var(--fara-auth-error-bg);
	color: var(--fara-auth-error);
}

.fara-ibf-auth-alert.success {
	border-color: #abefc6;
	background: var(--fara-auth-success-bg);
	color: var(--fara-auth-success);
}

.fara-ibf-auth-alert.warning {
	border-color: #f5d37a;
	background: var(--fara-auth-warning-bg);
	color: var(--fara-auth-warning);
}

.fara-ibf-auth-alert-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	background: currentColor;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.fara-ibf-auth-form {
	display: grid;
	gap: 20px;
}

.fara-ibf-auth-field {
	display: grid;
	gap: 8px;
}

.fara-ibf-auth-field > label,
.fara-ibf-auth-label-row label {
	color: #2b3a43;
	font-size: 13px;
	font-weight: 700;
}

.fara-ibf-auth-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.fara-ibf-auth-label-row a {
	font-size: 12px;
	font-weight: 500;
}

.fara-ibf-auth-input-wrap {
	position: relative;
}

.fara-ibf-auth-input-wrap input {
	width: 100%;
	height: 52px;
	padding: 0 46px 0 46px;
	border: 1px solid var(--fara-auth-border);
	border-radius: 13px;
	outline: 0;
	background: #fbfcfd;
	color: var(--fara-auth-text);
	font-size: 14px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.fara-ibf-auth-input-wrap input:hover {
	border-color: #b8c8cf;
}

.fara-ibf-auth-input-wrap input:focus {
	border-color: var(--fara-auth-primary);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(23, 107, 135, 0.11);
}

.fara-ibf-auth-input-wrap input[aria-invalid="true"] {
	border-color: var(--fara-auth-error);
	box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.fara-ibf-auth-input-icon {
	position: absolute;
	top: 50%;
	right: 15px;
	display: inline-flex;
	width: 19px;
	height: 19px;
	transform: translateY(-50%);
	color: #83939c;
	pointer-events: none;
}

.fara-ibf-auth-input-icon svg,
.fara-ibf-password-toggle svg,
.fara-ibf-auth-empty-state svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.fara-ibf-password-toggle {
	position: absolute;
	top: 50%;
	left: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 7px;
	border: 0;
	border-radius: 9px;
	outline: 0;
	background: transparent;
	color: #71838d;
	cursor: pointer;
	transform: translateY(-50%);
}

.fara-ibf-password-toggle:hover,
.fara-ibf-password-toggle:focus-visible {
	background: var(--fara-auth-primary-soft);
	color: var(--fara-auth-primary);
}

.fara-ibf-auth-help {
	margin: 0;
	color: var(--fara-auth-muted);
	font-size: 11px;
}

.fara-ibf-auth-help.is-match {
	color: var(--fara-auth-success);
}

.fara-ibf-auth-help.is-mismatch {
	color: var(--fara-auth-error);
}

.fara-ibf-auth-check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: fit-content;
	color: #53656f;
	font-size: 12px;
	cursor: pointer;
}

.fara-ibf-auth-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fara-ibf-auth-check > span {
	position: relative;
	display: inline-flex;
	width: 19px;
	height: 19px;
	border: 1px solid #bdcbd1;
	border-radius: 6px;
	background: #fff;
	transition: 0.18s ease;
}

.fara-ibf-auth-check input:focus-visible + span {
	box-shadow: 0 0 0 4px rgba(23, 107, 135, 0.12);
}

.fara-ibf-auth-check input:checked + span {
	border-color: var(--fara-auth-primary);
	background: var(--fara-auth-primary);
}

.fara-ibf-auth-check input:checked + span::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 6px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 0 2px 2px;
	transform: rotate(-45deg);
}

.fara-ibf-auth-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 0;
	border-radius: 13px;
	outline: 0;
	background: linear-gradient(135deg, var(--fara-auth-primary), var(--fara-auth-primary-dark));
	box-shadow: 0 12px 24px rgba(15, 82, 106, 0.22);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.fara-ibf-auth-submit:hover,
.fara-ibf-auth-submit:focus-visible {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 16px 30px rgba(15, 82, 106, 0.28);
}

.fara-ibf-auth-submit:disabled,
.fara-ibf-auth-submit.is-loading {
	cursor: wait;
	opacity: 0.78;
	transform: none;
}

.fara-ibf-auth-link-button {
	text-decoration: none;
}

.fara-ibf-auth-spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(255, 255, 255, 0.42);
	border-top-color: #fff;
	border-radius: 50%;
	animation: faraIbfAuthSpin 0.75s linear infinite;
}

.fara-ibf-auth-submit.is-loading .fara-ibf-auth-spinner {
	display: inline-block;
}

@keyframes faraIbfAuthSpin {
	to { transform: rotate(360deg); }
}

.fara-ibf-auth-secondary-link {
	display: inline-flex;
	margin-top: 20px;
	font-size: 12px;
	font-weight: 600;
}

.fara-ibf-auth-secondary-link.centered {
	display: flex;
	justify-content: center;
}

.fara-ibf-password-meter {
	margin-top: -10px;
}

.fara-ibf-password-meter-track {
	height: 5px;
	overflow: hidden;
	border-radius: 999px;
	background: #e9eef1;
}

.fara-ibf-password-meter-track span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #98a2b3;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.fara-ibf-password-meter small {
	display: block;
	margin-top: 6px;
	color: var(--fara-auth-muted);
	font-size: 10px;
}

.fara-ibf-password-rules {
	display: grid;
	gap: 5px;
	margin: -8px 0 0;
	padding: 0 18px 0 0;
	color: var(--fara-auth-muted);
	font-size: 10px;
}

.fara-ibf-password-rules li.is-valid {
	color: var(--fara-auth-success);
}

.fara-ibf-auth-account-state {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 22px;
	padding: 14px;
	border: 1px solid var(--fara-auth-border);
	border-radius: 14px;
	background: #f9fbfc;
}

.fara-ibf-auth-avatar {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--fara-auth-primary-soft);
	color: var(--fara-auth-primary-dark);
	font-size: 20px;
	font-weight: 700;
}

.fara-ibf-auth-account-state strong,
.fara-ibf-auth-account-state span {
	display: block;
}

.fara-ibf-auth-account-state span {
	margin-top: 2px;
	color: var(--fara-auth-muted);
	font-size: 11px;
	direction: ltr;
	text-align: right;
}

.fara-ibf-auth-empty-state {
	margin: 0 0 22px;
	padding: 22px;
	border-radius: 15px;
	background: #f7f9fa;
	color: var(--fara-auth-muted);
	text-align: center;
}

.fara-ibf-auth-empty-state svg {
	width: 54px;
	height: 54px;
	margin-bottom: 8px;
	color: #b4c0c6;
}

.fara-ibf-auth-empty-state p {
	margin: 0;
	font-size: 12px;
}

.fara-ibf-auth-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 30px;
	padding-top: 18px;
	border-top: 1px solid #edf1f3;
	color: #8a979e;
	font-size: 9px;
	text-align: center;
}

.fara-ibf-honeypot {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

@media (max-width: 980px) {
	.fara-ibf-auth-shell {
		grid-template-columns: minmax(290px, 38%) minmax(0, 62%);
	}

	.fara-ibf-auth-brand-content {
		width: 78%;
	}

	.fara-ibf-auth-features {
		display: none;
	}
}

@media (max-width: 760px) {
	.fara-ibf-auth-shell {
		display: block;
		min-height: 100vh;
	}

	.fara-ibf-auth-brand {
		display: none;
	}

	.fara-ibf-auth-main {
		min-height: 100vh;
		padding: 24px 16px;
	}

	.fara-ibf-auth-card {
		padding: 28px 22px;
		border-radius: 20px;
	}

	.fara-ibf-auth-mobile-brand {
		display: flex;
	}
}

@media (max-width: 430px) {
	.fara-ibf-auth-main {
		align-items: flex-start;
		padding: 14px 10px;
	}

	.fara-ibf-auth-card {
		padding: 24px 18px;
		border-radius: 18px;
	}

	.fara-ibf-auth-label-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}


.fara-ibf-auth-register-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
	padding-top: 17px;
	border-top: 1px solid var(--fara-auth-border);
	color: var(--fara-auth-muted);
	font-size: 12px;
}

.fara-ibf-auth-register-cta a {
	font-weight: 700;
	text-decoration: none;
}
