/*
 * StratTrade Custom Authentication v1.9.3
 * Model 1 unified split shell.
 * v157 root fix: one CSS source of truth, 57/43 desktop split,
 * and direct reuse of the My Account design tokens loaded from account.css.
 */

body:not(.logged-in) .st-auth-page {
  background:
    radial-gradient(circle at 7% 9%, rgba(18,103,242,.045), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(10,166,180,.032), transparent 20%),
    var(--bg, #F7F8FA);
  border-top: 1px solid var(--line, #E3E6EA);
}

body:not(.logged-in) .st-auth-page-wrap {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 50px 0 66px;
}

.st-auth-shell {
  width: 100%;
  color: var(--text, #111827);
}

/* Desktop ratio is derived from the real content requirements:
 * ~638px intro / ~482px auth at the 1120px shell width. */
.st-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 57%) minmax(0, 43%);
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E3E6EA);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 8px 28px rgba(16,24,40,.06));
}

.st-auth-intro {
  position: relative;
  min-width: 0;
  padding: 42px 44px 36px;
  background: linear-gradient(135deg, var(--soft-blue, #F3F8FF), #F7FBFB);
  border-right: 1px solid #EAF0F4;
}

.st-auth-intro::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 185px;
  height: 122px;
  opacity: .20;
  background:
    linear-gradient(155deg, transparent 0 46%, #8fc5ff 47% 48%, transparent 49% 100%),
    linear-gradient(170deg, transparent 0 60%, #b9dcff 61% 62%, transparent 63% 100%);
  pointer-events: none;
}

.st-auth-kicker {
  margin: 0 0 12px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.st-auth-intro h1 {
  max-width: 525px;
  margin: 0;
  color: var(--text, #111827);
  font-size: clamp(37px, 3vw, 43px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 800;
}

.st-auth-intro-copy {
  max-width: 500px;
  margin: 18px 0 27px;
  color: var(--muted, #667085);
  font-size: 14px;
  line-height: 1.62;
}

.st-auth-benefits {
  display: grid;
  gap: 16px;
}

.st-auth-benefit {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.st-auth-benefit-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #D9E8F8;
  border-radius: 11px;
  background: #ECF4FF;
  color: var(--blue, #1267F2);
  box-shadow: 0 1px 2px rgba(16,24,40,.03);
}

.st-auth-benefit-icon svg,
.st-auth-security-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-auth-benefit strong,
.st-auth-benefit span { display: block; }

.st-auth-benefit strong {
  margin-bottom: 2px;
  color: #1D2939;
  font-size: 13.5px;
  font-weight: 750;
}

.st-auth-benefit div > span {
  color: var(--muted, #667085);
  font-size: 11.8px;
  line-height: 1.42;
}

.st-auth-security {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #E3E6EA);
}

.st-auth-security-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-bg, #EAF8F1);
  color: var(--green, #16A06A);
}

.st-auth-security strong,
.st-auth-security small { display: block; }

.st-auth-security strong {
  color: #344054;
  font-size: 12px;
}

.st-auth-security small {
  max-width: 390px;
  margin-top: 3px;
  color: #7F8B9D;
  font-size: 10.8px;
  line-height: 1.45;
}

/* Right side: intentionally narrower than intro panel. */
.st-auth-card {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: 34px 28px 29px;
  background: var(--surface, #FFFFFF);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.st-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 17px;
  padding: 4px;
  border: 1px solid var(--line, #E3E6EA);
  border-radius: 10px;
  background: var(--bg, #F7F8FA);
}

.st-auth-tab {
  appearance: none;
  box-sizing: border-box;
  min-height: 42px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted, #667085);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 750;
  text-align: center;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.st-auth-tab:hover { color: #344054; }

.st-auth-tab.is-active {
  background: var(--soft-blue, #F3F8FF);
  color: var(--blue, #1267F2);
  box-shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.05);
}

.st-auth-tab:focus-visible {
  outline: 2px solid #84B6FF;
  outline-offset: 2px;
}

.st-auth-social-context {
  width: 100%;
  margin: 0 0 15px;
}

.st-auth-social-context[hidden] { display: none !important; }

.st-auth-social {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.st-auth-social-label {
  margin: 0 0 8px;
  color: #344054;
  font-size: 12.5px;
  font-weight: 750;
  text-align: center;
}

/* Responsive two-provider row: no fixed 220px slots. */
.st-auth-social-buttons {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.st-auth-social-buttons > div {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 414px !important;
  gap: 12px !important;
  margin: 0 auto !important;
}

.st-auth-social-buttons .st-auth-provider-slot {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .st-auth-shell .st-auth-social-buttons a.st-auth-provider-text-button,
body .st-auth-shell .st-auth-social-buttons button.st-auth-provider-text-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #D5DCE5 !important;
  border-radius: 8px !important;
  outline: 0 !important;
  background: var(--surface, #FFFFFF) !important;
  color: #1D2939 !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.035) !important;
  font-size: 12.3px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}

body .st-auth-shell .st-auth-social-buttons a.st-auth-provider-text-button:hover,
body .st-auth-shell .st-auth-social-buttons button.st-auth-provider-text-button:hover {
  border-color: #BFC8D4 !important;
  background: #FBFCFD !important;
  box-shadow: 0 2px 5px rgba(16,24,40,.06) !important;
}

body .st-auth-shell .st-auth-social-buttons a.st-auth-provider-text-button:focus-visible,
body .st-auth-shell .st-auth-social-buttons button.st-auth-provider-text-button:focus-visible {
  outline: 2px solid #84B6FF !important;
  outline-offset: 2px !important;
}

body .st-auth-shell .st-auth-social-buttons a.st-auth-provider-text-button img,
body .st-auth-shell .st-auth-social-buttons a.st-auth-provider-text-button svg,
body .st-auth-shell .st-auth-social-buttons button.st-auth-provider-text-button img,
body .st-auth-shell .st-auth-social-buttons button.st-auth-provider-text-button svg {
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  max-width: 19px !important;
  margin-right: 8px !important;
  object-fit: contain !important;
}

body .st-auth-shell .st-auth-social-buttons .st-auth-provider-frame-reset {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.st-auth-provider-text-hidden {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: inherit !important;
}

.st-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 11px 0 0;
  color: #98A2B3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
}

.st-auth-divider::before,
.st-auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line, #E3E6EA);
}

.st-auth-notices,
.st-auth-woocommerce { width: 100%; }

.st-auth-woocommerce #customer_login {
  display: block;
  width: 100%;
  margin: 0;
}

.st-auth-woocommerce #customer_login::before,
.st-auth-woocommerce #customer_login::after {
  display: none !important;
  content: none !important;
}

.st-auth-woocommerce #customer_login > .u-column1,
.st-auth-woocommerce #customer_login > .u-column2,
.st-auth-woocommerce #customer_login > .col-1,
.st-auth-woocommerce #customer_login > .col-2 {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-width: 0;
}

.st-auth-shell.st-auth-default-login .st-auth-woocommerce #customer_login > .u-column1,
.st-auth-shell.st-auth-default-login .st-auth-woocommerce #customer_login > .col-1,
.st-auth-shell.st-auth-default-register .st-auth-woocommerce #customer_login > .u-column2,
.st-auth-shell.st-auth-default-register .st-auth-woocommerce #customer_login > .col-2 { display: block; }

.st-auth-shell.st-auth-default-login .st-auth-woocommerce #customer_login > .u-column2,
.st-auth-shell.st-auth-default-login .st-auth-woocommerce #customer_login > .col-2,
.st-auth-shell.st-auth-default-register .st-auth-woocommerce #customer_login > .u-column1,
.st-auth-shell.st-auth-default-register .st-auth-woocommerce #customer_login > .col-1 { display: none; }

.st-auth-woocommerce #customer_login h2 { display: none !important; }

.st-auth-woocommerce #customer_login form.login,
.st-auth-woocommerce #customer_login form.register {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
}

.st-auth-woocommerce #customer_login form p {
  color: var(--muted, #667085);
  line-height: 1.5;
}

.st-auth-woocommerce #customer_login label {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.st-auth-woocommerce #customer_login input.input-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #D5DCE5;
  border-radius: 8px;
  background: var(--surface, #FFFFFF);
  color: var(--text, #111827);
  box-shadow: none;
  outline: none;
}

.st-auth-woocommerce #customer_login input.input-text:focus {
  border-color: #84B6FF;
  box-shadow: 0 0 0 3px rgba(18,103,242,.10);
}

.st-auth-woocommerce .woocommerce-privacy-policy-text,
.st-auth-woocommerce .woocommerce-privacy-policy-text p {
  margin-top: 9px;
  margin-bottom: 9px;
  font-size: 12.5px;
  line-height: 1.55;
}

.st-auth-woocommerce #customer_login .woocommerce-form-login__rememberme {
  display: block;
  margin-bottom: 10px;
  color: #475467;
  font-size: 12px;
}

.st-auth-woocommerce #customer_login form.login > p.lost_password,
.st-auth-woocommerce #customer_login form.login > p.woocommerce-LostPassword {
  margin: 10px 0 0 !important;
}

.st-auth-woocommerce #customer_login .woocommerce-form-login__submit,
.st-auth-woocommerce #customer_login .woocommerce-form-register__submit,
.st-auth-woocommerce #customer_login button.button {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid var(--blue, #1267F2) !important;
  border-radius: 7px !important;
  background: var(--blue, #1267F2) !important;
  color: #FFFFFF !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  line-height: 42px !important;
  text-align: center !important;
  box-shadow: 0 2px 5px rgba(18,103,242,.12) !important;
}

.st-auth-woocommerce #customer_login .woocommerce-form-login__submit:hover,
.st-auth-woocommerce #customer_login .woocommerce-form-register__submit:hover,
.st-auth-woocommerce #customer_login button.button:hover {
  border-color: var(--blue-hover, #0E5BDC) !important;
  background: var(--blue-hover, #0E5BDC) !important;
}

.st-auth-woocommerce #customer_login a { color: var(--blue, #1267F2); }

@media (max-width: 1040px) {
  body:not(.logged-in) .st-auth-page-wrap {
    width: min(calc(100% - 40px), 980px);
  }

  .st-auth-layout { grid-template-columns: minmax(0, 55%) minmax(0, 45%); }
  .st-auth-intro { padding: 38px 34px 34px; }
  .st-auth-intro h1 { font-size: 37px; }
  .st-auth-card { padding: 32px 26px 28px; }

  .st-auth-social-buttons > div { max-width: 100% !important; }
}

@media (max-width: 900px) {
  body:not(.logged-in) .st-auth-page-wrap {
    width: min(calc(100% - 32px), 700px);
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .st-auth-layout { grid-template-columns: 1fr; }

  .st-auth-intro {
    padding: 34px 32px 30px;
    border-right: 0;
    border-bottom: 1px solid #E2EAF5;
  }

  .st-auth-intro h1,
  .st-auth-intro-copy { max-width: 560px; }

  .st-auth-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .st-auth-benefit {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
  }
  .st-auth-benefit-icon { width: 36px; height: 36px; }
  .st-auth-benefit div > span { font-size: 11px; }
  .st-auth-security { max-width: 560px; }
  .st-auth-card { padding: 30px 30px 28px; }
}

@media (max-width: 620px) {
  body:not(.logged-in) .st-auth-page-wrap {
    width: min(calc(100% - 24px), 540px);
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .st-auth-layout { border-radius: 14px; }
  .st-auth-intro { padding: 28px 22px 25px; }
  .st-auth-intro h1 { font-size: 32px; }
  .st-auth-intro-copy { margin-bottom: 22px; }
  .st-auth-benefits { grid-template-columns: 1fr; }
  .st-auth-card { padding: 24px 18px; }
  .st-auth-tabs { margin-bottom: 15px; }
  .st-auth-social-context { margin-bottom: 14px; }

  .st-auth-social-buttons > div {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    gap: 9px !important;
  }

  .st-auth-social-buttons .st-auth-provider-slot,
  body .st-auth-shell .st-auth-social-buttons a.st-auth-provider-text-button,
  body .st-auth-shell .st-auth-social-buttons button.st-auth-provider-text-button {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
