/* Behino sign-in (9102) and registration (9101). */

/* 01. APEX containers, form components, and responsive defaults */
body.bh2-page,
body:has(#bh2-shell) {
  --bh2-navy: #0b214c;
  --bh2-blue: #2458ae;
  --bh2-ink: #202a3b;
  --bh2-muted: #667286;
  --bh2-line: #dce2eb;
  --bh2-tint: #edf3fe;
  background: #fff !important;
  color: var(--bh2-ink);
}

body.bh2-page :is(.t-Header, .t-Body-nav, .t-Body-side, .t-Body-title, .t-Footer),
body:has(#bh2-shell) :is(.t-Header, .t-Body-nav, .t-Body-side, .t-Body-title, .t-Footer) {
  display: none !important;
}

body.bh2-page :is(.t-Body-main, .t-Body-content, .t-Body-contentInner),
body:has(#bh2-shell) :is(.t-Body-main, .t-Body-content, .t-Body-contentInner) {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  max-width: none;
  background: #fff;
}

body:has(#bh2-shell) .t-Body-contentInner > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

#bh2-shell {
  width: 100%;
  min-height: 100dvh;
  direction: rtl;
  font-size: 15px;
  line-height: 1.8;
  text-align: start;
}

#bh2-shell *,
#bh2-shell *::before,
#bh2-shell *::after {
  box-sizing: border-box;
}

#bh2-shell [hidden] {
  display: none !important;
}

#bh2-shell .bh2-region,
#bh2-shell .bh2-region > .t-Region-bodyWrap,
#bh2-shell .bh2-region > .t-Region-bodyWrap > .t-Region-body {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

#bh2-shell .bh2-region > .t-Region-header {
  display: none;
}

#bh2-shell .bh2-region > .container,
#bh2-shell .bh2-region > .t-Region-bodyWrap > .t-Region-body > .container {
  padding: 0;
  width: 100%;
  max-width: none;
}

#bh2-shell .bh2-region > .container > .row,
#bh2-shell .bh2-region > .t-Region-bodyWrap > .t-Region-body > .container > .row {
  margin-inline: 0;
}

#bh2-shell .bh2-region > .container > .row > .col,
#bh2-shell .bh2-region > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col {
  padding-inline: 0;
  min-width: 0;
}

#bh2-shell > .container > .row,
#bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 100dvh;
}

#bh2-shell > .container > .row > .col:has(#bh2-main),
#bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col:has(#bh2-main) {
  flex: 0 0 67%;
  width: 67%;
  max-width: 67%;
}

#bh2-shell > .container > .row > .col:has(#bh2-rail),
#bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col:has(#bh2-rail) {
  flex: 0 0 33%;
  width: 33%;
  max-width: 33%;
  background: var(--bh2-navy);
}

#bh2-main {
  width: min(100%, 620px);
  margin: 0 auto !important;
  padding: 32px 48px 28px !important;
}

#bh2-main h1 {
  color: var(--bh2-ink);
  font: inherit;
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 750;
  margin: 0 0 10px;
  line-height: 1.6;
  text-align: center;
}

#bh2-main h2 {
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
}

#bh2-main p {
  color: var(--bh2-muted);
  margin: 0;
}

#bh2-heading {
  text-align: center;
  margin-bottom: 20px !important;
}

#bh2-heading p {
  font-size: 14px;
}

#bh2-rail {
  min-height: 100dvh;
  padding: 46px 38px 32px !important;
  color: #fff;
  text-align: center;
}

.bh2-brand-logo {
  display: block;
  width: 160px;
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto 40px;
  filter: grayscale(1) brightness(0) invert(1);
}

#bh2-rail h2 {
  font: inherit;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.9;
  margin: 0 0 22px;
}

#bh2-rail p {
  color: #d4def1;
  font-size: 14px;
  line-height: 2.1;
  margin: 0 auto 22px;
  max-width: 330px;
}

.bh2-assessment {
  display: block;
  width: min(100%, 330px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 22px auto;
}

#bh2-rail .t-Button {
  color: #fff;
  background: transparent;
  border: 0;
}

#bh2-rail .t-Button:hover {
  background: #ffffff0f;
}

#bh2-methods .t-TabsRegion-item {
  padding: 0 !important;
}

#bh2-methods :is(.a-Tabs, .t-Tabs) {
  display: flex;
  background: #fff;
  border: 1px solid var(--bh2-line);
  border-radius: 8px;
  padding: 0;
  box-shadow: none;
  margin: 0 0 16px;
  overflow: hidden;
}

#bh2-methods :is(.a-Tabs-item, .t-Tabs-item) {
  flex: 1 1 50%;
  margin: 0;
}

#bh2-methods :is(.a-Tabs-link, .t-Tabs-link) {
  min-height: 48px;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bh2-muted);
  text-decoration: none;
  text-align: center;
}

#bh2-methods .is-active > :is(.a-Tabs-link, .t-Tabs-link) {
  color: var(--bh2-blue);
  background: var(--bh2-tint);
  box-shadow: inset 0 0 0 1px #bdcef1;
}

#bh2-methods :is(.a-Tabs-link, .t-Tabs-link)::after {
  display: none;
}

#bh2-shell .t-Form-fieldContainer {
  margin-block: 0 10px;
}

#bh2-shell .bh2-region .row {
  margin-block: 0;
}

#bh2-shell .t-Button {
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: none;
  cursor: pointer;
  text-shadow: none;
}

#bh2-shell .t-Button:focus-visible,
#bh2-shell a:focus-visible {
  outline: 3px solid #3979dc88;
  outline-offset: 3px;
}

#bh2-shell .bh2-primary {
  display: block;
  width: 100%;
  background: var(--bh2-blue);
  color: #fff;
  border: 1px solid var(--bh2-blue);
}

#bh2-shell .bh2-primary:hover {
  background: #1c478e;
  border-color: #1c478e;
}

#bh2-shell .bh2-link {
  background: transparent;
  color: var(--bh2-blue);
  border: 0;
  white-space: normal;
}

#bh2-shell .bh2-link:hover {
  background: #edf3fe;
}

#bh2-rail .bh2-rail-link {
  color: #fff !important;
  background: transparent;
}

#bh2-rail .bh2-rail-link:hover {
  background: #ffffff0f;
}

#bh2-shell .bh2-buttons :is(.t-ButtonRegion, .t-ButtonRegion-wrap, .t-ButtonRegion-col, .t-ButtonRegion-buttons) {
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  border: 0;
  float: none;
}

#bh2-shell .bh2-buttons .t-ButtonRegion-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#bh2-shell .bh2-buttons .bh2-primary {
  order: -1;
}

#bh2-register-link {
  border-top: 1px solid var(--bh2-line) !important;
  margin-top: 18px !important;
  padding-top: 10px !important;
  text-align: center;
}

#bh2-footer {
  text-align: center;
  margin-top: 8px !important;
}

#bh2-footer .t-Button {
  font-size: 13px;
}

#bh2-captcha-row > .container > .row,
#bh2-captcha-row > .t-Region-bodyWrap > .t-Region-body > .container > .row,
#bh2-mobile-captcha-row > .container > .row,
#bh2-mobile-captcha-row > .t-Region-bodyWrap > .t-Region-body > .container > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
}

#bh2-shell :is(#bh2-captcha-row, #bh2-mobile-captcha-row) > .container > .row > .col,
#bh2-shell :is(#bh2-captcha-row, #bh2-mobile-captcha-row) > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col {
  width: auto !important;
  max-width: none;
  min-width: 0;
  float: none;
}

#bh2-shell :is(#bh2-captcha-input, #bh2-mobile-captcha-input) .t-Form-fieldContainer {
  margin-block: 0;
}

#bh2-shell .bh2-captcha-picture {
  padding: 4px !important;
  border: 1px solid var(--bh2-line);
  border-radius: 14px;
  background: #f3f6fb;
  overflow: hidden;
}

#bh2-shell :is(#bh2-captcha, #bh2-mobile-captcha) table {
  width: 100%;
  border: 0;
  background: transparent;
}

#bh2-shell :is(#bh2-captcha, #bh2-mobile-captcha) td {
  padding: 0;
  border: 0;
  text-align: center;
  background: transparent;
}

#bh2-shell :is(#bh2-captcha, #bh2-mobile-captcha) img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto;
}

#bh2-shell :is(#bh2-captcha, #bh2-mobile-captcha) .t-Report-pagination {
  display: none;
}

#bh2-shell :is(#bh2-captcha-refresh, #bh2-mobile-captcha-refresh) .t-Button {
  width: 100%;
  min-height: 48px;
  padding: 6px;
  font-size: 12px;
  border-radius: 12px;
}

#bh2-remember {
  margin-top: 8px !important;
}

#bh2-mobile-actions {
  margin-top: 12px !important;
}

#bh2-video,
#bh2-help {
  margin-top: 24px !important;
  border: 1px solid var(--bh2-line) !important;
  border-radius: 8px !important;
  padding: 18px !important;
}

#bh2-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
  border-radius: 6px;
}

#bh2-help p {
  font-size: 13px;
  line-height: 2;
  margin-bottom: 8px;
}

.bh2-registration #bh2-main {
  width: min(100%, 760px);
}

#bh2-register-form > .container > .row,
#bh2-register-form > .t-Region-bodyWrap > .t-Region-body > .container > .row {
  display: flex;
  flex-wrap: wrap;
}

#bh2-register-form .bh2-field-left {
  padding-inline-start: 10px !important;
}

#bh2-register-form .bh2-field-right {
  padding-inline-end: 10px !important;
}

@media (min-width: 1450px) {
  #bh2-main {
    padding-top: 44px !important;
  }

  #bh2-rail {
    padding-top: 58px !important;
  }
}

@media (max-width: 1000px) {
  #bh2-main {
    padding: 28px 30px !important;
  }

  #bh2-rail {
    padding: 34px 24px !important;
  }

  .bh2-brand-logo {
    width: 132px;
  }

  #bh2-rail h2 {
    font-size: 24px;
  }
}

@media (max-width: 720px) {
  #bh2-shell > .container > .row,
  #bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row {
    flex-direction: column;
  }

  #bh2-shell > .container > .row > .col:has(#bh2-main),
  #bh2-shell > .container > .row > .col:has(#bh2-rail),
  #bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col:has(#bh2-main),
  #bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col:has(#bh2-rail) {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  #bh2-main {
    padding: 28px 20px !important;
  }

  #bh2-heading {
    margin-bottom: 18px !important;
  }

  #bh2-main h1 {
    font-size: 25px;
  }

  #bh2-rail {
    min-height: 0;
    padding: 26px 24px !important;
  }

  .bh2-brand-logo {
    width: 110px;
    margin-bottom: 14px;
  }

  .bh2-assessment {
    display: none;
  }

  #bh2-rail h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  #bh2-rail p {
    margin-bottom: 12px;
    font-size: 13px;
  }

  #bh2-register-form > .container > .row > .col,
  #bh2-register-form > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  #bh2-register-form .bh2-field-left,
  #bh2-register-form .bh2-field-right {
    padding-inline: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bh2-shell * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 02. Form refinements for sign-in and registration */
#bh2-shell {
  --bh2-control-height: 54px;
}

#bh2-shell :is(.apex-item-text, .apex-item-password, .apex-item-select) {
  block-size: var(--bh2-control-height);
  min-block-size: var(--bh2-control-height);
  border-radius: 12px;
}

#bh2-shell :is(.apex-item-text, .apex-item-password, .apex-item-select):focus {
  border-color: var(--bh2-blue);
  outline: 3px solid #2458ae26;
  outline-offset: 2px;
}

#bh2-shell .a-Button--passwordVisibility {
  block-size: var(--bh2-control-height);
  min-block-size: var(--bh2-control-height);
}

:where(body:has(#bh2-login-form)) #bh2-shell :is(.t-Button, .a-Button--passwordVisibility, .a-Tabs-link, .t-Tabs-link):focus-visible {
  outline: 3px solid #2458ae26;
  outline-offset: 2px;
}

:where(body:has(#bh2-register-form)) #bh2-shell :is(.t-Button, .a-Button--passwordVisibility):focus-visible {
  outline: 3px solid #2458ae26;
  outline-offset: 2px;
}

#bh2-shell :is(.apex-item-text, .apex-item-password, .apex-item-select)[aria-invalid="true"] {
  border-color: #ad2424;
}

#bh2-shell :is(.apex-item-text, .apex-item-password, .apex-item-select)[aria-invalid="true"]:focus {
  outline-color: #ad242426;
}

:where(body:has(#bh2-login-form)) #bh2-shell .t-Form-fieldContainer {
  margin-block: 0 12px;
}

:where(body:has(#bh2-login-form)) #bh2-heading {
  margin-bottom: 20px !important;
}

:where(body:has(#bh2-login-form)) #bh2-methods :is(.a-Tabs, .t-Tabs) {
  margin-bottom: 18px;
}

:where(body:has(#bh2-register-form)) #bh2-register-form .t-Form-fieldContainer {
  margin-block: 0 14px;
  padding-block: 0;
}

:where(body:has(#bh2-register-form)) #bh2-register-form > .container > .row,
:where(body:has(#bh2-register-form)) #bh2-register-form > .t-Region-bodyWrap > .t-Region-body > .container > .row {
  align-items: flex-start;
}

:where(body:has(#bh2-register-form)) #bh2-register-form .bh2-field-right {
  padding-inline-end: 8px !important;
}

:where(body:has(#bh2-register-form)) #bh2-register-form .bh2-field-left {
  padding-inline-start: 8px !important;
}

:where(body:has(#bh2-login-form)) #bh2-shell .t-Form-error {
  display: block;
  color: #ad2424;
  font-size: 12px;
  line-height: 1.85;
  margin-block-start: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
}

:where(body:has(#bh2-register-form)) #bh2-shell .t-Form-error {
  display: block;
  margin-block-start: 5px;
  color: #ad2424;
  font-size: 12px;
  line-height: 1.85;
  white-space: normal;
  overflow-wrap: anywhere;
}

:where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-row, #bh2-mobile-captcha-row) > .container > .row,
:where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-row, #bh2-mobile-captcha-row) > .t-Region-bodyWrap > .t-Region-body > .container > .row {
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content 46px;
  align-items: start;
  gap: 8px;
}

:where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-input, #bh2-mobile-captcha-input) .t-Form-fieldContainer {
  margin-block: 0;
}

:where(body:has(#bh2-login-form)) #bh2-shell .bh2-captcha-picture {
  inline-size: fit-content;
  max-inline-size: 100%;
  padding: 2px !important;
  min-height: 56px;
  border: 1px solid var(--bh2-line);
  border-radius: 15px;
  background: #f3f6fb;
  overflow: hidden;
}

:where(body:has(#bh2-login-form)) #bh2-shell .bh2-captcha-art {
  display: block;
  width: auto;
  max-width: 180px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

:where(body:has(#bh2-login-form)) #bh2-shell .bh2-captcha-status {
  display: block;
  padding: 5px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--bh2-muted);
}

:where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-refresh, #bh2-mobile-captcha-refresh) .t-Button {
  width: 100%;
  min-height: var(--bh2-control-height);
  padding: 4px;
  font-size: 12px;
  border-radius: 13px;
  color: var(--bh2-blue);
  background: #edf3fe;
}

:where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-refresh, #bh2-mobile-captcha-refresh) .t-Button:hover {
  background: #dce8fc;
}

:where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-refresh, #bh2-mobile-captcha-refresh) .t-Icon {
  font-size: 18px;
  line-height: 1;
}

:where(body:has(#bh2-login-form)) #bh2-remember {
  margin-top: 10px !important;
}

:where(body:has(#bh2-register-form)) #bh2-register-purpose {
  margin-block-start: 2px !important;
}

:where(body:has(#bh2-register-form)) #bh2-register-purpose .apex-item-grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

:where(body:has(#bh2-register-form)) #bh2-register-purpose .apex-item-option {
  min-width: 0;
}

:where(body:has(#bh2-register-form)) #bh2-register-purpose .apex-item-option label {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-block: 8px;
  line-height: 1.8;
  white-space: normal;
  cursor: pointer;
}

:where(body:has(#bh2-register-form)) #bh2-register-purpose input:focus-visible + label {
  outline: 3px solid #2458ae26;
  outline-offset: 2px;
  border-radius: 6px;
}

:where(body:has(#bh2-register-form)) #bh2-register-actions .bh2-primary {
  min-height: var(--bh2-control-height);
}

:where(body:has(#bh2-login-form)) #bh2-register-link {
  margin-top: 20px !important;
  padding-top: 12px !important;
}

:where(body:has(#bh2-register-form)) #bh2-register-link {
  margin-top: 18px !important;
  padding-top: 12px !important;
}

#bh2-register-link > .container > .row,
#bh2-register-link > .t-Region-bodyWrap > .t-Region-body > .container > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 6px;
}

#bh2-register-link > .container > .row > .col,
#bh2-register-link > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col {
  width: auto !important;
  max-width: 100%;
  flex: 0 1 auto;
}

#bh2-signup-prompt p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

#bh2-signup-action .t-Button {
  width: auto;
  padding-inline: 6px;
}

:where(body:has(#bh2-register-form)) #bh2-footer {
  margin-top: 6px !important;
}

@media (max-width: 767px) {
  #bh2-shell > .container > .row,
  #bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row {
    flex-direction: column;
  }

  #bh2-shell > .container > .row > .col:has(#bh2-main),
  #bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col:has(#bh2-main) {
    order: 0;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  #bh2-shell > .container > .row > .col:has(#bh2-rail),
  #bh2-shell > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col:has(#bh2-rail) {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  #bh2-main {
    padding: 24px 18px !important;
  }

  #bh2-main h1 {
    font-size: 25px;
  }

  #bh2-heading {
    margin-bottom: 18px !important;
  }

  :where(body:has(#bh2-register-form)) #bh2-register-form > .container > .row > .col,
  :where(body:has(#bh2-register-form)) #bh2-register-form > .t-Region-bodyWrap > .t-Region-body > .container > .row > .col {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  :where(body:has(#bh2-register-form)) #bh2-register-form :is(.bh2-field-left, .bh2-field-right) {
    padding-inline: 0 !important;
  }

  :where(body:has(#bh2-register-form)) #bh2-register-purpose .apex-item-grid-row {
    flex-direction: column;
    gap: 0;
  }

  :where(body:has(#bh2-register-form)) #bh2-register-purpose .apex-item-option {
    width: 100%;
  }

  #bh2-rail {
    min-height: 0;
    padding: 24px !important;
  }

  #bh2-rail .bh2-assessment {
    display: none;
  }

  #bh2-rail .bh2-brand-logo {
    width: 110px;
    margin-bottom: 12px;
  }

  #bh2-rail h2 {
    font-size: 21px;
    margin-bottom: 10px;
  }

  #bh2-rail p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  :where(body:has(#bh2-login-form)) #bh2-resources .t-Button {
    min-height: 40px;
    font-size: 12px;
  }

  #bh2-signup-prompt p,
  #bh2-signup-action .t-Button {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  :where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-row, #bh2-mobile-captcha-row) > .container > .row,
  :where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-row, #bh2-mobile-captcha-row) > .t-Region-bodyWrap > .t-Region-body > .container > .row {
    grid-template-columns: minmax(0,1fr) 46px;
  }

  :where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-row, #bh2-mobile-captcha-row) .col:has(#bh2-captcha-input),
  :where(body:has(#bh2-login-form)) #bh2-shell :is(#bh2-captcha-row, #bh2-mobile-captcha-row) .col:has(#bh2-mobile-captcha-input) {
    grid-column: 1 / -1;
  }
}

/* 03. Split layout, form colors, and carousel */
body:has(#bh2-shell) {
  background: #eef2f6 !important;
}

body:has(#bh2-shell) :is(.t-Body-main, .t-Body-content, .t-Body-contentInner, .t-Login-container, .t-Login-body) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #eef2f6;
}

#bh2-shell {
  --bh2-ink: #131e30;
  --bh2-muted: #53647a;
  --bh2-line: #dbe3ef;
  --bh2-blue: #2458ae;
  --bh2-tint: #edf3fe;
  --bh2-control-height: 44px;
}

#bh2-shell > :is(.container, .t-Region-bodyWrap > .t-Region-body > .container) > .row {
  display: grid;
  grid-template-columns: minmax(365px, 26%) minmax(0, 1fr);
  align-items: stretch;
  direction: rtl;
  min-height: 100vh;
  min-height: 100dvh;
}

#bh2-shell > :is(.container, .t-Region-bodyWrap > .t-Region-body > .container) > .row > .col:is(:has(#bh2-main), :has(#bh2-rail)) {
  width: auto;
  max-width: none;
  order: 0;
  direction: rtl;
}

#bh2-shell > :is(.container, .t-Region-bodyWrap > .t-Region-body > .container) > .row > .col:has(#bh2-main) {
  display: grid;
  place-items: center;
  padding: 28px clamp(14px, 1.55vw, 32px);
  background: #eef2f6;
}

#bh2-shell > :is(.container, .t-Region-bodyWrap > .t-Region-body > .container) > .row > .col:has(#bh2-rail) {
  background: #0b101a;
}

#bh2-shell #bh2-main {
  width: min(100%, 460px);
  min-width: 0;
  margin: 0 !important;
  padding: clamp(16px, 1.3vw, 25px) !important;
  border: 1px solid var(--bh2-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 16px 30px -14px #17243a3d;
}

#bh2-shell #bh2-heading {
  text-align: start;
  margin-bottom: 17px !important;
}

#bh2-shell #bh2-heading h1 {
  margin: 0 0 5px;
  color: var(--bh2-ink);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.45;
  text-align: start;
}

#bh2-shell #bh2-heading p {
  font-size: 13px;
  line-height: 1.65;
}

#bh2-shell #bh2-methods :is(.a-Tabs, .t-Tabs) {
  gap: 3px;
  margin-bottom: 13px;
  padding: 3px;
  border-radius: 7px;
  background: #f4f7fa;
}

#bh2-shell #bh2-methods :is(.a-Tabs-link, .t-Tabs-link) {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 24px;
}

#bh2-shell #bh2-methods .is-active > :is(.a-Tabs-link, .t-Tabs-link) {
  background: #fff;
  color: #1c478e;
  box-shadow: 0 1px 3px #17243a12;
}

#bh2-shell #bh2-main :is(.apex-item-text, .apex-item-password, .apex-item-select) {
  border-color: var(--bh2-line);
  border-radius: 6px;
}

#bh2-shell #bh2-main :is(.apex-item-text, .apex-item-password, .apex-item-select):focus {
  border-color: var(--bh2-blue);
  outline: 2px solid #2458ae30;
  outline-offset: 1px;
}

#bh2-shell #bh2-main :is(.apex-item-text, .apex-item-password, .apex-item-select)[aria-invalid="true"] {
  border-color: #ad2424;
}

#bh2-shell #bh2-main .t-Form-fieldContainer {
  margin-block-end: 9px;
}

#bh2-shell .bh2-captcha-picture {
  min-height: 44px;
  border-radius: 6px;
}

#bh2-shell .bh2-captcha-art {
  height: 40px;
  border-radius: 4px;
}

#bh2-shell :is(#bh2-captcha-refresh, #bh2-mobile-captcha-refresh) .t-Button {
  border-radius: 6px;
  background: #edf3fe;
}

#bh2-shell #bh2-main .bh2-primary {
  border-radius: 6px;
}

#bh2-shell #bh2-main .bh2-primary:hover {
  background: #1c478e;
  border-color: #1c478e;
}

#bh2-shell #bh2-register-link {
  margin-top: 9px !important;
  padding-top: 4px !important;
}

#bh2-shell #bh2-footer {
  margin-top: 0 !important;
}

#bh2-shell #bh2-rail {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 100%;
  overflow: hidden;
  padding: 16px 24px 14px !important;
  background: #0b101a;
}

.bh91-fallback,
.bh91-slide {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bh91-fallback,
.bh91-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bh91-carousel-ui {
  margin: 0 auto 10px;
  max-width: min(100%, 520px);
}

#bh2-rail .bh91-caption {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  color: #fff;
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 700;
  text-shadow: 0 1px 8px #000;
}

.bh91-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 2px 5px;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #101826e8;
}

.bh91-controls button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 37px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d0deef;
  cursor: pointer;
}

.bh91-controls button:hover {
  background: #27374e;
}

.bh91-controls button:focus-visible {
  outline: 2px solid #a3d9f4;
  outline-offset: -2px;
}

.bh91-controls [data-slide-index]::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7f8ea6;
  content: "";
}

.bh91-controls [aria-current="true"]::before {
  width: 7px;
  height: 7px;
  background: #d7edff;
  box-shadow: 0 0 8px #b5dcff90;
}

#bh2-shell #bh2-rail > .container > .row,
#bh2-shell #bh2-resources > .container > .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#bh2-shell #bh2-rail .t-Button {
  min-height: 34px;
  padding: 5px 9px;
  color: #dde7f5;
  font-size: 12px;
}

@media (max-width: 767px) {
  #bh2-shell > :is(.container, .t-Region-bodyWrap > .t-Region-body > .container) > .row {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  #bh2-shell > :is(.container, .t-Region-bodyWrap > .t-Region-body > .container) > .row > .col:has(#bh2-main) {
    padding: 20px 12px;
  }

  #bh2-shell #bh2-rail {
    min-height: 325px;
    padding-inline: 12px !important;
  }

  #bh2-rail .bh91-caption {
    margin-bottom: 12px;
  }
}

/* 04. Two equal-width sign-in tabs */
#bh2-shell #bh2-methods :is(.a-Tabs, .t-Tabs, [role="tablist"]) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

#bh2-shell #bh2-methods :is(.a-Tabs, .t-Tabs, [role="tablist"]) > :is(li, .a-Tabs-item, .t-Tabs-item) {
  min-width: 0;
  width: auto;
  margin: 0;
}

#bh2-shell #bh2-methods :is(.a-Tabs-link, .t-Tabs-link, [role="tab"]) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* 05. Pages 9101/9102: colors, 44px controls, labels, and desktop proportions. */
#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) {
  --bh2-blue: #2456a6;
  --bh2-ink: #0f172a;
  --bh2-line: #d5deeb;
  --bh2-control-height: 44px;
  --bh2-field-background: #f5f7fb;
  --bh2-side-background: #edf3fc;
  --bh2-captcha-background: #f1f5f9;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main {
  color: var(--bh2-ink);
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main :is(.apex-item-text, .apex-item-password, .apex-item-select) {
  background-color: var(--bh2-field-background);
  border-color: var(--bh2-line);
  color: var(--bh2-ink);
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main :is(.apex-item-text, .apex-item-password, .apex-item-select):focus {
  border-color: var(--bh2-blue);
  outline-color: #2456a630;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main :is(.apex-item-text, .apex-item-password, .apex-item-select)[aria-invalid="true"] {
  border-color: #ad2424;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main :is(.apex-item-text, .apex-item-password, .apex-item-select)[aria-invalid="true"]:focus {
  outline-color: #ad242430;
}

/* Browser autofill paints its own background unless the inset is also set. */
#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main input:is(:autofill, :-webkit-autofill) {
  -webkit-text-fill-color: var(--bh2-ink);
  caret-color: var(--bh2-ink);
  box-shadow: 0 0 0 1000px var(--bh2-field-background) inset;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main .t-Form-label {
  font-size: 12px;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main .bh2-primary {
  background-color: var(--bh2-blue);
  border-color: var(--bh2-blue);
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main .bh2-primary:hover {
  background-color: #1c478e;
  border-color: #1c478e;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main :is(.a-Button--passwordVisibility,
  #bh2-captcha-refresh .t-Button, #bh2-mobile-captcha-refresh .t-Button) {
  height: 44px;
  min-height: 44px;
  block-size: 44px;
  min-block-size: 44px;
  background-color: var(--bh2-side-background);
  border-color: var(--bh2-line);
  color: var(--bh2-blue);
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main :is(.a-Button--passwordVisibility,
  #bh2-captcha-refresh .t-Button, #bh2-mobile-captcha-refresh .t-Button):hover {
  background-color: #dce8fc;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) :is(#bh2-captcha-row, #bh2-mobile-captcha-row) > .container > .row,
#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) :is(#bh2-captcha-row, #bh2-mobile-captcha-row) > .t-Region-bodyWrap > .t-Region-body > .container > .row {
  align-items: start;
}

/* Removing 8px top/bottom padding aligns the input with the image and button. */
#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main :is(#bh2-captcha-input, #bh2-mobile-captcha-input) .t-Form-fieldContainer {
  padding-block: 0;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main :is(#bh2-captcha-input, #bh2-mobile-captcha-input) .apex-item-text {
  height: 44px;
  min-height: 44px;
  block-size: 44px;
  min-block-size: 44px;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main .bh2-captcha-picture {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  block-size: 44px;
  min-block-size: 44px;
  inline-size: max-content;
  max-inline-size: 100%;
  padding: 0 !important;
  background-color: var(--bh2-captcha-background);
  border-color: var(--bh2-line);
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main .bh2-captcha-picture > .t-Region-bodyWrap,
#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main .bh2-captcha-picture > .t-Region-bodyWrap > .t-Region-body {
  height: auto;
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main .bh2-captcha-art {
  display: block;
  width: auto;
  max-width: 100%;
  height: 42px;
  min-height: 0;
  max-height: 42px;
  block-size: 42px;
  margin: 0 auto;
  object-fit: contain;
  background-color: var(--bh2-captcha-background);
}

#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main .bh2-captcha-picture:has(.bh2-captcha-status) {
  height: auto;
  block-size: auto;
}

/* Another 4px reduction brings the overall spacing decrease to about 20px. */
#bh2-shell:has(:is(#bh2-login-form, #bh2-register-form)) #bh2-remember {
  margin-top: 6px !important;
}

/* Desktop: 32% form column and 68% slides, with wider login and registration cards. */
@media (min-width: 768px) {
  #bh2-shell:has(#bh2-star-background):has(:is(#bh2-login-form, #bh2-register-form)) > :is(.container,
    .t-Region-bodyWrap > .t-Region-body > .container) > .row {
    grid-template-columns: minmax(365px, 32%) minmax(0, 1fr);
  }

  #bh2-shell:has(#bh2-star-background):has(:is(#bh2-login-form, #bh2-register-form)) #bh2-main {
    width: min(100%, 520px);
  }
}
