.auth-page { overflow-x: hidden; }
.auth-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .15; background-image: radial-gradient(#e7d79f 0.6px, transparent .6px); background-size: 7px 7px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
.auth-shell { min-height: calc(100dvh - 74px); max-width: 1250px; margin: auto; padding: clamp(36px, 8vw, 100px) clamp(20px, 6vw, 76px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px,.7fr); align-items: center; gap: clamp(48px, 9vw, 120px); }
.auth-shell.compact { grid-template-columns: minmax(320px, 520px); justify-content: center; }
.auth-copy { max-width: 720px; }
.auth-copy h1 { margin: 20px 0 24px; }
.auth-copy h1 em { color: var(--gold-bright); font-style: normal; }
.auth-copy p { max-width: 560px; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.feature-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.feature-pills span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #c7d3cc; font-size: .74rem; }
.auth-card, .install-card { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 5vw, 46px); background: linear-gradient(155deg, rgba(20,76,57,.78), rgba(5,25,19,.96)); box-shadow: var(--shadow); overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0, rgba(214,170,76,.13), transparent 40%); pointer-events: none; }
.auth-card > * { position: relative; }
.auth-card h1, .auth-card h2 { margin: 10px 0 8px; }
.card-suit { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 24px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-bright); font-family: var(--font-display); font-size: 1.5rem; }
/* google styles in common.css */
.separator { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .72rem; margin: 18px 0; }
.separator::before, .separator::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.12); }
.auth-foot { text-align: center; color: var(--muted); font-size: .84rem; margin: 22px 0 0; }

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; gap: 32px; padding-top: 48px; }
  .auth-copy { text-align: center; }
  .auth-copy p { margin-inline: auto; }
  .feature-pills { justify-content: center; }
}
@media (max-width: 480px) {
  .auth-copy { display: none; }
  .auth-shell { padding: 24px 14px 50px; }
  .auth-card { border-radius: 18px; padding: 28px 20px; }
}

.card-suit-logo {
  width: 72px; height: 72px; padding: 0; border: none; background: transparent;
  box-shadow: none;
}
.card-suit-logo img {
  width: 72px; height: 72px; border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  border: 1px solid rgba(232,201,106,.35);
}

/* Auth form select contrast */
.auth-page select,
.auth-card select {
  background-color: rgba(4, 18, 12, .95) !important;
  color: #f5f0e6 !important;
}
.auth-page select option {
  background: #0f241a;
  color: #f5f0e6;
}
.verification-card { max-width: 520px; margin-inline: auto; }
.verification-card .alert { margin: 18px 0; line-height: 1.55; }
.verification-login { display: flex; align-items: center; justify-content: center; text-decoration: none; }



@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&display=swap");

.auth-copy h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .88;
}
.auth-copy h1 em {
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
}
.auth-card h1,
.auth-card h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -.025em;
}

@media (min-width: 801px) and (min-height: 760px) {
  html,
  body.auth-page {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
  }
  body.auth-page {
    display: grid;
    grid-template-rows: 74px minmax(0, 1fr);
  }
  body.auth-page > .topbar {
    min-height: 74px;
    height: 74px;
  }
  body.auth-page > .auth-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-block: clamp(20px, 3.2vh, 36px);
    overflow: hidden;
  }
  body.auth-page .auth-card {
    max-height: 100%;
  }
}

@media (min-width: 801px) and (max-height: 759px) {
  body.auth-page {
    overflow-y: auto;
  }
  body.auth-page > .auth-shell {
    min-height: calc(100dvh - 74px);
    padding-block: 24px;
  }
}

/* ===== premium public auth dialog ===== */
/* Premium compact mobile-first auth lightbox. */
.premium-auth-dialog {
  width: min(468px, calc(100vw - 28px)) !important;
  max-width: 468px !important;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 26px;
  background: transparent !important;
  color: #f6f2e8;
  overflow: visible;
}

.premium-auth-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(27, 83, 62, .22), transparent 34rem),
    rgba(2, 10, 8, .82);
  backdrop-filter: blur(12px) saturate(.86);
}

.premium-auth-card {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 26px;
  border: 1px solid rgba(232, 201, 106, .22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 0%, rgba(232, 201, 106, .13), transparent 30%),
    linear-gradient(155deg, rgba(18, 71, 54, .99), rgba(4, 27, 20, .995) 56%, rgba(3, 19, 15, .995));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, .58),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.premium-auth-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 19px;
}

.premium-auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  color: #dce8e1;
  background: rgba(4, 24, 18, .72);
  font: inherit;
  font-size: 1.42rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.premium-auth-close:hover,
.premium-auth-close:focus-visible {
  transform: rotate(4deg) scale(1.04);
  border-color: rgba(232, 201, 106, .42);
  background: rgba(21, 69, 52, .92);
}

.premium-auth-header {
  min-height: 66px;
  padding-right: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.premium-auth-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.premium-auth-brand img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 15px;
  object-fit: cover;
  border: 1px solid rgba(232, 201, 106, .30);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

.premium-auth-brand div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.premium-auth-kicker,
.premium-auth-eyebrow {
  color: #e7bd55;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.premium-auth-brand strong {
  color: #f2efe7;
  font-size: .9rem;
  line-height: 1.25;
}

.premium-auth-mini-cards {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-right: 4px;
}

.premium-auth-mini-cards span {
  width: 29px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: -9px;
  border: 1px solid rgba(232, 201, 106, .26);
  border-radius: 7px;
  color: #e7c66c;
  background: linear-gradient(145deg, #174f3d, #08261d);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  font-family: Georgia, serif;
  font-size: .66rem;
  font-weight: 800;
}

.premium-auth-mini-cards span:first-child {
  transform: rotate(-8deg);
}
.premium-auth-mini-cards span:nth-child(2) {
  z-index: 2;
  transform: translateY(-2px);
}
.premium-auth-mini-cards span:last-child {
  transform: rotate(8deg);
}

.premium-auth-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 22px 0 26px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(2, 18, 13, .45);
}

.premium-auth-tabs a {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  color: #bfcfc7;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 850;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.premium-auth-tabs a.is-active {
  color: #112018;
  background: linear-gradient(135deg, #f4d47e, #d8aa45);
  box-shadow: 0 8px 24px rgba(216, 170, 69, .18);
}

.premium-auth-panel[hidden] {
  display: none !important;
}

.premium-auth-copy {
  margin-bottom: 22px;
}

.premium-auth-copy h2 {
  margin: 7px 0 8px;
  color: #f8f4eb;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 8vw, 2.7rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.03em;
}

.premium-auth-copy p {
  margin: 0;
  color: #aebfb6;
  font-size: .92rem;
  line-height: 1.65;
}

.premium-auth-alert {
  margin: 0 0 16px;
}

.premium-auth-form {
  display: grid;
  gap: 15px;
}

.premium-auth-form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.premium-auth-form label > span {
  color: #dfe8e2;
  font-size: .79rem;
  font-weight: 800;
}

.premium-auth-form input {
  width: 100%;
  min-height: 49px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  outline: none;
  color: #f7f4ec;
  background: rgba(2, 21, 15, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  font: inherit;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.premium-auth-form input:focus {
  border-color: rgba(235, 194, 85, .92);
  background: rgba(2, 27, 19, .80);
  box-shadow:
    0 0 0 3px rgba(216, 170, 69, .13),
    inset 0 1px 0 rgba(255, 255, 255, .03);
}

.premium-auth-form small {
  color: #8fa39a;
  font-size: .72rem;
  line-height: 1.45;
}

.premium-auth-submit {
  min-height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 12px;
  color: #112018;
  background: linear-gradient(135deg, #f3d077, #d8a53d);
  box-shadow: 0 12px 28px rgba(216, 165, 61, .20);
  font: inherit;
  font-size: .94rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.premium-auth-submit:hover:not(:disabled),
.premium-auth-submit:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.035);
  box-shadow: 0 16px 32px rgba(216, 165, 61, .26);
}

.premium-auth-submit:disabled {
  opacity: .68;
  cursor: wait;
}

.premium-auth-help {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  color: #d9bd73;
  font-size: .76rem;
  text-align: center;
}

.premium-auth-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: #82988d;
  font-size: .72rem;
}

.premium-auth-separator::before,
.premium-auth-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, .09);
}

.premium-google-button {
  width: 100%;
  min-height: 49px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  color: #17201c;
  background: #f7f8f7;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.premium-google-button:hover,
.premium-google-button:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.premium-google-button .google-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.premium-auth-switch {
  margin: 18px 0 0;
  color: #97aaa0;
  font-size: .79rem;
  text-align: center;
}

.premium-auth-switch a {
  color: #efca69;
  font-weight: 850;
}

@media (max-width: 540px) {
  .premium-auth-dialog {
    width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 12px);
  }

  .premium-auth-card {
    max-height: calc(100dvh - 12px);
    padding: 20px 17px 22px;
    border-radius: 20px;
  }

  .premium-auth-card::before {
    inset: 7px;
    border-radius: 15px;
  }

  .premium-auth-close {
    top: 11px;
    right: 11px;
    width: 36px;
    height: 36px;
  }

  .premium-auth-header {
    min-height: 58px;
    padding-right: 35px;
  }

  .premium-auth-brand img {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .premium-auth-brand strong {
    font-size: .8rem;
  }

  .premium-auth-mini-cards {
    display: none;
  }

  .premium-auth-tabs {
    margin: 18px 0 22px;
  }

  .premium-auth-copy {
    margin-bottom: 18px;
  }

  .premium-auth-copy h2 {
    font-size: 2.15rem;
  }

  .premium-auth-copy p {
    font-size: .86rem;
  }

  .premium-auth-form {
    gap: 13px;
  }

  .premium-auth-form input,
  .premium-auth-submit,
  .premium-google-button {
    min-height: 48px;
  }
}

@media (max-height: 650px) {
  .premium-auth-card {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .premium-auth-header {
    min-height: 50px;
  }

  .premium-auth-tabs {
    margin-block: 14px 18px;
  }

  .premium-auth-copy {
    margin-bottom: 15px;
  }

  .premium-auth-copy p {
    line-height: 1.45;
  }
}
