/* Auth pages — BinaryArbitrage (mockup/login.png + colors.md) */
:root {
  --primary: #00D094;
  --bg-deep: #020911;
  --bg-main: #050F16;
  --bg-card: #09141C;
  --bg-elevated: #0C1A24;
  --border: #152433;
  --text-primary: #FFFFFF;
  --text-secondary: #A7B4BC;
  --text-muted: #6B7882;
  --success: #00D094;
  --danger: #FF4D67;
  --warning: #F5B942;
}

body.ba-auth {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: "DM Sans", system-ui, sans-serif;
}

.ba-auth-split {
  min-height: 100vh;
}

.ba-auth-promo {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 9, 17, 0.92) 0%, rgba(2, 9, 17, 0.55) 42%, rgba(2, 9, 17, 0.2) 100%),
    url("../images/auth/auth-trading-visual.webp?rev=20260811c") center bottom / cover no-repeat,
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-main) 55%, #031820 100%);
  border-right: 1px solid var(--border);
}

.ba-auth-promo::before {
  content: none;
}

.ba-auth-register .ba-auth-promo::before,
.ba-auth-forgot .ba-auth-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 9, 17, 0.28), rgba(2, 9, 17, 0.12)),
    linear-gradient(180deg, rgba(2, 9, 17, 0.15), rgba(2, 9, 17, 0.34));
}

.ba-auth-promo::after {
  content: none;
}

.ba-auth-promo-inner {
  position: relative;
  z-index: 1;
}

.ba-auth-eyebrow {
  color: var(--primary);
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

.ba-auth-title .accent {
  color: var(--primary);
}

.ba-feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(0, 208, 148, 0.08);
  flex-shrink: 0;
}

.ba-feature-icon-round {
  border-radius: 50%;
}

.ba-avatar-stack {
  display: flex;
  align-items: center;
}

.ba-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  margin-left: -0.45rem;
}

.ba-avatar:first-child {
  margin-left: 0;
}

.ba-auth-card-wide {
  max-width: 620px;
}

.ba-phone-group {
  display: flex;
  gap: 0.5rem;
}

.ba-phone-group .ba-dial {
  width: 5.5rem;
  flex-shrink: 0;
  padding-left: 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  min-height: 3rem;
}

.ba-auth .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23B7C5C0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.ba-auth .form-select:focus {
  background-color: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 208, 148, 0.15);
}

.ba-stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
}

.ba-risk-box {
  background: rgba(0, 208, 148, 0.06);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.ba-auth-panel {
  background: var(--bg-main);
}

.ba-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 440px;
  width: 100%;
}

.ba-auth-tabs {
  border-bottom: 1px solid var(--border);
  gap: 1.25rem;
}

.ba-auth-tabs .nav-link {
  border: 0;
  border-radius: 0;
  color: var(--text-muted);
  padding: 0.5rem 0;
  background: transparent;
}

.ba-auth-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background: transparent;
}

.ba-auth .form-control,
.ba-auth .form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  min-height: 3rem;
  padding-left: 2.75rem;
}

.ba-auth .form-control:focus {
  background: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 208, 148, 0.15);
}

.ba-auth .form-control::placeholder {
  color: var(--text-muted);
}

.ba-input-wrap {
  position: relative;
}

.ba-input-wrap .ba-input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.ba-input-wrap .ba-input-action {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  z-index: 2;
}

.ba-auth .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.ba-auth .form-check-label,
.ba-auth .form-label {
  color: var(--text-secondary);
}

.ba-btn-auth {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-primary);
  font-weight: 700;
  min-height: 3rem;
}

.ba-btn-auth:hover {
  background: #00B87F;
  border-color: #00B87F;
  color: var(--text-primary);
}

.ba-btn-social {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  min-height: 3rem;
}

.ba-btn-social:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-elevated);
}

.ba-auth a.link-primary {
  color: var(--primary) !important;
  text-decoration: none;
}

.ba-auth a.link-primary:hover {
  text-decoration: underline;
}

.ba-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ba-divider::before,
.ba-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ba-logo-word {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ba-logo-word span {
  color: inherit;
}

/* Login reference geometry needs exact desktop proportions that Bootstrap's
   50/50 columns and standard spacing utilities cannot express. */
body.ba-auth-login {
  background:
    linear-gradient(90deg, rgba(2, 9, 17, 0.05) 0%, rgba(2, 9, 17, 0.18) 49%, rgba(5, 15, 22, 0.9) 64%, rgba(5, 15, 22, 0.98) 100%),
    url("../images/auth/auth-trading-visual.webp?rev=20260811c") center bottom / cover no-repeat,
    var(--bg-deep);
}

.ba-auth-login>.container-fluid {
  padding: 0;
}

.ba-auth-login .ba-auth-promo {
  flex: 0 0 56.6%;
  max-width: 56.6%;
  background: transparent;
  border-right: 0;
}

.ba-auth-login .ba-auth-panel {
  flex: 0 0 43.4%;
  max-width: 43.4%;
  justify-content: flex-start !important;
  background: transparent;
  padding: 0 !important;
}

.ba-auth-login .ba-auth-promo-inner {
  justify-content: flex-start !important;
  padding: 28px 50px 0px !important;
}

.ba-auth-login .ba-logo-word {
  font-size: 1.25rem;
}

.ba-auth-login .ba-auth-content {
  max-width: 660px;
  margin: 66px 0 0 !important;
  padding: 0 !important;
}

.ba-auth-login .ba-auth-eyebrow {
  margin-bottom: 20px !important;
}

.ba-auth-login .ba-auth-title {
  font-size: 3.5rem;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px !important;
}

.ba-auth-login .ba-auth-intro {
  max-width: 450px;
  font-size: 1.06rem;
  line-height: 1.6;
  margin-bottom: 34px !important;
}

.ba-auth-login .ba-feature-list {
  gap: 22px !important;
  margin-bottom: 48px !important;
}

.ba-auth-login .ba-feature-icon {
  width: 50px;
  height: 50px;
  border-color: rgba(0, 208, 148, 0.8);
  background: rgba(2, 9, 17, 0.48);
  border-radius: 10px;
  font-size: 1.3rem;
}

.ba-auth-login .ba-feature-list .fw-semibold {
  font-size: 1rem;
  margin-top: 2px;
  margin-bottom: 4px;
}

.ba-auth-login .ba-feature-list .small {
  font-size: 0.86rem;
}

.ba-auth-login .ba-stats-bar {
  min-height: 147px;
  padding: 25px 22px !important;
  margin-bottom: 27px !important;
  background: rgba(9, 20, 28, 0.78);
  border-radius: 16px;
}

.ba-auth-login .ba-stats-bar .row {
  min-height: 95px;
  align-items: center;
}

.ba-auth-login .ba-stats-bar .col-xl-3:not(:first-child) {
  border-left: 1px solid rgba(21, 36, 51, 0.95);
}

.ba-auth-login .ba-stat-icon {
  font-size: 1.45rem;
  margin-bottom: 13px;
}

.ba-auth-login .ba-stats-bar .fw-bold {
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 8px;
}

.ba-auth-login .ba-stats-bar .small:last-child {
  font-size: 0.9rem;
}

.ba-auth-login .ba-risk-box {
  min-height: 73px;
  padding: 17px 20px !important;
  background: rgba(9, 20, 28, 0.55);
  font-size: 0.91rem;
  line-height: 1.5;
}

.ba-auth-login .ba-auth-card {
  max-width: 550px;
  /* min-height: 834px; */
  margin-top: 1px;
  padding: 46px !important;
  border-radius: 20px;
  background: rgba(9, 20, 28, 0.9);
}

.ba-auth-login .ba-auth-panel {
  align-items: center !important;
}

.ba-auth-login .ba-auth-card h1 {
  font-size: 2rem;
}

.ba-auth-login .ba-auth-card>.text-center>p {
  font-size: 1rem;
  margin-bottom: 25px !important;
}

.ba-auth-login .ba-auth-tabs {
  margin-bottom: 26px !important;
}

.ba-auth-login .ba-auth-tabs .nav-link {
  font-size: 1rem;
  padding: 13px 0;
}

.ba-auth-login .form-label {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ba-auth-login .form-control {
  min-height: 61px;
  border-radius: 11px;
  padding-left: 50px;
}

.ba-auth-login .ba-input-wrap .ba-input-icon {
  left: 18px;
  font-size: 1.1rem;
}

.ba-auth-login form>.mb-3 {
  margin-bottom: 25px !important;
}

.ba-auth-login form>.d-flex.mb-4 {
  margin-bottom: 34px !important;
}

.ba-auth-login .form-check-label,
.ba-auth-login a.link-primary {
  font-size: 0.95rem;
}

.ba-auth-login .ba-btn-auth {
  min-height: 66px;
  border-radius: 11px;
  font-size: 1.08rem;
}

.ba-auth-login .ba-divider {
  margin: 6px 0 24px !important;
  font-size: 0.95rem;
}

.ba-auth-login .ba-btn-social {
  min-height: 63px;
  border-radius: 11px;
  font-size: 1rem;
  opacity: 1;
}

.ba-auth-login .ba-auth-card>p:last-child {
  font-size: 0.95rem !important;
}

/* Register uses the wider two-column form and 46/54 split in the reference. */
body.ba-auth-register {
  background:
    linear-gradient(90deg, rgba(2, 9, 17, 0.04) 0%, rgba(2, 9, 17, 0.18) 43%, rgba(5, 15, 22, 0.93) 57%, rgba(5, 15, 22, 0.99) 100%),
    url("../images/auth/auth-trading-visual.webp?rev=20260811c") center bottom / cover no-repeat,
    var(--bg-deep);
}

.ba-auth-register>.container-fluid {
  padding: 0;
}

.ba-auth-register .ba-auth-promo {
  flex: 0 0 46%;
  max-width: 46%;
  background: transparent;
  border-right: 0;
}

.ba-auth-register .ba-auth-panel {
  flex: 0 0 54%;
  max-width: 54%;
  background: transparent;
  padding: 0 !important;
}

.ba-auth-register .ba-auth-promo-inner {
  justify-content: flex-start !important;
  padding: 22px 49px 41px !important;
}

.ba-auth-register .ba-logo-word {
  font-size: 1.25rem;
}

.ba-auth-register .ba-auth-content {
  max-width: 500px;
  margin: 80px 0 0 !important;
  padding: 0 !important;
}

.ba-auth-register .ba-auth-eyebrow {
  margin-bottom: 17px !important;
}

.ba-auth-register .ba-auth-title {
  font-size: 3.15rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 19px !important;
}

.ba-auth-register .ba-auth-content>p:not(.ba-auth-eyebrow) {
  max-width: 455px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 34px !important;
}

.ba-auth-register .ba-feature-list {
  gap: 24px !important;
  margin-bottom: 30px !important;
}

.ba-auth-register .ba-feature-icon {
  width: 51px;
  height: 51px;
  border-color: rgba(0, 208, 148, 0.8);
  border-radius: 10px;
  background: rgba(2, 9, 17, 0.5);
  font-size: 1.25rem;
}

.ba-auth-register .ba-feature-list .fw-semibold {
  font-size: 1rem;
  margin-top: 3px;
  margin-bottom: 4px;
}

.ba-auth-register .ba-feature-list .small {
  font-size: 0.84rem;
}

.ba-auth-register .ba-stats-bar {
  min-height: 157px;
  padding: 24px 27px !important;
  margin-bottom: 22px !important;
  border-radius: 16px;
  background: rgba(9, 20, 28, 0.78);
  flex-wrap: nowrap !important;
  gap: 30px !important;
}

.ba-auth-register .ba-avatar {
  width: 54px;
  height: 54px;
  object-fit: cover;
  padding: 0;
  margin-left: -12px;
}

.ba-auth-register .ba-avatar-count {
  background: var(--bg-card);
  border-color: var(--primary);
  font-size: 0.8rem;
}

.ba-auth-register .ba-register-count {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.ba-auth-register .ba-register-count strong {
  color: var(--primary);
  font-size: 1.8rem;
  line-height: 1;
}

.ba-auth-register .ba-register-count span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ba-auth-register .ba-risk-box {
  min-height: 106px;
  padding: 18px 23px !important;
  font-size: 0.86rem;
  line-height: 1.5;
  background: rgba(9, 20, 28, 0.55);
}

.ba-auth-register .ba-auth-card {
  max-width: 584px;
  padding: 49px 34px !important;
  border-radius: 18px;
  background: rgba(9, 20, 28, 0.91);
}

.ba-auth-register .ba-auth-card-wide {
  max-width: 584px;
}

.ba-auth-register .ba-auth-card>.text-center {
  margin-bottom: 22px !important;
}

.ba-auth-register .ba-auth-card h1 {
  font-size: 2rem;
  margin-bottom: 8px !important;
}

.ba-auth-register .ba-auth-card form>.row {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 20px;
}

.ba-auth-register .form-label {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ba-auth-register .form-control:not(.js-international-phone):not(.iti__tel-input),
.ba-auth-register .form-select {
  min-height: 51px;
  border-radius: 9px;
  padding-left: 48px;
}

.ba-auth-register .ba-input-wrap .ba-input-icon {
  left: 17px;
  font-size: 1rem;
}

.ba-auth-register .ba-phone-group .ba-dial {
  width: 8.5rem;
  min-height: 51px;
  padding-left: 0.75rem;
}

body.ba-auth {
  --iti-hover-color: rgba(0, 208, 148, 0.12);
  --iti-border-color: var(--border);
  --iti-country-selector-bg: var(--bg-elevated);
  --iti-icon-color: var(--text-muted);
}

.ba-auth-register .ba-register-phone-field {
  position: relative;
  z-index: 30;
}

.ba-auth-register .ba-register-phone-field .iti {
  position: relative;
  z-index: 30;
}

.ba-auth-register .ba-register-panel .ba-input-wrap .ba-input-icon,
.ba-auth-register .ba-register-panel .ba-input-wrap .ba-input-action {
  z-index: 1;
}

.ba-auth-panel .iti {
  width: 100%;
  display: block;
}

.ba-auth-panel .iti .iti__tel-input,
.ba-auth-panel .iti input.form-control {
  width: 100%;
  min-height: 51px;
  padding-right: 0.75rem;
  border-radius: 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.ba-auth-panel .iti__selected-country-primary {
  padding-left: 0.75rem;
  padding-right: 0.35rem;
}

.ba-auth-panel .iti__selected-dial-code {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.ba-auth-panel .iti__arrow {
  border-color: var(--text-muted);
}

.ba-auth-panel .iti__country-list,
.ba-auth-panel .iti__country-selector {
  background: var(--bg-elevated, #0c1a24);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 9px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  color: var(--text-primary, #f5f5f5);
  z-index: 1060;
}

.ba-auth-panel .iti__search-input-wrapper {
  border-color: var(--border, rgba(255, 255, 255, 0.12));
}

.ba-auth-panel .iti__search-input {
  background: var(--bg-card, #09141c);
  color: var(--text-primary, #f5f5f5);
}

.ba-auth-panel .iti__country.iti__highlight,
body.ba-auth .iti__country.iti__highlight {
  background: rgba(0, 208, 148, 0.12);
}

body.ba-auth .iti--detached-country-selector .iti__country-selector,
body.ba-auth .iti--detached-country-selector .iti__country-list {
  background: var(--bg-elevated, #0c1a24);
  border-color: var(--border, #152433);
  color: var(--text-primary, #f5f5f5);
}

body.ba-auth .iti--detached-country-selector:not(.iti--fullscreen-popup) .iti__country-selector {
  border: 1px solid var(--border, #152433);
  border-radius: 9px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

body.ba-auth .iti--detached-country-selector .iti__search-input-wrapper {
  border-color: var(--border, #152433);
  background: var(--bg-card, #09141c);
}

body.ba-auth .iti--detached-country-selector .iti__search-input {
  background: var(--bg-card, #09141c);
  color: var(--text-primary, #f5f5f5);
}

body.ba-auth .iti--detached-country-selector .iti__search-icon-svg {
  stroke: var(--text-muted, #6b7882);
}

body.ba-auth .iti--detached-country-selector .iti__country-check {
  color: var(--primary, #00d094);
}

.iti--fullscreen-popup.iti--detached-country-selector {
  z-index: 2000;
}

.iti--fullscreen-popup .iti__country-selector {
  background: var(--bg-card, #09141c);
  border: 1px solid var(--border, #152433);
  border-radius: 12px;
  color: var(--text-primary, #fff);
  max-height: calc(100vh - 60px);
}

.iti--fullscreen-popup .iti__search-input-wrapper {
  border-color: var(--border, #152433);
}

.iti--fullscreen-popup .iti__search-input {
  background: var(--bg-elevated, #0c1a24);
  color: var(--text-primary, #fff);
}

.ba-auth-register .form-check {
  margin: 19px 0 !important;
}

.ba-auth-register .ba-btn-auth {
  min-height: 58px;
  border-radius: 9px;
  font-size: 1.05rem;
}

.ba-auth-register .ba-divider {
  margin: 16px 0 !important;
}

.ba-auth-register .ba-btn-social {
  min-height: 60px;
  border-radius: 9px;
  opacity: 1;
}

.ba-auth-register .ba-auth-card>p:last-child {
  font-size: 0.9rem !important;
}

@media (max-width: 991.98px) {

  .ba-auth-register .ba-auth-promo,
  .ba-auth-register .ba-auth-panel {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ba-auth-register .ba-auth-panel {
    padding: 2rem !important;
  }

  .ba-auth-register .ba-auth-card {
    min-height: 0;
    overflow: visible;
  }

  .ba-auth-login .ba-auth-promo,
  .ba-auth-login .ba-auth-panel {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ba-auth-login .ba-auth-panel {
    justify-content: center !important;
    padding: 2rem !important;
  }

  .ba-auth-login .ba-auth-card {
    min-height: 0;
  }

  .ba-auth-promo {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  body.ba-auth-register {
    background: var(--bg-deep);
  }

  .ba-auth-register .ba-auth-panel {
    padding: 1rem !important;
  }

  .ba-auth-register .ba-auth-card {
    padding: 1.75rem 1.4rem !important;
    border-radius: 1rem;
    overflow: visible;
  }

  .ba-auth-register .ba-phone-group .ba-dial {
    width: 7.2rem;
  }

  body.ba-auth-login {
    background: var(--bg-deep);
  }

  .ba-auth-login .ba-auth-panel {
    align-items: flex-start !important;
    padding: 1rem !important;
  }

  .ba-auth-login .ba-auth-card {
    max-width: 440px;
    padding: 1.75rem 1.4rem !important;
    border-radius: 1rem;
  }

  .ba-auth-login .ba-auth-card h1 {
    font-size: 1.75rem;
  }

  .ba-auth-login .ba-auth-tabs .nav-link {
    font-size: 0.88rem;
  }

  .ba-auth-login .form-check-label,
  .ba-auth-login a.link-primary {
    font-size: 0.82rem;
  }

  .ba-auth-promo {
    display: none !important;
  }
}

/* Forgot / reset page chrome */
body.ba-auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ba-auth-topbar,
.ba-auth-footer {
  background: var(--bg-deep);
  border-color: var(--border);
}

.ba-auth-topbar {
  border-bottom: 1px solid var(--border);
}

.ba-auth-footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ba-auth-body {
  flex: 1;
  min-height: 0;
}

.ba-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0, 208, 148, 0.08);
}

.ba-auth-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 208, 148, 0.15);
  color: var(--primary);
  font-size: 1.35rem;
  border: 1px solid rgba(0, 208, 148, 0.35);
}

/* Forgot-password mockup uses a fixed 96/819/109 desktop chrome and a wide
   right-side card; Bootstrap's default flex sizing cannot represent it. */
.ba-auth-forgot .ba-auth-topbar {
  flex: 0 0 96px;
  padding: 0 49px !important;
}

.ba-auth-forgot .ba-auth-topbar .ba-logo-word {
  font-size: 1.35rem;
}

.ba-auth-forgot .ba-auth-topbar>div {
  gap: 37px !important;
}

.ba-auth-forgot .ba-auth-topbar .ba-lang,
.ba-auth-forgot .ba-auth-topbar a {
  font-size: 1rem !important;
}

.ba-auth-forgot>.ba-auth-body {
  flex: 1 0 819px;
  min-height: 819px;
  padding: 0;
}

.ba-auth-forgot .ba-auth-body>.row {
  height: 100%;
}

.ba-auth-forgot .ba-auth-promo,
.ba-auth-forgot .ba-auth-panel {
  flex: 0 0 50%;
  max-width: 50%;
}

.ba-auth-forgot .ba-auth-promo {
  background:
    linear-gradient(180deg, rgba(2, 9, 17, 0.82) 0%, rgba(2, 9, 17, 0.4) 43%, rgba(2, 9, 17, 0.16) 100%),
    url("../images/auth/auth-trading-visual.webp?rev=20260811c") center bottom / cover no-repeat,
    var(--bg-deep);
  border-right: 0;
}

.ba-auth-forgot .ba-auth-promo-inner {
  justify-content: flex-start !important;
  padding: 15px 49px 28px !important;
}

.ba-auth-forgot .ba-secure-badge {
  width: fit-content;
  min-height: 44px;
  padding: 0 14px;
  margin-bottom: 15px !important;
  border-color: rgba(0, 208, 148, 0.23);
  border-radius: 10px;
  font-size: 0.86rem;
}

.ba-auth-forgot .ba-auth-title {
  font-size: 3rem;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 16px !important;
}

.ba-auth-forgot .ba-auth-promo-inner>p {
  max-width: 490px;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 33px !important;
}

.ba-auth-forgot .ba-stats-bar {
  width: 388px;
  min-height: 331px;
  padding: 17px 23px !important;
  margin-bottom: 29px !important;
  border-radius: 14px;
  background: rgba(9, 20, 28, 0.72);
}

.ba-auth-forgot .ba-stats-bar .d-flex.flex-column {
  gap: 0 !important;
}

.ba-auth-forgot .ba-stats-bar>.d-flex.flex-column>.d-flex.gap-3 {
  min-height: 74px;
  padding: 12px 4px;
  align-items: center !important;
}

.ba-auth-forgot .ba-stats-bar>.d-flex.flex-column>.d-flex.gap-3:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.ba-auth-forgot .ba-feature-icon {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 1.45rem;
}

.ba-auth-forgot .ba-stats-bar .fw-semibold {
  font-size: 1rem;
  margin-bottom: 4px;
}

.ba-auth-forgot .ba-stats-bar .small {
  font-size: 0.84rem;
}

.ba-auth-forgot .ba-auth-promo-inner>.row {
  width: 636px;
  min-height: 131px;
  margin: 0;
  padding: 17px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 20, 28, 0.7);
  align-items: center;
}

.ba-auth-forgot .ba-auth-promo-inner>.row>div {
  padding: 0 21px;
  text-align: center !important;
}

.ba-auth-forgot .ba-auth-promo-inner>.row>div:not(:first-child) {
  border-left: 1px solid var(--border);
}

.ba-auth-forgot .ba-auth-promo-inner>.row .fw-bold {
  font-size: 1.45rem;
  margin-bottom: 7px;
}

.ba-auth-forgot .ba-auth-panel {
  align-items: flex-start !important;
  padding: 3px 53px 0 0 !important;
  background: var(--bg-main);
}

.ba-auth-forgot .ba-auth-card {
  max-width: 550px;
  /* min-height: 788px; */
  padding: 40px 73px !important;
  border-radius: 17px;
  background: rgba(9, 20, 28, 0.68);
}

.ba-auth-forgot .ba-auth-icon-circle {
  width: 112px;
  height: 112px;
  margin-bottom: 17px !important;
  font-size: 2.6rem;
  background: rgba(0, 208, 148, 0.04);
}

.ba-auth-forgot .ba-auth-card h1 {
  font-size: 2.1rem;
  margin-bottom: 12px !important;
}

.ba-auth-forgot .ba-auth-card>p {
  max-width: 470px;
  margin: 0 auto 47px !important;
  font-size: 1.06rem;
  line-height: 1.55;
}

.ba-auth-forgot .form-label {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 13px;
}

.ba-auth-forgot .form-control {
  min-height: 60px;
  padding-left: 58px;
  border-radius: 8px;
  font-size: 1rem;
}

.ba-auth-forgot .ba-input-wrap .ba-input-icon {
  left: 19px;
  font-size: 1.3rem;
}

.ba-auth-forgot form .mb-3 {
  margin-bottom: 27px !important;
}

.ba-auth-forgot .ba-btn-auth {
  min-height: 61px;
  border-radius: 8px;
  font-size: 1.08rem;
}

.ba-auth-forgot .ba-divider {
  margin: 3px 0 26px !important;
  font-size: 1rem;
}

.ba-auth-forgot .ba-btn-outline-auth {
  width: 428px !important;
  min-height: 56px;
  margin: 0 auto 54px !important;
  display: block;
  border-radius: 8px;
  font-size: 1rem;
  opacity: 1;
}

.ba-auth-forgot .ba-auth-card>p:last-child {
  margin: 0 auto !important;
  font-size: 1rem !important;
}

.ba-auth-forgot .ba-auth-footer {
  flex: 0 0 109px;
  padding: 0 49px !important;
  display: flex;
  align-items: center;
}

.ba-auth-forgot .ba-auth-footer>div {
  width: 100%;
}

.ba-auth-forgot .ba-auth-footer>div>div:first-child {
  min-width: 330px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.ba-auth-forgot .ba-auth-footer>div>div:first-child img {
  margin-right: 2px;
}

.ba-auth-forgot .ba-auth-footer .ba-footer-link {
  font-size: 0.86rem;
}

.ba-auth-forgot .ba-social {
  width: 37px;
  height: 37px;
  font-size: 0.95rem;
}

/* Reset reuses the forgot-password chrome but has a denser form composition. */
.ba-auth-reset .ba-auth-topbar {
  flex-basis: 86px;
}

.ba-auth-reset>.ba-auth-body {
  flex-basis: 823px;
  min-height: 823px;
}

.ba-auth-reset .ba-auth-promo-inner {
  padding: 37px 53px 28px !important;
}

.ba-auth-reset .ba-secure-badge {
  margin-bottom: 17px !important;
}

.ba-auth-reset .ba-auth-title {
  margin-bottom: 12px !important;
}

.ba-auth-reset .ba-auth-promo-inner>p {
  margin-bottom: 20px !important;
}

.ba-auth-reset .ba-stats-bar {
  width: 600px;
  min-height: 292px;
  padding: 0 !important;
  margin-bottom: 28px !important;
  border: 0;
  background: transparent;
}

.ba-auth-reset .ba-stats-bar>.d-flex.flex-column>.d-flex.gap-3 {
  min-height: 73px;
  padding: 9px 0;
  border: 0;
}

.ba-auth-reset .ba-feature-icon {
  width: 57px;
  height: 57px;
  border: 1px solid rgba(0, 208, 148, 0.45);
  border-radius: 12px;
  background: rgba(2, 9, 17, 0.45);
}

.ba-auth-reset .ba-auth-promo-inner>.row {
  width: 603px;
  min-height: 151px;
  padding: 22px 0;
}

.ba-auth-reset .ba-auth-panel {
  padding-top: 0 !important;
  padding-right: 49px !important;
}

.ba-auth-reset .ba-auth-card {
  max-width: 720px;
  min-height: 795px;
  padding: 26px 61px !important;
}

.ba-auth-reset .ba-auth-icon-circle {
  width: 88px;
  height: 88px;
  margin-bottom: 13px !important;
  font-size: 2rem;
}

.ba-auth-reset .ba-auth-card>.text-center {
  margin-bottom: 25px !important;
}

.ba-auth-reset .ba-auth-card h1 {
  font-size: 2rem;
  margin-bottom: 10px !important;
}

.ba-auth-reset .ba-auth-card>.text-center p {
  max-width: 410px;
  margin: 0 auto !important;
  font-size: 1rem;
  line-height: 1.55;
}

.ba-auth-reset .form-label {
  margin-bottom: 10px;
}

.ba-auth-reset .form-control {
  min-height: 59px;
}

.ba-auth-reset form>.mb-3 {
  margin-bottom: 24px !important;
}

.ba-auth-reset form>.mb-3+.mb-3 {
  margin-bottom: 17px !important;
}

.ba-auth-reset .ba-strength {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px !important;
}

.ba-auth-reset .ba-strength>.d-flex {
  flex: 0 0 auto;
  gap: 16px;
  margin: 0 !important;
}

.ba-auth-reset .ba-strength-bars {
  width: 188px;
  flex: 0 0 188px;
}

.ba-auth-reset .ba-req-box {
  height: 100px;
  min-height: 100px;
  padding: 15px 23px !important;
  margin-bottom: 18px !important;
}

.ba-auth-reset .ba-req-box>.d-flex {
  margin-bottom: 6px !important;
}

.ba-auth-reset .ba-req-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
}

.ba-auth-reset .ba-req-list li {
  margin-bottom: 3px;
}

.ba-auth-reset .ba-req-list li i {
  color: var(--primary);
}

.ba-auth-reset .ba-btn-auth {
  min-height: 65px;
}

.ba-auth-reset form+p {
  margin-top: 34px !important;
}

.ba-auth-reset .ba-auth-footer {
  flex-basis: 115px;
}

.ba-btn-outline-auth {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  min-height: 3rem;
}

.ba-btn-outline-auth:hover {
  background: rgba(0, 208, 148, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.ba-footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

.ba-footer-link:hover {
  color: var(--primary);
}

.ba-social {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ba-req-box {
  background: rgba(0, 208, 148, 0.06);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.ba-req-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.ba-req-list li {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ba-req-list li i {
  color: var(--border);
}

.ba-req-list li.is-met {
  color: var(--text-secondary);
}

.ba-req-list li.is-met i {
  color: var(--primary);
}

.ba-strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}

.ba-strength-bars span {
  height: 0.3rem;
  border-radius: 999px;
  background: var(--border);
}

.ba-strength-bars.level-1 span:nth-child(1) {
  background: var(--danger);
}

.ba-strength-bars.level-2 span:nth-child(-n + 2) {
  background: var(--warning);
}

.ba-strength-bars.level-3 span:nth-child(-n + 3) {
  background: var(--warning);
}

.ba-strength-bars.level-4 span {
  background: var(--success);
}

@media (max-width: 991.98px) {
  .ba-auth-forgot .ba-auth-promo {
    display: none !important;
  }

  .ba-auth-forgot .ba-auth-panel {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 2rem !important;
    align-items: center !important;
  }

  .ba-auth-forgot>.ba-auth-body {
    flex: 1 0 auto;
  }

  .ba-auth-forgot .ba-auth-card {
    min-height: 0;
  }

  .ba-auth-forgot .ba-auth-footer {
    flex: 0 0 auto;
    padding: 1.5rem 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .ba-auth-forgot .ba-auth-topbar {
    flex: 0 0 72px;
    padding: 0 1rem !important;
  }

  .ba-auth-forgot .ba-auth-topbar .ba-logo-word {
    font-size: 1rem;
  }

  .ba-auth-forgot .ba-auth-panel {
    padding: 1rem !important;
  }

  .ba-auth-forgot .ba-auth-card {
    padding: 2rem 1.4rem !important;
  }

  .ba-auth-forgot .ba-auth-icon-circle {
    width: 84px;
    height: 84px;
    font-size: 2rem;
  }

  .ba-auth-forgot .ba-auth-card h1 {
    font-size: 1.75rem;
  }

  .ba-auth-forgot .ba-btn-outline-auth {
    width: 100% !important;
  }

  .ba-auth-forgot .ba-auth-footer {
    padding: 1.5rem 1rem !important;
  }

  .ba-auth-forgot .ba-auth-footer>div>div:first-child {
    min-width: 0;
    justify-content: center;
  }

  .ba-auth-reset .ba-auth-card {
    padding: 2rem 1.4rem !important;
  }

  .ba-auth-reset .ba-strength {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .ba-auth-reset .ba-strength-bars {
    width: 100%;
    flex-basis: auto;
  }

  .ba-auth-reset .ba-req-list {
    grid-template-columns: 1fr;
  }

  .ba-auth-reset .ba-req-box {
    height: auto;
    min-height: 0;
  }
}

/* Register wizard (register.php) */
.ba-register-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.ba-register-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ba-register-step.is-active,
.ba-register-step.is-complete {
  color: var(--text-primary);
}

.ba-register-step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ba-register-step.is-active .ba-register-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-deep);
}

.ba-register-step.is-complete .ba-register-step-num {
  background: rgba(0, 208, 148, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.ba-register-step-line {
  flex: 1;
  max-width: 3.5rem;
  height: 1px;
  background: var(--border);
}

.ba-register-step-line.is-complete {
  background: var(--primary);
}

@media (max-width: 575.98px) {
  .ba-register-step-label {
    display: none;
  }
}