/**
 * یار چتر دانش - RTL + Yekan Bakh
 * Producer: Behsa - https://www.behsaa.com
 */

:root {
	--yar-font-family: "Yekan Bakh", Tahoma, sans-serif;
	--bs-font-sans-serif: var(--yar-font-family);
	--bs-body-font-family: var(--yar-font-family);
}

html[dir="rtl"],
html[dir="rtl"] body {
	direction: rtl;
	overflow-x: hidden;
	max-width: 100%;
}

#kt_app_root,
#kt_app_root > .d-flex {
	overflow-x: hidden;
	max-width: 100%;
}

html[dir="rtl"] .yar-form-panel,
html[dir="rtl"] .yar-aside-panel {
	min-width: 0;
	max-width: 100%;
	overflow-x: hidden;
}

html[dir="rtl"] .yar-form-panel {
	order: 2;
}

html[dir="rtl"] .yar-aside-panel {
	order: 1;
}

html[dir="rtl"] .yar-form-panel .w-lg-500px {
	width: 100%;
	max-width: 500px;
	min-width: 0;
}
html[dir="rtl"] .form-control,
html[dir="rtl"] .btn,
html[dir="rtl"] .form-label,
html[dir="rtl"] .form-text,
html[dir="rtl"] .input-group-text,
html[dir="rtl"] .fw-bold,
html[dir="rtl"] .fw-semibold,
html[dir="rtl"] .fw-bolder,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] span:not(.path1):not(.path2):not(.path3):not(.path4):not(.path5),
html[dir="rtl"] a,
html[dir="rtl"] label,
html[dir="rtl"] .swal2-title,
html[dir="rtl"] .swal2-html-container,
html[dir="rtl"] .indicator-label,
html[dir="rtl"] .indicator-progress {
	font-family: var(--yar-font-family) !important;
}

html[dir="rtl"] .ki-duotone,
html[dir="rtl"] .ki-duotone i {
	font-family: "keenicons-duotone" !important;
}

html[dir="rtl"] .ki-outline,
html[dir="rtl"] .ki-outline i {
	font-family: "keenicons-outline" !important;
}

html[dir="rtl"] .ki-solid,
html[dir="rtl"] .ki-solid i {
	font-family: "keenicons-solid" !important;
}

html[dir="rtl"] .form-control {
	text-align: right;
}

html[dir="rtl"] input[name^="code_"] {
	text-align: center;
	direction: ltr;
}

html[dir="rtl"] #yar_phone_input {
	direction: ltr;
	text-align: left;
	letter-spacing: 0.02em;
	min-width: 0;
}

html[dir="rtl"] .yar-phone-group {
	direction: ltr;
	flex-wrap: nowrap;
	max-width: 100%;
}

html[dir="rtl"] .yar-phone-group .form-control {
	min-width: 0;
	flex: 1 1 auto;
}

html[dir="rtl"] .yar-phone-prefix {
	direction: ltr;
	flex-shrink: 0;
}

html[dir="rtl"] #yar_register_phone_display {
	direction: ltr;
	text-align: left;
	min-width: 0;
}

html[dir="rtl"] .yar-ltr {
	direction: ltr;
	display: inline-block;
}

.yar-field-block {
	width: 100%;
}

.yar-field-block .form-label,
.yar-field-block .form-text {
	text-align: right;
	display: block;
}

.yar-otp-block {
	width: 100%;
}

.yar-otp-block .yar-otp-label {
	width: 100%;
	text-align: right;
	display: block;
}

.yar-otp-inputs-wrap {
	width: 100%;
}

.yar-otp-inputs {
	direction: ltr;
	display: flex;
	width: 100%;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.5rem;
}

.yar-otp-inputs input {
	margin: 0 !important;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: none;
	height: 3.75rem;
	padding: 0;
	font-size: 1.75rem;
}

.yar-honeypot {
	position: fixed;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	clip: rect(0, 0, 0, 0);
	border: 0;
	padding: 0;
}

.yar-step-hidden {
	display: none !important;
}

.yar-otp-timer {
	min-width: 2.5rem;
	display: inline-block;
}

.yar-auth-shell {
	min-width: 0;
	max-width: 100%;
	overflow-x: hidden;
}

.yar-aside-panel {
	background-color: #1b84ff;
	background-image: url(../assets/media/misc/auth-bg.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.yar-aside-inner {
	align-items: center !important;
	text-align: center;
}

.yar-aside-panel img:not(.yar-logo):not(.yar-aside-illustration) {
	max-width: 100%;
	height: auto;
}

.yar-aside-illustration {
	display: block;
	width: min(100%, 500px);
	max-width: 75%;
	margin-right: auto;
	margin-left: auto;
}

.yar-aside-illustration svg {
	display: block;
	width: 100%;
	height: auto;
}

html[dir="rtl"] .yar-aside-panel .yar-logo-link {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	line-height: 0;
}

.yar-logo {
	display: block;
	margin-right: auto;
	margin-left: auto;
	width: auto;
	max-width: min(100%, 13.5rem);
	object-fit: contain;
}

html[dir="rtl"] .yar-aside-title {
	font-family: var(--yar-font-family) !important;
	font-weight: 800;
	line-height: 1.6;
}

html[dir="rtl"] .yar-aside-desc {
	font-family: var(--yar-font-family) !important;
	font-size: 1.075rem;
	font-weight: 400;
	line-height: 2;
	letter-spacing: 0;
	max-width: 28rem;
	margin-right: auto;
	margin-left: auto;
	opacity: 0.92;
}
