/* BeeConnect Auth Redesign v20: desktop + mobile */
:root {
  --auth-gold: #f6ad00;
  --auth-gold-deep: #e79a00;
  --auth-gold-soft: #fff3d1;
  --auth-ink: #2d261f;
  --auth-muted: #68707d;
  --auth-line: #e7edf4;
  --auth-border: #dfe6ee;
  --auth-card: #ffffff;
  --auth-panel: #fff8e4;
}

.auth-modal {
  padding: clamp(16px, 2.5vw, 28px) !important;
  background: rgba(15, 18, 22, 0.54) !important;
  backdrop-filter: blur(8px);
}

.auth-redesign-page.bc-login-page {
  min-height: 100dvh !important;
  padding: clamp(18px, 3vw, 34px) !important;
  display: grid !important;
  place-items: center !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 190, 20, 0.13), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(255, 214, 111, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fb 100%) !important;
}

.auth-redesign-card.auth-split-modal,
.auth-content-modal.auth-redesign-card,
.bc-login-modal.auth-redesign-card {
  position: relative;
  width: min(1180px, calc(100vw - 40px)) !important;
  max-width: 1180px !important;
  max-height: calc(100dvh - 40px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(217, 225, 235, 0.95) !important;
  border-radius: 18px !important;
  background: var(--auth-card) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14) !important;
}

.auth-desktop-shell {
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  min-height: min(720px, calc(100dvh - 42px));
  background: #fff;
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 34px;
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 216, 111, 0.58), transparent 34%),
    radial-gradient(circle at 100% 68%, rgba(255, 196, 38, 0.16), transparent 42%),
    linear-gradient(180deg, #fff8df 0%, #fff2c7 100%);
  color: var(--auth-ink);
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: 82px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.auth-brand-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffce2f, #f3a300);
  box-shadow: 0 16px 30px rgba(214, 142, 0, 0.22);
  overflow: hidden;
}

.auth-brand-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.auth-brand-head strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.auth-brand-head span {
  display: block;
  margin-top: 7px;
  color: #5d6570;
  font-size: 0.95rem;
  font-weight: 650;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.auth-brand-copy h2 {
  margin: 0 0 16px;
  color: #1f242b;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.auth-brand-copy p {
  margin: 0;
  max-width: 310px;
  color: #4e5967;
  font-size: 1.06rem;
  line-height: 1.55;
  font-weight: 550;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  margin-top: 10px;
}

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

.auth-benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.78);
  color: var(--auth-gold-deep);
  box-shadow: 0 14px 30px rgba(165, 111, 0, 0.12);
  font-weight: 950;
  font-size: 1.2rem;
}

.auth-benefit strong {
  display: block;
  color: #20242a;
  font-size: 1rem;
  font-weight: 900;
}

.auth-benefit small {
  display: block;
  margin-top: 5px;
  color: #555f6d;
  line-height: 1.4;
  font-size: 0.9rem;
  font-weight: 550;
}

.auth-illustration {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 150px;
  margin-top: auto;
}

.auth-bag {
  position: absolute;
  left: 44%;
  bottom: 0;
  width: 92px;
  height: 112px;
  transform: translateX(-50%);
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(180deg, #ffc233, #f5a400);
  box-shadow: 0 20px 40px rgba(177, 115, 0, 0.18);
}

.auth-bag::before {
  content: "";
  position: absolute;
  left: 23px;
  top: -20px;
  width: 42px;
  height: 34px;
  border: 6px solid rgba(111, 86, 44, 0.46);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.auth-bag::after {
  content: "B";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(208, 135, 0, 0.44);
  font-size: 2.3rem;
  font-weight: 950;
}

.auth-box {
  position: absolute;
  left: 57%;
  bottom: 0;
  width: 82px;
  height: 62px;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff, #f7ecd3);
  box-shadow: 0 18px 30px rgba(163, 105, 0, 0.12);
}

.auth-box::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 8px;
  background: rgba(233, 206, 154, 0.54);
}

.auth-leaf {
  position: absolute;
  bottom: 0;
  width: 62px;
  height: 20px;
  border-radius: 999px 999px 0 999px;
  background: rgba(255, 190, 20, 0.64);
}

.auth-leaf-one {
  left: 24%;
  transform: rotate(45deg);
}

.auth-leaf-two {
  right: 20%;
  transform: rotate(-52deg);
}

.auth-form-panel {
  min-width: 0;
  padding: clamp(34px, 4.2vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  background:
    radial-gradient(circle at 84% 10%, rgba(246, 173, 0, 0.06), transparent 34%),
    #ffffff;
}

.auth-redesign-card .auth-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 0 30px !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 7px !important;
  overflow: hidden;
  background: #fbfcfe !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9), 0 10px 24px rgba(15,23,42,0.04);
}

.auth-redesign-card .auth-tab {
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #3e4450 !important;
  font-size: 1.02rem !important;
  font-weight: 850 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-redesign-card .auth-tab + .auth-tab {
  border-left: 1px solid var(--auth-border) !important;
}

.auth-redesign-card .auth-tab.active {
  color: #7b4f00 !important;
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%) !important;
  box-shadow: inset 0 -2px 0 var(--auth-gold) !important;
}

.auth-tab-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.auth-redesign-card .auth-form {
  display: grid;
  gap: 18px !important;
  width: 100%;
}

.auth-redesign-card .auth-form.hidden {
  display: none !important;
}

.auth-redesign-card .auth-login-form h1,
.auth-redesign-card .auth-login-form h2,
.auth-redesign-card .auth-signup-form h1,
.auth-redesign-card .auth-signup-form h2 {
  margin: 0 !important;
  color: #20242a !important;
  font-size: clamp(2rem, 3vw, 2.6rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.06em !important;
  font-weight: 950 !important;
}

.auth-redesign-card .auth-subtle {
  margin: -6px 0 8px !important;
  color: #667080 !important;
  line-height: 1.55 !important;
  font-size: 1rem !important;
  font-weight: 520 !important;
}

.auth-redesign-card .auth-field {
  display: grid !important;
  gap: 9px !important;
}

.auth-redesign-card .auth-field label,
.auth-redesign-card .quick-phone-panel label {
  color: #242a33 !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
}

.auth-redesign-card .auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-redesign-card .auth-input-icon {
  position: absolute;
  left: 18px;
  z-index: 1;
  width: 20px;
  text-align: center;
  color: #6d7480 !important;
  opacity: 0.95 !important;
  font-size: 1.05rem !important;
  line-height: 1;
  pointer-events: none;
}

.auth-redesign-card .auth-input-wrap input,
.auth-redesign-card .auth-field input {
  width: 100% !important;
  min-height: 58px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #20242a !important;
  padding: 0 54px 0 58px !important;
  font-size: 1rem !important;
  font-weight: 520 !important;
  outline: none !important;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02) !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-redesign-card .auth-input-wrap input::placeholder {
  color: #8a94a3;
}

.auth-redesign-card .auth-input-wrap input:focus,
.auth-redesign-card .auth-field input:focus {
  border-color: var(--auth-gold) !important;
  box-shadow: 0 0 0 4px rgba(246, 173, 0, 0.14) !important;
  background: #fff !important;
}

.auth-redesign-card .auth-password-toggle {
  position: absolute;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0 !important;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent !important;
  color: #525b67 !important;
  cursor: pointer;
  font-size: 1rem;
}

.auth-redesign-card .auth-password-toggle:hover,
.auth-redesign-card .auth-password-toggle:focus-visible {
  background: #f6f8fb !important;
  outline: none;
}

.auth-redesign-card .auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 !important;
  color: #2f3640;
  font-size: 0.92rem;
}

.auth-redesign-card .auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f3640 !important;
  font-weight: 650 !important;
}

.auth-redesign-card .auth-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--auth-gold);
}

.auth-redesign-card .auth-forgot {
  color: #ed9900 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

.auth-redesign-card .auth-forgot:hover {
  text-decoration: underline !important;
}

.auth-redesign-card .auth-btn,
.auth-redesign-card .quick-auth-btn {
  width: 100%;
  min-height: 58px !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.auth-redesign-card .auth-primary-btn,
.auth-redesign-card .auth-btn.auth-primary-btn,
.auth-redesign-card .auth-btn:not(.guest):not(.auth-google-btn) {
  border: 0 !important;
  background: linear-gradient(135deg, #ffbd00 0%, #ef9e00 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(239, 158, 0, 0.22) !important;
}

.auth-redesign-card .auth-primary-btn:hover,
.auth-redesign-card .auth-primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(239, 158, 0, 0.28) !important;
}

.auth-redesign-card .auth-btn.guest,
.auth-redesign-card .bc-guest-link,
.auth-redesign-card .quick-auth-btn {
  border: 1px solid var(--auth-border) !important;
  background: #fff !important;
  color: #20242a !important;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.04) !important;
}

.auth-redesign-card .auth-btn.guest:hover,
.auth-redesign-card .quick-auth-btn:hover,
.auth-redesign-card .auth-btn.guest:focus-visible,
.auth-redesign-card .quick-auth-btn:focus-visible {
  transform: translateY(-1px);
  border-color: #cbd5e1 !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08) !important;
  outline: none;
}

.auth-redesign-card .auth-or {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 !important;
  color: #8c96a5 !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
}

.auth-redesign-card .auth-or::before,
.auth-redesign-card .auth-or::after {
  content: "";
  height: 1px;
  background: var(--auth-line) !important;
}

.auth-redesign-card .google-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.auth-redesign-card .google-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-redesign-card .quick-auth-icon {
  display: none !important;
}

.auth-redesign-card .auth-message {
  min-height: 20px;
  margin: -2px 0 !important;
  color: #b42318;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.auth-redesign-card .auth-message:empty {
  display: none;
}

.auth-redesign-card .auth-security-strip,
.auth-redesign-card .auth-security-note {
  margin: 4px 0 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: #657083 !important;
  padding: 14px 16px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

.auth-redesign-card .auth-verify-note {
  background: #fff7e2 !important;
  color: #7a5510 !important;
  border: 1px solid rgba(246, 173, 0, 0.22) !important;
}

.auth-redesign-card .auth-legal-links.legal-policy-links,
.auth-redesign-card .legal-policy-links {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px !important;
  margin-top: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #555f6d !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.auth-redesign-card .auth-legal-links a,
.auth-redesign-card .legal-policy-links a {
  color: #4f5967 !important;
  text-decoration: none !important;
  font-weight: 750 !important;
}

.auth-redesign-card .auth-legal-links a:hover,
.auth-redesign-card .legal-policy-links a:hover {
  color: #ed9900 !important;
  text-decoration: underline !important;
}

.auth-redesign-card .auth-close,
.auth-redesign-card .bc-login-close {
  top: 18px !important;
  right: 18px !important;
  z-index: 5;
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 248, 230, 0.92) !important;
  color: #6c4310 !important;
  font-size: 1.65rem !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.auth-redesign-card .auth-close:hover,
.auth-redesign-card .bc-login-close:hover {
  background: #fff0c7 !important;
}

.auth-redesign-card .auth-turnstile-wrap {
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden;
}

.auth-redesign-card .auth-turnstile-wrap .cf-turnstile {
  max-width: 100%;
}

.auth-redesign-card .turnstile-test-note {
  max-width: 100% !important;
  margin: 6px 0 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
}

.auth-redesign-card .bee-hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (min-width: 861px) {
  .auth-content-modal.auth-redesign-card {
    width: min(1180px, calc(100vw - 56px)) !important;
  }

  .auth-content-modal.auth-redesign-card .auth-desktop-shell {
    min-height: min(720px, calc(100dvh - 56px));
  }

  .auth-content-modal.auth-redesign-card .auth-form-panel {
    padding-right: clamp(46px, 6vw, 78px);
    padding-left: clamp(46px, 6vw, 78px);
  }
}

@media (max-width: 1020px) and (min-width: 861px) {
  .auth-desktop-shell {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .auth-brand-panel {
    padding: 34px;
  }

  .auth-brand-copy h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 860px) {
  .auth-modal {
    align-items: start !important;
    padding: 10px !important;
    overflow-y: auto;
  }

  .auth-redesign-page.bc-login-page {
    padding: max(10px, env(safe-area-inset-top)) 8px max(28px, env(safe-area-inset-bottom)) !important;
    align-items: start !important;
    place-items: start center !important;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 190, 20, 0.16), transparent 32%),
      linear-gradient(180deg, #fffaf0 0%, #fff 100%) !important;
  }

  .auth-redesign-card.auth-split-modal,
  .auth-content-modal.auth-redesign-card,
  .bc-login-modal.auth-redesign-card {
    width: min(500px, calc(100vw - 16px)) !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 28px !important;
    border: 1px solid rgba(238, 211, 153, 0.92) !important;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 211, 80, 0.15), transparent 34%),
      linear-gradient(180deg, #fffefb 0%, #fff9ec 100%) !important;
    box-shadow: 0 18px 50px rgba(42, 27, 8, 0.16) !important;
  }

  .auth-desktop-shell {
    display: block;
    min-height: 0;
    background: transparent;
  }

  .auth-brand-panel {
    display: none !important;
  }

  .auth-form-panel {
    padding: 54px 28px 30px !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .auth-redesign-card .auth-close,
  .auth-redesign-card .bc-login-close {
    top: 16px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .auth-redesign-card .auth-tabs {
    margin: 0 0 28px !important;
    border-radius: 18px !important;
    padding: 4px;
    gap: 4px !important;
    border-color: rgba(232, 202, 144, 0.98) !important;
    background: rgba(255, 250, 239, 0.82) !important;
  }

  .auth-redesign-card .auth-tab,
  .auth-redesign-card .auth-tab + .auth-tab {
    min-height: 54px !important;
    border: 0 !important;
    border-radius: 15px !important;
    font-size: 1rem !important;
    color: #604314 !important;
  }

  .auth-redesign-card .auth-tab.active {
    color: #fff !important;
    background: linear-gradient(135deg, #ffba00 0%, #eb9f00 100%) !important;
    box-shadow: 0 12px 24px rgba(235, 159, 0, 0.24) !important;
  }

  .auth-redesign-card .auth-form {
    gap: 16px !important;
  }

  .auth-redesign-card .auth-login-form h1,
  .auth-redesign-card .auth-login-form h2,
  .auth-redesign-card .auth-signup-form h1,
  .auth-redesign-card .auth-signup-form h2 {
    color: #382819 !important;
    font-size: clamp(2rem, 9vw, 2.7rem) !important;
  }

  .auth-redesign-card .auth-subtle {
    color: #7b6b59 !important;
    font-size: 1rem !important;
  }

  .auth-redesign-card .auth-field label {
    color: #4f3928 !important;
  }

  .auth-redesign-card .auth-input-icon {
    left: 16px;
    color: #7a5b23 !important;
  }

  .auth-redesign-card .auth-input-wrap input,
  .auth-redesign-card .auth-field input {
    min-height: 56px !important;
    border-radius: 14px !important;
    border-color: rgba(231, 202, 144, 0.98) !important;
    padding-left: 52px !important;
  }

  .auth-redesign-card .auth-input-wrap input:focus,
  .auth-redesign-card .auth-field input:focus {
    border-color: var(--auth-gold) !important;
    box-shadow: 0 0 0 4px rgba(246, 173, 0, 0.16) !important;
  }

  .auth-redesign-card .auth-primary-btn,
  .auth-redesign-card .auth-btn,
  .auth-redesign-card .quick-auth-btn {
    min-height: 58px !important;
    border-radius: 15px !important;
  }

  .auth-redesign-card .auth-btn.guest,
  .auth-redesign-card .quick-auth-btn {
    background: rgba(255, 255, 255, 0.96) !important;
  }

  .auth-redesign-card .auth-security-strip,
  .auth-redesign-card .auth-security-note {
    border-radius: 14px !important;
    background: rgba(255, 249, 233, 0.76) !important;
    color: #6f5736 !important;
  }
}

@media (max-width: 430px) {
  .auth-redesign-card.auth-split-modal,
  .auth-content-modal.auth-redesign-card,
  .bc-login-modal.auth-redesign-card {
    width: calc(100vw - 10px) !important;
    border-radius: 24px !important;
  }

  .auth-form-panel {
    padding: 54px 22px 26px !important;
  }

  .auth-redesign-card .auth-login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .auth-redesign-card .auth-legal-links.legal-policy-links,
  .auth-redesign-card .legal-policy-links {
    gap: 8px !important;
    font-size: 0.82rem !important;
  }
}

@supports selector(body:has(.auth-redesign-page)) {
  body:has(.auth-redesign-page) .topbar,
  body:has(.auth-redesign-page) .site-header,
  body:has(.auth-redesign-page) .site-footer {
    display: none !important;
  }

  body:has(.auth-redesign-page) {
    background: #f6f8fb !important;
  }
}

/* V21 scroll fix: keep the redesigned auth screens scrollable on phones, tablets, laptops, and short desktop screens. */
html {
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body.auth-page-body {
  min-height: 100%;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: auto;
}

body.auth-page-body .topbar,
body.auth-page-body .site-header,
body.auth-page-body .site-footer,
body.auth-page-body .live-chat-widget,
body.auth-page-body .ai-chat-widget,
body.auth-page-body .gemini-chat-widget {
  display: none !important;
}

.auth-redesign-page.bc-login-page {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

.auth-modal:not(.hidden) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (min-width: 861px) {
  .auth-redesign-card.auth-split-modal,
  .auth-content-modal.auth-redesign-card,
  .bc-login-modal.auth-redesign-card {
    height: min(720px, calc(100vh - 40px)) !important;
    height: min(720px, calc(100svh - 40px)) !important;
    max-height: calc(100vh - 40px) !important;
    max-height: calc(100svh - 40px) !important;
    overflow: hidden !important;
  }

  .auth-desktop-shell {
    height: 100% !important;
    min-height: 0 !important;
  }

  .auth-brand-panel {
    min-height: 0 !important;
  }

  .auth-form-panel {
    height: 100% !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .auth-form-panel > .auth-tabs {
    flex: 0 0 auto;
  }

  .auth-form-panel > .auth-form {
    flex: 0 0 auto;
  }

  .auth-form-panel > .auth-login-form:not(.hidden) {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

  .auth-form-panel > .auth-signup-form:not(.hidden),
  .auth-redesign-card.show-signup .auth-form-panel > .auth-form {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 860px) {
  body.auth-page-body {
    position: static !important;
    overflow-y: auto !important;
    touch-action: pan-y;
  }

  .auth-redesign-page.bc-login-page {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    overflow: visible !important;
    padding: max(10px, env(safe-area-inset-top)) 8px max(34px, env(safe-area-inset-bottom)) !important;
  }

  .auth-modal:not(.hidden) {
    display: block !important;
    padding: max(10px, env(safe-area-inset-top)) 8px max(34px, env(safe-area-inset-bottom)) !important;
  }

  .auth-redesign-card.auth-split-modal,
  .auth-content-modal.auth-redesign-card,
  .bc-login-modal.auth-redesign-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
  }

  .auth-desktop-shell,
  .auth-form-panel,
  .auth-form-panel > .auth-form {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}



/* V22 desktop quick login panel layout: form on the left, Google quick login on the right. */
.auth-two-panel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 380px);
  min-height: min(720px, calc(100dvh - 42px));
  background: #fff;
}

.auth-form-panel-left {
  border-right: 1px solid rgba(223, 230, 238, 0.9);
}

.auth-quick-panel {
  position: relative;
  min-width: 0;
  padding: clamp(34px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 190, 20, 0.12), transparent 28%),
    radial-gradient(circle at 84% 92%, rgba(246, 173, 0, 0.1), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fff6e8 100%);
}

.auth-quick-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(234, 212, 173, 0.9);
  border-radius: 24px;
  pointer-events: none;
}

.auth-quick-panel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  display: grid;
  gap: 18px;
  justify-items: stretch;
  text-align: left;
}

.auth-quick-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffcc39, #f3a700);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: 0 18px 28px rgba(232, 160, 0, 0.18);
}

.auth-quick-eyebrow {
  margin: 4px 0 -8px;
  color: #a56d00;
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-quick-panel h2 {
  margin: 0;
  color: #1f242b;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.auth-quick-copy {
  margin: 0;
  color: #5a6472;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 560;
}

.auth-quick-cta,
.auth-mobile-quick-login {
  display: grid;
  gap: 14px;
}

.auth-quick-cta .quick-auth-btn {
  min-height: 60px !important;
}

.auth-quick-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d5a3c;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.auth-quick-unavailable {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(233, 206, 154, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #6b4a16;
  line-height: 1.45;
}

.auth-quick-unavailable strong {
  font-size: 0.98rem;
}

.auth-quick-unavailable span,
.auth-quick-unavailable code {
  font-size: 0.88rem;
}

@media (min-width: 861px) {
  .auth-mobile-quick-login {
    display: none !important;
  }

  .auth-two-panel-layout .auth-form-panel {
    padding-right: clamp(34px, 4vw, 50px);
    padding-left: clamp(34px, 4vw, 50px);
  }

  .auth-two-panel-layout .auth-login-form,
  .auth-two-panel-layout .auth-signup-form {
    max-width: 100%;
  }
}

@media (max-width: 1020px) and (min-width: 861px) {
  .auth-two-panel-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .auth-quick-panel {
    padding: 28px;
  }

  .auth-quick-panel::before {
    inset: 18px;
  }
}

@media (max-width: 860px) {
  .auth-two-panel-layout {
    display: block;
    min-height: 0;
  }

  .auth-form-panel-left {
    border-right: 0;
  }

  .auth-quick-panel {
    display: none !important;
  }

  .auth-mobile-quick-login {
    display: grid;
  }
}
