/* Login modal polish — balances brand + auth columns, kills empty legal gap */

.lm-polish-heading {
  margin: 0 0 18px;
}

.lm-polish-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f97211;
}

.lm-polish-title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #001438;
}

.lm-polish-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 500;
  color: #5b6b7f;
}

@media (min-width: 768px) {
  /* Single tall panel felt empty — fit content and center the auth stack */
  [class*="_panel_"][class*="_1jyst_"],
  [class*="_panel_"][class*="_1mitq_"] {
    min-height: 500px !important;
    max-height: min(580px, calc(100vh - 32px)) !important;
  }

  [class*="_authCol_"] {
    padding: 36px 36px 28px !important;
    justify-content: center !important;
  }

  /* Stop pinning Terms to the floor — keep it under privacy */
  [class*="_legal_"]:not([class*="_legalTiny_"]) {
    margin-top: 10px !important;
    padding-top: 0 !important;
  }

  [class*="_privacy_"] {
    margin: 14px 0 0 !important;
    background: #f4f7fb !important;
    border: 1px solid #e8edf2;
  }

  [class*="_divider_"] {
    margin: 14px 0 !important;
  }

  [class*="_brandCol_"] {
    padding: 40px 36px 32px !important;
  }

  [class*="_logoBadge_"] {
    margin-bottom: 28px !important;
  }

  [class*="_brandCopy_"] {
    max-width: 32ch !important;
  }
}

@media (max-width: 767px) {
  .lm-polish-heading {
    margin-bottom: 14px;
  }

  [class*="_legal_"]:not([class*="_legalTiny_"]) {
    margin-top: 12px !important;
  }

  [class*="_privacy_"] {
    margin: 12px 0 0 !important;
  }
}
