/* Auth-only corrections loaded after the compiled theme stylesheet. */
.auth-business-intro h2 {
  font-size: clamp(32px, 3.2vw, 40px);
}

.auth-business-trust-graphic {
  width: min(100%, 300px);
  height: auto;
}

.auth-forgot-password-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100% - 40px));
  min-height: calc(100vh - 58px);
  padding: 48px 0;
}

.forgot-password-column {
  width: 100%;
  max-width: 520px;
}

.forgot-password-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 28px;
  text-align: center;
}

.forgot-password-brand .auth-business-logo {
  min-height: 48px;
  margin: 0 0 14px;
}

.forgot-password-brand .auth-business-logo .auth-business-logo-link,
.forgot-password-brand .auth-business-logo .auth-business-logo-link img {
  max-width: 220px;
  max-height: 54px;
}

.forgot-password-brand .auth-business-trust-graphic {
  width: min(100%, 300px);
  margin: 0;
}

.forgot-password-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  margin-top: 18px;
  padding: 15px 18px;
  color: #536276;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(210, 221, 228, .88);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.forgot-password-security-note i {
  flex: 0 0 auto;
  color: #008b6a;
  font-size: 16px;
}

/* Use the same logo pairing as the dashboard: the primary logo is intended
 * for the dark interface, while the configured dark logo stays on light. */
.auth-business-logo-variant {
  display: inline-flex;
  align-items: center;
}

.auth-business-logo-variant-dark {
  display: none;
}

body.dark-mode .auth-business-logo-variant-light,
body.theme-dark .auth-business-logo-variant-light,
html[data-theme='dark'] .auth-business-logo-variant-light {
  display: none;
}

body.dark-mode .auth-business-logo-variant-dark,
body.theme-dark .auth-business-logo-variant-dark,
html[data-theme='dark'] .auth-business-logo-variant-dark {
  display: inline-flex;
}

body.dark-mode .auth-business-logo-variant-dark .logo-text,
body.theme-dark .auth-business-logo-variant-dark .logo-text,
html[data-theme='dark'] .auth-business-logo-variant-dark .logo-text {
  color: #f8fafc;
}

body.dark-mode .login-business-card .form-control,
body.theme-dark .login-business-card .form-control,
html[data-theme='dark'] .login-business-card .form-control,
body.dark-mode .auth-register-page .form-control,
body.theme-dark .auth-register-page .form-control,
html[data-theme='dark'] .auth-register-page .form-control {
  color: #e6edf6;
  background: #0d1728;
  border-color: #34465c;
  caret-color: #e6edf6;
}

body.dark-mode .login-business-card .form-control:focus,
body.theme-dark .login-business-card .form-control:focus,
html[data-theme='dark'] .login-business-card .form-control:focus,
body.dark-mode .auth-register-page .form-control:focus,
body.theme-dark .auth-register-page .form-control:focus,
html[data-theme='dark'] .auth-register-page .form-control:focus {
  border-color: #38a3d8;
  box-shadow: 0 0 0 3px rgba(56, 163, 216, .18);
}

body.dark-mode .login-business-card .form-control::placeholder,
body.theme-dark .login-business-card .form-control::placeholder,
html[data-theme='dark'] .login-business-card .form-control::placeholder,
body.dark-mode .auth-register-page .form-control::placeholder,
body.theme-dark .auth-register-page .form-control::placeholder,
html[data-theme='dark'] .auth-register-page .form-control::placeholder {
  color: #7f91a6;
}

body.dark-mode .login-business-card input.form-control:-webkit-autofill,
body.theme-dark .login-business-card input.form-control:-webkit-autofill,
html[data-theme='dark'] .login-business-card input.form-control:-webkit-autofill,
body.dark-mode .auth-register-page input.form-control:-webkit-autofill,
body.theme-dark .auth-register-page input.form-control:-webkit-autofill,
html[data-theme='dark'] .auth-register-page input.form-control:-webkit-autofill {
  -webkit-text-fill-color: #e6edf6;
  box-shadow: 0 0 0 1000px #0d1728 inset;
  transition: background-color 9999s ease-out 0s;
}

.auth-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  margin-bottom: 4px;
}

.auth-card-topline .login-business-product {
  margin: 0;
}

.auth-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.auth-theme-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #6b8294;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 50%;
  line-height: 1;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.auth-theme-trigger:hover {
  color: #496678;
  background: #eef4f7;
  border-color: #c7d4dc;
}

.auth-theme-trigger:focus-visible {
  outline: 0;
  border-color: #7893a5;
  box-shadow: 0 0 0 3px rgba(107, 130, 148, .16);
}

.auth-theme-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-theme-icon-sun {
  display: none;
}

.auth-account-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-account-switch-prompt {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.auth-account-switch .auth-account-switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  color: #0f5f86;
  background: #f8fbfd;
  border: 1px solid #bfd2dd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.auth-account-switch .auth-account-switch-button:hover,
.auth-account-switch .auth-account-switch-button:focus {
  color: #0b4f70;
  background: #eef6f9;
  border-color: #8fb3c5;
  text-decoration: none;
}

.auth-account-switch .auth-account-switch-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 95, 134, .14);
}

html[data-theme='dark'] .auth-theme-icon-moon {
  display: none;
}

html[data-theme='dark'] .auth-theme-icon-sun {
  display: block;
}

.auth-language-switcher {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.auth-language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #1e293b;
  background: #fff;
  border: 1px solid #d5dee7;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.auth-language-trigger:hover,
.auth-language-switcher.open .auth-language-trigger {
  background: #f1f5f9;
  border-color: #bdc9d5;
}

.auth-language-trigger:focus-visible {
  outline: 0;
  border-color: #0f78b5;
  box-shadow: 0 0 0 3px rgba(15, 120, 181, 0.13);
}

.auth-language-trigger::after {
  display: none;
}

.auth-language-menu {
  right: 0;
  left: auto;
  width: 216px;
  max-height: 310px;
  margin-top: 8px;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b8c5d3 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
}

.auth-language-menu::-webkit-scrollbar {
  width: 7px;
}

.auth-language-menu::-webkit-scrollbar-track {
  margin: 8px 0;
  background: transparent;
}

.auth-language-menu::-webkit-scrollbar-thumb {
  min-height: 42px;
  background: #b8c5d3;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.auth-language-menu::-webkit-scrollbar-thumb:hover {
  background: #8fa2b5;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.auth-language-menu > li > a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  color: #334155;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}

.auth-language-menu > li > a:hover,
.auth-language-menu > li > a:focus {
  color: #0f5f86;
  background: #f1f5f9;
}

.auth-language-menu > li.active > a,
.auth-language-menu > li.active > a:hover,
.auth-language-menu > li.active > a:focus {
  color: #0f5f86;
  background: #eaf5fa;
}

.auth-language-flag {
  font-size: 18px;
  line-height: 1;
}

.auth-language-menu .fa-check {
  justify-self: end;
  font-size: 11px;
}

body.dark-mode .auth-language-trigger,
body.theme-dark .auth-language-trigger,
html[data-theme='dark'] .auth-language-trigger {
  color: #e8eef5;
  background: #0d1728;
  border-color: #34465c;
}

body.dark-mode .auth-theme-trigger,
body.theme-dark .auth-theme-trigger,
html[data-theme='dark'] .auth-theme-trigger {
  color: #f8c24e;
  background: #0d1728;
  border-color: #34465c;
}

body.dark-mode .auth-theme-trigger:hover,
body.theme-dark .auth-theme-trigger:hover,
html[data-theme='dark'] .auth-theme-trigger:hover {
  color: #ffd66f;
  background: #152238;
  border-color: #456078;
}

body.dark-mode .auth-account-switch-prompt,
body.theme-dark .auth-account-switch-prompt,
html[data-theme='dark'] .auth-account-switch-prompt {
  color: #9fb0c3;
}

body.dark-mode .forgot-password-security-note,
body.theme-dark .forgot-password-security-note,
html[data-theme='dark'] .forgot-password-security-note {
  color: #b8c6d3;
  background: rgba(17, 29, 46, .8);
  border-color: #2b3b4f;
}

body.dark-mode .auth-account-switch .auth-account-switch-button,
body.theme-dark .auth-account-switch .auth-account-switch-button,
html[data-theme='dark'] .auth-account-switch .auth-account-switch-button {
  color: #b9def0;
  background: #111c2e;
  border-color: #456078;
}

body.dark-mode .auth-account-switch .auth-account-switch-button:hover,
body.dark-mode .auth-account-switch .auth-account-switch-button:focus,
body.theme-dark .auth-account-switch .auth-account-switch-button:hover,
body.theme-dark .auth-account-switch .auth-account-switch-button:focus,
html[data-theme='dark'] .auth-account-switch .auth-account-switch-button:hover,
html[data-theme='dark'] .auth-account-switch .auth-account-switch-button:focus {
  color: #e3f5fd;
  background: #19283d;
  border-color: #5d7e98;
}

@media (max-width: 479px) {
  .auth-account-switch {
    gap: 8px;
  }
}

body.dark-mode .auth-register-page .panel_s .panel-body,
body.theme-dark .auth-register-page .panel_s .panel-body,
html[data-theme='dark'] .auth-register-page .panel_s .panel-body {
  color: #e6edf6;
  background: #111c2e;
}

body.dark-mode .auth-register-page .register-business-header,
body.theme-dark .auth-register-page .register-business-header,
html[data-theme='dark'] .auth-register-page .register-business-header {
  border-bottom-color: #2b3a50;
}

body.dark-mode .auth-register-page .register-business-header p,
body.theme-dark .auth-register-page .register-business-header p,
html[data-theme='dark'] .auth-register-page .register-business-header p {
  color: #aebbc9;
}

body.dark-mode .auth-register-page .form-group > label,
body.dark-mode .auth-register-page .register-terms-and-conditions-wrapper .checkbox label,
body.theme-dark .auth-register-page .form-group > label,
body.theme-dark .auth-register-page .register-terms-and-conditions-wrapper .checkbox label,
html[data-theme='dark'] .auth-register-page .form-group > label,
html[data-theme='dark'] .auth-register-page .register-terms-and-conditions-wrapper .checkbox label {
  color: #c7d2de;
}

body.dark-mode .auth-register-page .register-terms-and-conditions-wrapper a,
body.theme-dark .auth-register-page .register-terms-and-conditions-wrapper a,
html[data-theme='dark'] .auth-register-page .register-terms-and-conditions-wrapper a {
  color: #7dd3fc;
}

body.dark-mode .auth-register-page .register-terms-and-conditions-wrapper a:hover,
body.dark-mode .auth-register-page .register-terms-and-conditions-wrapper a:focus,
body.theme-dark .auth-register-page .register-terms-and-conditions-wrapper a:hover,
body.theme-dark .auth-register-page .register-terms-and-conditions-wrapper a:focus,
html[data-theme='dark'] .auth-register-page .register-terms-and-conditions-wrapper a:hover,
html[data-theme='dark'] .auth-register-page .register-terms-and-conditions-wrapper a:focus {
  color: #bae6fd;
}

body.dark-mode .auth-language-trigger:hover,
body.dark-mode .auth-language-switcher.open .auth-language-trigger,
body.theme-dark .auth-language-trigger:hover,
body.theme-dark .auth-language-switcher.open .auth-language-trigger,
html[data-theme='dark'] .auth-language-trigger:hover,
html[data-theme='dark'] .auth-language-switcher.open .auth-language-trigger {
  background: #152238;
  border-color: #456078;
}

body.dark-mode .auth-language-menu,
body.theme-dark .auth-language-menu,
html[data-theme='dark'] .auth-language-menu {
  background: #0d1728;
  border-color: #34465c;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
  scrollbar-color: #52657a transparent;
}

body.dark-mode .auth-language-menu::-webkit-scrollbar-thumb,
body.theme-dark .auth-language-menu::-webkit-scrollbar-thumb,
html[data-theme='dark'] .auth-language-menu::-webkit-scrollbar-thumb {
  background: #52657a;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.dark-mode .auth-language-menu::-webkit-scrollbar-thumb:hover,
body.theme-dark .auth-language-menu::-webkit-scrollbar-thumb:hover,
html[data-theme='dark'] .auth-language-menu::-webkit-scrollbar-thumb:hover {
  background: #71859b;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body.dark-mode .auth-language-menu > li > a,
body.theme-dark .auth-language-menu > li > a,
html[data-theme='dark'] .auth-language-menu > li > a {
  color: #cbd5e1;
}

body.dark-mode .auth-language-menu > li > a:hover,
body.dark-mode .auth-language-menu > li > a:focus,
body.dark-mode .auth-language-menu > li.active > a,
body.theme-dark .auth-language-menu > li > a:hover,
body.theme-dark .auth-language-menu > li > a:focus,
body.theme-dark .auth-language-menu > li.active > a,
html[data-theme='dark'] .auth-language-menu > li > a:hover,
html[data-theme='dark'] .auth-language-menu > li > a:focus,
html[data-theme='dark'] .auth-language-menu > li.active > a {
  color: #e0f2fe;
  background: #1e304a;
}

@media (max-width: 900px) {
  .auth-business-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    width: min(560px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 0;
  }

  .auth-business-intro,
  .auth-register-page .register-copy-column {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    width: 100%;
    text-align: left;
  }

  .login-business-main,
  .auth-register-page .register-form-column {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .auth-register-page .register-copy-card {
    align-items: flex-start;
  }

  .auth-forgot-password-page {
    display: flex;
    width: min(520px, calc(100% - 40px));
    min-height: calc(100vh - 58px);
    padding: 40px 0;
  }
}

@media (max-width: 479px) {
  .auth-business-page {
    width: min(100% - 20px, 440px);
    gap: 26px;
    padding: 24px 0 32px;
  }

  .auth-business-intro h2,
  .auth-register-page #register_title_lg {
    font-size: 28px;
  }

  .auth-card-topline {
    gap: 10px;
  }

  .auth-language-menu {
    right: 0;
    left: auto;
    width: min(216px, calc(100vw - 36px));
    max-height: min(360px, 62vh);
  }

  .auth-register-page .panel_s .panel-body {
    padding: 26px 22px 24px;
  }

  .auth-register-page .panel_s .panel-footer {
    padding: 0 22px 24px;
  }

  .auth-forgot-password-page {
    width: min(100% - 20px, 440px);
    padding: 24px 0 32px;
  }

  .forgot-password-brand {
    margin-bottom: 22px;
  }

  .forgot-password-brand .auth-business-logo {
    min-height: 42px;
    margin-bottom: 10px;
  }

  .forgot-password-brand .auth-business-logo .auth-business-logo-link img {
    max-height: 42px;
  }

  .forgot-password-brand .auth-business-trust-graphic {
    width: min(100%, 260px);
  }

  .forgot-password-security-note {
    padding: 14px 15px;
    font-size: 13px;
  }
}
