@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakhFaNum-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html.behsaa-auth-html,
html.behsaa-auth-html body,
body.behsaa-auth-page,
body.behsaa-auth-page *:not(i):not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: "Yekan Bakh", Tahoma, sans-serif !important;
}

body.behsaa-auth-page,
body.login_admin.behsaa-auth-page,
body.authentication.behsaa-auth-page {
  background: #ffffff !important;
  min-height: 100vh;
}

body.behsaa-auth-page .navbar,
body.behsaa-auth-page footer.navbar-fixed-bottom {
  display: none !important;
}

/* Admin auth pages: full-bleed Keen shell (no Perfex card/purple) */
body.login_admin.behsaa-auth-page > .container,
body.authentication.behsaa-auth-page > .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.login_admin.behsaa-auth-page .company-logo,
body.authentication.behsaa-auth-page .company-logo,
body.login_admin.behsaa-auth-page .authentication-form-wrapper,
body.authentication.behsaa-auth-page .authentication-form-wrapper {
  display: none !important;
}

body.login_admin.behsaa-auth-page .authentication-form,
body.authentication.behsaa-auth-page .authentication-form {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.behsaa-auth-page #wrapper,
body.behsaa-auth-page #content,
body.behsaa-auth-page #content > .container,
body.behsaa-auth-page #content > .container > .row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.behsaa-auth-page #content > .container:first-of-type {
  position: relative;
  z-index: 20;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 16px 16px 0 !important;
}

body.behsaa-auth-page #content > .container:first-of-type .row {
  margin: 0 !important;
}

.behsaa-keen-auth {
  min-height: 100vh;
  position: relative;
  z-index: 10;
  color: #0d1b2a;
  box-sizing: border-box;
}

.behsaa-keen-auth *,
.behsaa-keen-auth *::before,
.behsaa-keen-auth *::after {
  box-sizing: border-box;
}

.behsaa-keen-auth__row {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.behsaa-keen-auth__aside {
  flex: 0 0 50%;
  max-width: 50%;
  background: #1b263b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.behsaa-keen-auth--wide .behsaa-keen-auth__aside {
  flex: 0 0 38%;
  max-width: 38%;
}

.behsaa-keen-auth__aside-inner {
  max-width: 34rem;
  text-align: center;
}

.behsaa-keen-auth__logo {
  display: inline-block;
  margin-bottom: 40px;
}

.behsaa-keen-auth__logo img {
  height: 40px;
  width: auto;
}

.behsaa-keen-auth__brand-title {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.35;
}

.behsaa-keen-auth__brand-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
}

.behsaa-keen-auth__main {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 48px 32px;
  background: #ffffff;
}

.behsaa-keen-auth--wide .behsaa-keen-auth__main {
  flex: 0 0 62%;
  max-width: 62%;
  align-items: flex-start;
  padding-top: 40px;
  padding-bottom: 40px;
}

.behsaa-keen-auth__card {
  width: 100%;
  max-width: 420px;
}

.behsaa-keen-auth--wide .behsaa-keen-auth__card {
  max-width: 860px;
}

.behsaa-keen-auth__lang-card,
.behsaa-keen-auth__lang-card * {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

.behsaa-keen-auth__lang-card {
  width: 100%;
  max-width: 420px;
  margin: 0 0 20px;
  align-self: center;
}

.behsaa-keen-auth--wide .behsaa-keen-auth__lang-card {
  max-width: 860px;
}

.behsaa-keen-auth__lang-card-inner {
  padding: 16px 18px 18px;
  border: 1px solid #d7dde5;
  border-radius: 0.65rem;
  background: #f7f8fa;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.06);
}

.behsaa-keen-auth__lang-kicker {
  margin: 0 0 6px;
  color: #415a77;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.behsaa-keen-auth__lang-help {
  margin: 0 0 14px;
  color: #778da9;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.behsaa-keen-auth__lang-label {
  display: block;
  margin: 0 0 8px;
  color: #1b263b;
  font-size: 13px;
  font-weight: 700;
}

.behsaa-keen-auth__lang-select-wrap {
  position: relative;
  width: 100%;
  direction: ltr !important;
}

.behsaa-keen-auth__lang-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  left: auto;
  width: 12px;
  height: 8px;
  margin-top: -4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23415a77' d='M1.4 0.6L6 5.2 10.6 0.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 8px;
  pointer-events: none;
  z-index: 2;
}

/* If Perfex wraps this select with bootstrap-select, keep caret inside on the right */
.behsaa-keen-auth__lang-select-wrap .bootstrap-select {
  width: 100% !important;
}

.behsaa-keen-auth__lang-select-wrap .bootstrap-select > .dropdown-toggle {
  text-align: left !important;
  direction: ltr !important;
  padding-right: 40px !important;
  padding-left: 14px !important;
}

.behsaa-keen-auth__lang-select-wrap .bootstrap-select .filter-option {
  text-align: left !important;
  float: none !important;
}

.behsaa-keen-auth__lang-select-wrap .bootstrap-select .bs-caret {
  left: auto !important;
  right: 14px !important;
}

.behsaa-keen-auth__lang-select-wrap .bootstrap-select + .behsaa-keen-auth__lang-select-wrap::after,
.behsaa-keen-auth__lang-select-wrap:has(.bootstrap-select)::after {
  display: none;
}

.behsaa-keen-auth__lang-select.form-control {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 48px;
  padding: 12px 40px 12px 14px !important;
  border: 1px solid #d7dde5;
  border-radius: 0.475rem;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #0d1b2a;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none !important;
  direction: ltr !important;
  text-align: left !important;
}

.behsaa-keen-auth__lang-select.form-control::-ms-expand {
  display: none;
}

html.behsaa-theme-dark .behsaa-keen-auth__lang-card-inner {
  background: #1b263b !important;
  border-color: #415a77 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html.behsaa-theme-dark .behsaa-keen-auth__lang-kicker {
  color: #a8c0d8 !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__lang-help {
  color: #778da9 !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__lang-label {
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__lang-select-wrap::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8c0d8' d='M1.4 0.6L6 5.2 10.6 0.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
}

html.behsaa-theme-dark .behsaa-keen-auth__lang-select.form-control {
  background-color: #0d1b2a !important;
  background-image: none !important;
  color: #e0e1dd !important;
  border-color: #415a77 !important;
}

/* Email / password always LTR (Latin credentials) in every UI language */
.behsaa-keen-auth input[type="email"],
.behsaa-keen-auth input[type="password"],
.behsaa-keen-auth input#email,
.behsaa-keen-auth input#password,
.behsaa-keen-auth input#passwordr,
.behsaa-keen-auth input[name="email"],
.behsaa-keen-auth input[name="password"],
.behsaa-keen-auth input[name="passwordr"] {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

.behsaa-keen-auth__mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}

.behsaa-keen-auth__mobile-logo img {
  height: 35px;
}

.behsaa-keen-auth__intro {
  text-align: center;
  margin-bottom: 36px;
}

.behsaa-keen-auth__heading {
  margin: 0 0 12px;
  color: #0d1b2a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: none !important;
}

.behsaa-keen-auth__sub {
  margin: 0;
  color: #778da9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.behsaa-keen-auth__section-title {
  margin: 0 0 18px;
  color: #0d1b2a;
  font-size: 16px;
  font-weight: 800;
}

.behsaa-keen-auth__grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.behsaa-keen-auth__col {
  width: 50%;
  padding: 0 12px;
}

.behsaa-keen-auth__field,
.behsaa-keen-auth .form-group {
  margin-bottom: 22px;
}

.behsaa-keen-auth__label,
.behsaa-keen-auth label.control-label,
.behsaa-keen-auth .control-label {
  display: block;
  margin-bottom: 8px;
  color: #1b263b;
  font-size: 13px;
  font-weight: 700;
}

.behsaa-keen-auth__input.form-control,
.behsaa-keen-auth .form-control:not(.bootstrap-select) {
  height: 48px;
  border: 1px solid #d7dde5;
  border-radius: 0.475rem;
  box-shadow: none !important;
  background: transparent;
  color: #0d1b2a;
  padding: 12px 14px;
}

.behsaa-keen-auth__input.form-control:focus,
.behsaa-keen-auth .form-control:not(.bootstrap-select):focus {
  border-color: #415a77;
}

/* Country (bootstrap-select): one field only — no double border */
.behsaa-keen-auth .bootstrap-select.form-control,
.behsaa-keen-auth .bootstrap-select {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.behsaa-keen-auth .bootstrap-select > select {
  display: none !important;
}

.behsaa-keen-auth .bootstrap-select > .dropdown-toggle {
  width: 100% !important;
  height: 48px !important;
  line-height: 24px !important;
  padding: 12px 14px !important;
  border: 1px solid #d7dde5 !important;
  border-radius: 0.475rem !important;
  background: transparent !important;
  color: #0d1b2a !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-family: "Yekan Bakh", Tahoma, sans-serif !important;
  font-size: 14px !important;
  text-align: right !important;
}

.behsaa-keen-auth .bootstrap-select > .dropdown-toggle:focus,
.behsaa-keen-auth .bootstrap-select.open > .dropdown-toggle {
  border-color: #415a77 !important;
}

.behsaa-keen-auth .bootstrap-select .filter-option {
  float: none !important;
  display: block;
  text-align: right;
  font-family: "Yekan Bakh", Tahoma, sans-serif !important;
}

.behsaa-keen-auth .bootstrap-select .bs-caret {
  position: absolute;
  left: 14px;
  right: auto;
  top: 50%;
  margin-top: -2px;
}

.behsaa-keen-auth .bootstrap-select .dropdown-menu {
  width: 100%;
  border: 1px solid #d7dde5;
  border-radius: 0.475rem;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12);
  font-family: "Yekan Bakh", Tahoma, sans-serif !important;
}

.behsaa-keen-auth .bootstrap-select .bs-searchbox .form-control {
  height: 40px;
  margin-bottom: 6px;
}

.behsaa-keen-auth__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.behsaa-keen-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1b263b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.behsaa-keen-auth__remember input {
  margin: 0;
  position: static;
}

.behsaa-keen-auth__link {
  color: #415a77 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.behsaa-keen-auth__link:hover,
.behsaa-keen-auth__link:focus {
  color: #1b263b !important;
  text-decoration: underline;
}

.behsaa-keen-auth__actions {
  margin-bottom: 24px;
}

.behsaa-keen-auth__submit.btn,
.behsaa-keen-auth button.btn-info,
.behsaa-keen-auth button[type="submit"] {
  height: 48px;
  border: 0 !important;
  border-radius: 0.475rem !important;
  background: #415a77 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 48px;
  padding: 0 16px !important;
}

.behsaa-keen-auth__submit.btn:hover,
.behsaa-keen-auth__submit.btn:focus,
.behsaa-keen-auth button.btn-info:hover,
.behsaa-keen-auth button.btn-info:focus,
.behsaa-keen-auth button[type="submit"]:hover,
.behsaa-keen-auth button[type="submit"]:focus {
  background: #1b263b !important;
  color: #ffffff !important;
}

.behsaa-keen-auth__signup {
  margin: 0;
  text-align: center;
  color: #778da9;
  font-size: 14px;
  font-weight: 600;
}

.behsaa-keen-auth__copy {
  margin: 40px 0 0;
  text-align: center;
  color: #778da9;
  font-size: 12px;
}

.behsaa-keen-auth .text-danger,
.behsaa-keen-auth .help-block,
.behsaa-keen-auth .alert-danger {
  color: #b42318 !important;
  font-size: 12px;
  margin-top: 6px;
}

.behsaa-keen-auth .panel_s,
.behsaa-keen-auth .panel-body,
.behsaa-keen-auth .bgwhite {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  .behsaa-keen-auth__aside,
  .behsaa-keen-auth__main,
  .behsaa-keen-auth--wide .behsaa-keen-auth__aside,
  .behsaa-keen-auth--wide .behsaa-keen-auth__main {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .behsaa-keen-auth__aside {
    min-height: 220px;
    padding: 36px 24px;
  }

  .behsaa-keen-auth__main,
  .behsaa-keen-auth--wide .behsaa-keen-auth__main {
    align-items: flex-start;
    padding-top: 32px;
  }

  .behsaa-keen-auth__mobile-logo {
    display: block;
  }

  .behsaa-keen-auth__logo {
    margin-bottom: 24px;
  }

  .behsaa-keen-auth__col {
    width: 100%;
  }
}

/* Dark mode (16:00–08:00): form column must not stay white */
html.behsaa-theme-dark body.behsaa-auth-page,
html.behsaa-theme-dark body.login_admin.behsaa-auth-page,
html.behsaa-theme-dark body.authentication.behsaa-auth-page {
  background: #0d1b2a !important;
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth {
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__main {
  background: #0d1b2a !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__card {
  background: transparent !important;
  color: #e0e1dd !important;
  box-shadow: none !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__aside {
  background: #1b263b !important;
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__heading,
html.behsaa-theme-dark .behsaa-keen-auth__section-title,
html.behsaa-theme-dark .behsaa-keen-auth__label,
html.behsaa-theme-dark .behsaa-keen-auth label.control-label,
html.behsaa-theme-dark .behsaa-keen-auth .control-label,
html.behsaa-theme-dark .behsaa-keen-auth__remember {
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__sub,
html.behsaa-theme-dark .behsaa-keen-auth__signup,
html.behsaa-theme-dark .behsaa-keen-auth__copy {
  color: #778da9 !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__input.form-control,
html.behsaa-theme-dark .behsaa-keen-auth .form-control:not(.bootstrap-select),
html.behsaa-theme-dark .behsaa-keen-auth .bootstrap-select > .dropdown-toggle {
  background: #0d1b2a !important;
  color: #e0e1dd !important;
  border-color: #415a77 !important;
}

html.behsaa-theme-dark .behsaa-keen-auth .bootstrap-select .dropdown-menu {
  background: #1b263b !important;
  border-color: #415a77 !important;
  color: #e0e1dd !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html.behsaa-theme-dark .behsaa-keen-auth .bootstrap-select .dropdown-menu > li > a {
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth .bootstrap-select .dropdown-menu > li > a:hover,
html.behsaa-theme-dark .behsaa-keen-auth .bootstrap-select .dropdown-menu > .active > a {
  background: #415a77 !important;
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__link {
  color: #a8c0d8 !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__link:hover,
html.behsaa-theme-dark .behsaa-keen-auth__link:focus {
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__submit.btn,
html.behsaa-theme-dark .behsaa-keen-auth button.btn-info,
html.behsaa-theme-dark .behsaa-keen-auth button[type="submit"] {
  background: #415a77 !important;
  color: #e0e1dd !important;
}

html.behsaa-theme-dark .behsaa-keen-auth__submit.btn:hover,
html.behsaa-theme-dark .behsaa-keen-auth__submit.btn:focus,
html.behsaa-theme-dark .behsaa-keen-auth button[type="submit"]:hover,
html.behsaa-theme-dark .behsaa-keen-auth button[type="submit"]:focus {
  background: #778da9 !important;
  color: #0d1b2a !important;
}
