:root {
  --auth-bg-1: #0b0b1e;
  --auth-bg-2: #3b1a5a;
  --auth-bg-3: #f1b7d6;
  --auth-card-bg: rgba(255, 255, 255, 0.1);
  --auth-card-border: rgba(255, 255, 255, 0.18);
  --auth-text: #f5f2ff;
  --auth-text-muted: rgba(245, 242, 255, 0.72);
  --auth-accent: #8ef6ff;
}

body.auth-theme:not(.marketing) {
  background: linear-gradient(135deg, var(--auth-bg-1), var(--auth-bg-2), var(--auth-bg-3));
  color: var(--auth-text);
}

body.auth-theme:not(.marketing)::before,
body.auth-theme:not(.marketing)::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.7;
  background: radial-gradient(circle at 20% 20%, rgba(142, 246, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255, 122, 199, 0.22), transparent 60%);
}

body.auth-theme:not(.marketing)::after {
  z-index: -1;
  opacity: 0.45;
}


@media (max-width: 900px), (pointer: coarse) {
  body.auth-theme:not(.marketing)::before,
  body.auth-theme:not(.marketing)::after {
    content: none;
  }
}

body.auth-theme header.navbar,
body.marketing header.navbar {
  background: rgba(16, 3, 25, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.auth-theme header.navbar .nav-links a,
body.marketing header.navbar .nav-links a {
  color: rgba(245, 242, 255, 0.86);
}

body.auth-theme header.navbar .nav-links a:hover,
body.auth-theme header.navbar .nav-links a:focus-visible,
body.marketing header.navbar .nav-links a:hover,
body.marketing header.navbar .nav-links a:focus-visible {
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(145, 100, 255, 0.35);
}

body.auth-theme header.navbar .nav-links .cta,
body.marketing header.navbar .nav-links .cta {
  background: linear-gradient(120deg, #8ef6ff, #7c5dff);
  color: #0b1120;
  box-shadow: 0 18px 38px rgba(124, 93, 255, 0.35);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 2vw, 24px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
}

.auth-page {
  min-height: calc(100vh - var(--marketing-header-height, 84px));
  min-height: calc(100svh - var(--marketing-header-height, 84px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(14px, 2.6vh, 40px);
  padding-bottom: clamp(14px, 2.6vh, 40px);
  padding-inline: 1rem;
}

body.auth-theme main,
body.auth-login-page main {
  padding-bottom: 24px;
}

@media (max-width: 560px) {
  .auth-page main,
  body.auth-login-page main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

.auth-shell {
  width: min(1120px, 96vw);
}

.auth-card {
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-card-border);
  border-radius: 24px;
  padding: clamp(18px, 2.2vw, 24px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

body.auth-theme .hero,
body.auth-theme .section-card,
body.marketing .hero,
body.marketing .section-card {
  background: rgba(12, 6, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.auth-theme .hero::before,
body.marketing .hero::before {
  background: linear-gradient(135deg, rgba(142, 246, 255, 0.12), rgba(255, 122, 199, 0.12));
}

body.auth-theme .hero-text p,
body.auth-theme .section-card p,
body.marketing .hero-text p,
body.marketing .section-card p {
  color: var(--auth-text-muted);
}

body.auth-theme .section-card h2,
body.auth-theme .hero-text h2,
body.marketing .section-card h2,
body.marketing .hero-text h2 {
  color: var(--auth-text);
}

body.auth-theme .section-card label span,
body.auth-theme .section-card a,
body.auth-theme .text-muted,
body.marketing .section-card label span,
body.marketing .section-card a,
body.marketing .text-muted {
  color: rgba(245, 242, 255, 0.8);
}

body.auth-theme input,
body.auth-theme select,
body.auth-theme textarea,
body.marketing input,
body.marketing select,
body.marketing textarea {
  background: rgba(12, 6, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--auth-text);
}

body.auth-theme input::placeholder,
body.marketing input::placeholder {
  color: rgba(245, 242, 255, 0.55);
}

body.auth-theme label,
body.marketing label {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

body.auth-theme .password-toggle,
body.marketing .password-toggle {
  color: rgba(245, 242, 255, 0.8);
  background: transparent;
  box-shadow: none;
}

body.auth-theme .password-toggle:hover,
body.auth-theme .password-toggle:focus-visible,
body.marketing .password-toggle:hover,
body.marketing .password-toggle:focus-visible {
  background: transparent;
  box-shadow: none;
}

body.auth-theme button,
body.auth-theme .btn,
body.marketing button,
body.marketing .btn {
  background: linear-gradient(135deg, #c084fc, #a855f7, #ec4899);
  color: #111;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.9rem;
  min-height: 48px;
  line-height: 1.1;
}

body.auth-theme .btn-small,
body.marketing .btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  min-height: 40px;
  border-radius: 0.75rem;
}

body.auth-theme button:hover,
body.auth-theme button:focus-visible,
body.auth-theme .btn:hover,
body.auth-theme .btn:focus-visible,
body.marketing button:hover,
body.marketing button:focus-visible,
body.marketing .btn:hover,
body.marketing .btn:focus-visible {
  box-shadow: 0 16px 30px rgba(124, 93, 255, 0.4);
}

body.auth-theme .footer-links a,
body.marketing .footer-links a {
  color: rgba(245, 242, 255, 0.75);
}

body.auth-theme .footer-links a:hover,
body.auth-theme .footer-links a:focus-visible,
body.marketing .footer-links a:hover,
body.marketing .footer-links a:focus-visible {
  color: #ffffff;
}

.auth-wrap {
  min-height: calc(100vh - var(--marketing-header-height, 84px));
  min-height: calc(100svh - var(--marketing-header-height, 84px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(14px, 2.6vh, 40px);
  padding-bottom: clamp(14px, 2.6vh, 40px);
  padding-inline: 16px;
}

.auth-card {
  width: min(560px, 94vw);
  padding: 22px;
}

.auth-card--wide {
  width: min(1120px, 96vw);
  max-height: calc(100vh - 140px);
  max-height: calc(100svh - 140px);
}

.form-card {
  overflow: auto;
  max-height: calc(100vh - 200px);
  max-height: calc(100svh - 200px);
}

.form-card form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.4;
}

.form-consent input {
  margin-top: 0.2rem;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(124, 93, 255, 0.18);
  color: var(--auth-text-muted);
  font-weight: 500;
  text-align: center;
  transition: opacity 0.3s ease;
}

.form-status.success {
  background: rgba(47, 154, 93, 0.24);
  color: #d6ffe6;
}

.form-status.error {
  background: rgba(229, 72, 77, 0.24);
  color: #ffd6da;
}

.text-muted {
  opacity: 0.8;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.input-with-toggle {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-toggle input {
  padding-right: 2.6rem;
}

.password-toggle {
  position: absolute;
  right: 0.55rem;
  border: none;
  background: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0;
  box-shadow: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.password-toggle .icon-eye,
.password-toggle .icon-eye-off {
  display: inline-flex;
  align-items: center;
}

.password-toggle svg {
  width: 1rem;
  height: 1rem;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
  display: inline-flex;
}

.terms-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
}

.terms-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.terms-row label {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
  white-space: normal;
}

.terms-row label a {
  display: inline;
  white-space: nowrap;
  text-decoration: underline;
  color: rgba(238, 201, 255, 0.92);
}

.terms-row label a:hover {
  color: #ffffff;
}

.recaptcha-wrap,
.g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: min(1100px, 94vw);
}

@media (max-width: 900px) {
  .auth-card {
    padding: 1.5rem;
  }
}

/* ===========================
   Mobile conversion layout fix
   - Applies to BOTH signup + login pages
   - Show form first
   - Make hero compact
=========================== */

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Mobile: stack, but FORM FIRST */
@media (max-width: 767px) {
  .login-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Reorder: form first, hero second */
  .login-layout .form-card { order: 1; }
  .login-layout .hero { order: 2; }

  /* Make hero compact */
  .login-layout .hero {
    padding: 12px 12px;
    border-radius: 14px;
  }

  .login-layout .hero h1 {
    font-size: 18px;
    line-height: 1.25;
    margin: 8px 0 6px;
  }

  .login-layout .hero p {
    font-size: 13px;
    margin: 0 0 10px;
    opacity: 0.9;
  }

  /* Reduce big image */
  .login-layout .hero-image img {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Chips wrap and stay small */
  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-badges .chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
  }

  /* Tighter spacing so form appears immediately */
  .auth-card--wide { padding: 14px; }
  .section-card.form-card { padding: 14px; }
  .auth-wrap { padding-top: 12px; }
}

/* Tablet: keep side-by-side but slightly tighter */
@media (min-width: 768px) and (max-width: 1024px) {
  .login-layout {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .login-layout .hero h1 { font-size: 22px; }
  .login-layout .hero-image img { max-width: 240px; }
}

/* Google button - white background */
.google-btn{
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid rgba(17,24,39,0.14) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.google-btn:hover{
  background: #f9fafb !important;
  border-color: rgba(17,24,39,0.22) !important;
  transform: translateY(-1px);
}

.google-btn:active{
  transform: translateY(0);
}

/* Google icon size (small + consistent) */
.google-btn .google-icon{
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  display: inline-block;
}

/* Login page premium polish (scoped) */
.auth-page.auth-wrap {
  padding-top: clamp(14px, 2.6vh, 40px);
  padding-bottom: clamp(14px, 2.6vh, 40px);
  padding-inline: 16px;
}

.auth-page .auth-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.auth-page .auth-card--wide {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 2vw, 24px);
}

.auth-page .login-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  gap: clamp(18px, 2vw, 24px);
  align-items: stretch;
}

.auth-page .hero,
.auth-page .section-card.form-card {
  border-radius: 18px;
  padding: clamp(16px, 1.9vw, 22px);
}

.auth-page .hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-page .badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.auth-page .hero-text h1 {
  margin: 0.75rem 0 0.6rem;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.auth-page .hero-text p {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 16px);
  line-height: 1.45;
}

.auth-page .hero-image {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 0;
}

.auth-page .hero-image img {
  width: 100%;
  max-width: 100%;
  max-height: 220px;
  height: auto;
  object-fit: contain;
}

.auth-page .section-card.form-card h3 {
  margin: 0 0 0.95rem;
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.2;
  color: var(--auth-text);
}

.auth-page .section-card.form-card form {
  gap: 0.72rem;
}

.auth-page .section-card.form-card label span {
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-page input {
  min-height: 45px;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-page input:focus {
  border-color: rgba(167, 139, 250, 0.8);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
  outline: none;
}

.auth-page .input-with-toggle input {
  padding-right: 2.7rem;
}

.auth-page form button[type="submit"] {
  min-height: 46px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 0.2rem;
}

.auth-page .google-btn {
  min-height: 45px;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.auth-page .or-divider {
  margin: 0.7rem 0;
}

.auth-page .auth-links {
  margin-top: 0.7rem;
}

.auth-page .auth-links p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-page .auth-links p + p {
  margin-top: 0.45rem;
}

.auth-page .auth-legal {
  text-align: center;
  margin: 0.75rem 0 0.4rem;
}


@media (max-height: 820px) {
  .auth-page.auth-wrap {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .auth-page .auth-card--wide {
    max-height: calc(100vh - 124px);
    max-height: calc(100svh - 124px);
    padding: 16px;
  }

  .auth-page .login-layout {
    gap: 16px;
  }

  .auth-page .hero,
  .auth-page .section-card.form-card {
    padding: 14px 16px;
  }

  .auth-page .hero-text h1 {
    font-size: clamp(28px, 3vw, 40px);
  }

  .auth-page .hero-image img {
    max-height: 180px;
  }
}

@media (max-height: 720px) {
  .auth-page.auth-wrap {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .auth-page .auth-card--wide {
    max-height: calc(100vh - 112px);
    max-height: calc(100svh - 112px);
    padding: 14px;
  }

  .auth-page .login-layout {
    gap: 14px;
  }

  .auth-page .hero,
  .auth-page .section-card.form-card {
    padding: 12px 14px;
  }

  .auth-page .hero-text h1 {
    font-size: clamp(26px, 2.7vw, 34px);
  }

  .auth-page .hero-image img {
    max-height: 150px;
  }
}

@media (max-width: 980px) {
  .auth-page .login-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .auth-page .login-layout .hero {
    order: 1;
  }

  .auth-page .login-layout .form-card {
    order: 2;
  }

  .auth-page .hero-text h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .auth-page .hero-image {
    min-height: 120px;
  }

  .auth-page .hero-image img {
    width: min(100%, 230px);
  }
}

/* Login page: premium MNC SaaS refinements */
body.auth-login-page {
  overflow-x: hidden;
}

body.auth-login-page header.navbar .nav-toggle,
body.auth-login-page header.navbar .nav-links {
  display: none;
}

body.auth-login-page header.navbar .navbar-inner {
  min-height: 64px;
}

body.auth-login-page header.navbar .nav-cta {
  display: flex;
  margin-left: auto;
}

body.auth-login-page .auth-page.auth-wrap,
body.auth-login-page .auth-wrap {
  min-height: auto;
  padding-top: clamp(14px, 2.2vh, 34px);
  padding-bottom: clamp(14px, 2.2vh, 34px);
  padding-inline: 14px;
}

body.auth-login-page .auth-shell,
body.auth-login-page .auth-card--wide {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

body.auth-login-page .auth-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 7, 26, 0.48);
  box-shadow: 0 12px 34px rgba(4, 8, 18, 0.28);
  backdrop-filter: blur(18px);
}

body.auth-login-page .auth-card--wide {
  padding: clamp(14px, 1.5vw, 18px);
}

body.auth-login-page .login-layout {
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 560px);
  gap: clamp(18px, 1.8vw, 24px);
  align-items: stretch;
}

body.auth-login-page .hero,
body.auth-login-page .section-card,
body.auth-login-page .form-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(10, 8, 20, 0.3);
  box-shadow: 0 8px 18px rgba(2, 6, 16, 0.18);
  backdrop-filter: blur(10px);
}

body.auth-login-page .hero,
body.auth-login-page .section-card.form-card {
  border-radius: 16px;
}

body.auth-login-page .hero {
  padding: clamp(12px, 1.2vw, 16px);
}

body.auth-login-page .section-card.form-card {
  padding: clamp(14px, 1.4vw, 18px);
  max-width: 560px;
  width: 100%;
  justify-self: end;
}

body.auth-login-page .badge {
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(245, 242, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.73rem;
}

body.auth-login-page .hero-text h1 {
  margin: 0.58rem 0 0.42rem;
  font-size: clamp(30px, 2.45vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.auth-login-page .hero-text p {
  margin: 0;
  font-size: clamp(14px, 0.96vw, 15px);
  line-height: 1.42;
  color: rgba(245, 242, 255, 0.72);
}

body.auth-login-page .hero-image {
  margin-top: 0.72rem;
}

body.auth-login-page .cover-strip {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: flex-end;
  margin-top: 8px;
  padding-top: 0;
  opacity: 1;
  overflow: hidden;
}

body.auth-login-page .cover-thumb {
  width: 96px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  opacity: 1;
  display: block;
  box-shadow: 0 16px 36px rgba(4, 6, 16, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.auth-login-page .cover-thumb:nth-child(1) {
  transform: rotate(-4deg);
}

body.auth-login-page .cover-thumb:nth-child(2) {
  margin-left: -14px;
  transform: scale(1.05);
  z-index: 2;
}

body.auth-login-page .cover-thumb:nth-child(3) {
  margin-left: -14px;
  transform: rotate(4deg);
}

body.auth-login-page .section-card.form-card h3 {
  margin: 0 0 0.72rem;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.24;
}

body.auth-login-page .google-btn,
body.auth-login-page form button[type='submit'] {
  min-height: 44px;
  height: 44px;
  border-radius: 11px;
}

body.auth-login-page .google-btn {
  padding: 0.55rem 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.auth-login-page .section-card.form-card form {
  gap: 0.62rem;
}

body.auth-login-page .section-card.form-card label span {
  font-size: 0.82rem;
  color: rgba(245, 242, 255, 0.68);
}

body.auth-login-page input {
  min-height: 45px;
  height: 45px;
  padding: 0.64rem 0.9rem;
  border-radius: 11px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(13, 10, 26, 0.7);
}

body.auth-login-page input:focus,
body.auth-login-page input:focus-visible {
  outline: none;
  border-color: rgba(205, 191, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(183, 163, 255, 0.2);
}

body.auth-login-page form button[type='submit'] {
  margin-top: 0.18rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 44px;
  height: 44px;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

body.auth-login-page form button[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(146, 104, 255, 0.36);
}

body.auth-login-page form button[type='submit']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(205, 191, 255, 0.34), 0 12px 26px rgba(146, 104, 255, 0.3);
}

body.auth-login-page .or-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem 0;
  font-size: 0.77rem;
  letter-spacing: 0.01em;
  color: rgba(245, 242, 255, 0.68);
}

body.auth-login-page .or-divider::before,
body.auth-login-page .or-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.auth-login-page .or-divider span {
  opacity: 0.82;
}

body.auth-login-page .auth-trust-note {
  margin: 0.12rem 0 0;
  font-size: 12px;
  color: rgba(245, 242, 255, 0.62);
}

body.auth-login-page .auth-links {
  margin-top: 0.5rem;
}

body.auth-login-page .auth-links p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.36;
}

body.auth-login-page .auth-links p + p {
  margin-top: 0.35rem;
}

@media (max-width: 980px) {
  body.auth-login-page .login-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.auth-login-page .hero-image,
  body.auth-login-page .cover-strip {
    display: none;
  }

  body.auth-login-page .login-layout .hero {
    order: 2;
  }

  body.auth-login-page .login-layout .form-card {
    order: 1;
    max-width: none;
    justify-self: stretch;
  }

}

@media (max-height: 820px) {
  body.auth-login-page .auth-page.auth-wrap,
  body.auth-login-page .auth-wrap {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body.auth-login-page .auth-card--wide {
    padding: 12px;
  }

  body.auth-login-page .login-layout {
    gap: 16px;
  }

  body.auth-login-page .hero,
  body.auth-login-page .section-card.form-card {
    padding: 12px;
  }

  body.auth-login-page .hero-image {
    margin-top: 0.75rem;
  }

  body.auth-login-page .cover-strip {
    margin-top: 12px;
    padding-top: 6px;
  }
}

@media (max-height: 720px) {
  body.auth-login-page .auth-page.auth-wrap,
  body.auth-login-page .auth-wrap {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.auth-login-page .auth-card--wide {
    padding: 10px;
  }

  body.auth-login-page .login-layout {
    gap: 12px;
  }

  body.auth-login-page .hero,
  body.auth-login-page .section-card.form-card {
    padding: 10px;
  }

  body.auth-login-page .hero-text h1 {
    font-size: clamp(25px, 2.15vw, 31px);
  }

  body.auth-login-page .hero-text p {
    font-size: 13px;
  }

  body.auth-login-page .hero-image {
    margin-top: 0.62rem;
  }

  body.auth-login-page .cover-strip {
    margin-top: 10px;
    padding-top: 4px;
  }

  body.auth-login-page .google-btn,
  body.auth-login-page form button[type='submit'],
  body.auth-login-page input {
    min-height: 42px;
    height: 42px;
  }
}


/* Signup mobile layout: mirror login mobile flow and avoid overlap */
@media (max-width: 560px) {
  body.auth-signup-page .login-layout,
  body.auth-login-page .login-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.auth-signup-page .login-layout .hero,
  body.auth-signup-page .login-layout .hero-image,
  body.auth-login-page .login-layout .hero,
  body.auth-login-page .login-layout .hero-image {
    display: none !important;
  }

  body.auth-login-page .auth-marketing-copy--mobile-hide,
  body.auth-signup-page .auth-marketing-copy--mobile-hide,
  body.page-login .auth-marketing-copy--mobile-hide,
  body.page-signup .auth-marketing-copy--mobile-hide,
  body[data-page="login"] .auth-marketing-copy--mobile-hide,
  body[data-page="signup"] .auth-marketing-copy--mobile-hide {
    display: none !important;
  }

  body.auth-signup-page main,
  body.auth-signup-page .auth-page,
  body.auth-signup-page .auth-wrap,
  body.auth-signup-page .auth-shell,
  body.auth-signup-page .auth-card--wide,
  body.auth-signup-page .form-card,
  body.auth-login-page main,
  body.auth-login-page .auth-page,
  body.auth-login-page .auth-wrap,
  body.auth-login-page .auth-shell,
  body.auth-login-page .auth-card--wide,
  body.auth-login-page .form-card {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.auth-signup-page .auth-page.auth-wrap,
  body.auth-signup-page .auth-wrap,
  body.auth-login-page .auth-page.auth-wrap,
  body.auth-login-page .auth-wrap {
    align-items: flex-start;
    justify-content: flex-start !important;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-inline: 14px;
  }

  body.auth-signup-page main,
  body.auth-login-page main,
  body.page-signup main,
  body.page-login main,
  body[data-page="signup"] main,
  body[data-page="login"] main {
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }

  body.auth-signup-page .auth-card--wide,
  body.auth-login-page .auth-card--wide {
    width: min(560px, 100%);
    padding: 14px;
  }

  body.auth-signup-page .section-card.form-card,
  body.auth-login-page .section-card.form-card {
    order: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    position: static !important;
    transform: none !important;
    padding: 14px;
  }

  body.auth-signup-page .section-card.form-card > p:last-of-type,
  body.auth-login-page .section-card.form-card > p:last-of-type,
  body.auth-signup-page .auth-shell > .text-muted,
  body.auth-signup-page > .text-muted {
    margin-top: 14px !important;
    position: static !important;
    transform: none !important;
  }

  .grecaptcha-badge {
    width: 180px !important;
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    right: 6px !important;
    transform: scale(0.70) !important;
    transform-origin: right bottom !important;
    pointer-events: none !important;
  }

  body.auth-signup-page .auth-card,
  body.auth-signup-page .auth-secondary,
  body.auth-login-page .auth-card,
  body.auth-login-page .auth-secondary {
    position: static !important;
    transform: none !important;
  }
}

/* ===========================
   Signup page premium overhaul (scoped)
=========================== */
body.auth-signup-page {
  overflow-x: hidden;
}

body.auth-signup-page::before,
body.auth-signup-page::after {
  opacity: 0.5;
}

body.auth-signup-page .auth-wrap {
  min-height: auto;
  padding-top: clamp(24px, 4vh, 52px);
  padding-bottom: clamp(34px, 5.2vh, 72px);
}

body.auth-signup-page .auth-shell,
body.auth-signup-page .auth-card--wide {
  width: min(1180px, 96vw);
}

body.auth-signup-page .auth-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(17, 9, 33, 0.84), rgba(12, 7, 22, 0.72));
  box-shadow: 0 26px 66px rgba(2, 5, 15, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.auth-signup-page .auth-card--wide,
body.auth-signup-page .section-card.form-card,
body.auth-signup-page .form-card {
  max-height: none !important;
  overflow: visible !important;
}

body.auth-signup-page .login-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(22px, 2.8vw, 36px);
  align-items: stretch;
}

body.auth-signup-page .hero,
body.auth-signup-page .section-card.form-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(16, 10, 31, 0.87), rgba(9, 7, 18, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.auth-signup-page .hero {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.4rem;
}

body.auth-signup-page .hero-text {
  gap: 0.95rem;
}

body.auth-signup-page .auth-eyebrow {
  width: fit-content;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 233, 255, 0.92);
}

body.auth-signup-page .hero-text h2 {
  max-width: 13.5ch;
  font-size: clamp(1.95rem, 2.7vw, 2.58rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.auth-signup-page .hero-text p {
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.55;
  max-width: 40ch;
}

body.auth-signup-page .hero-badges {
  gap: 0.6rem;
}

body.auth-signup-page .hero-badges .chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.79rem;
  font-weight: 600;
  color: rgba(245, 242, 255, 0.92);
  padding: 0.4rem 0.72rem;
}

body.auth-signup-page .hero-image {
  margin-top: 0.4rem;
  min-height: 210px;
  align-items: flex-end;
}

body.auth-signup-page .hero-image img {
  width: min(100%, 360px);
  max-height: 290px;
}

body.auth-signup-page .hero-trust-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(245, 242, 255, 0.7);
}

body.auth-signup-page .section-card.form-card {
  padding: clamp(22px, 2.4vw, 30px);
  position: relative;
}

body.auth-signup-page .section-card.form-card h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
}

body.auth-signup-page .auth-trust-row {
  margin: 0.56rem 0 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

body.auth-signup-page .auth-trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.26rem 0.62rem;
  font-size: 0.74rem;
  color: rgba(245, 242, 255, 0.84);
}

body.auth-signup-page .google-btn {
  min-height: 48px;
  border-radius: 13px;
  margin-top: 0.3rem;
}

body.auth-signup-page .or-divider {
  margin: 0.85rem 0;
}

body.auth-signup-page .or-divider::before,
body.auth-signup-page .or-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.auth-signup-page .or-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(245, 242, 255, 0.64);
  font-size: 0.79rem;
}

body.auth-signup-page .section-card.form-card form {
  gap: 0.85rem;
  padding-bottom: 0.38rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.auth-signup-page .section-card.form-card label span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.auth-signup-page input,
body.auth-signup-page textarea,
body.auth-signup-page select {
  min-height: 47px;
  padding: 0.76rem 0.96rem;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(13, 9, 24, 0.86);
}

body.auth-signup-page input:focus,
body.auth-signup-page textarea:focus,
body.auth-signup-page select:focus {
  outline: none;
  border-color: rgba(198, 180, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(136, 103, 255, 0.2);
}

body.auth-signup-page .password-toggle {
  right: 0.58rem;
}

body.auth-signup-page .terms-row {
  margin-top: 0.55rem;
  align-items: flex-start;
}

body.auth-signup-page .terms-row input[type="checkbox"] {
  margin-top: 2px;
}

body.auth-signup-page form button[type="submit"] {
  margin-top: 0.35rem;
  min-height: 48px;
  font-size: 0.97rem;
}

body.auth-signup-page .auth-links {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.52rem;
}

body.auth-signup-page .auth-links p {
  margin: 0;
  font-size: 0.9rem;
}

body.auth-signup-page .auth-links p + p {
  margin-top: 0;
}

body.auth-signup-page .auth-bonus-chip {
  width: fit-content;
  font-size: 0.75rem;
  color: rgba(245, 242, 255, 0.88);
  background: linear-gradient(145deg, rgba(154, 102, 255, 0.22), rgba(236, 72, 153, 0.17));
  border: 1px solid rgba(227, 191, 255, 0.26);
  padding: 0.32rem 0.68rem;
}

body.auth-signup-page .auth-signup-closure {
  width: min(1180px, 96vw);
  margin: clamp(8px, 1.8vh, 18px) auto clamp(12px, 2.2vh, 24px);
  padding-top: clamp(12px, 2vh, 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  position: relative;
}

body.auth-signup-page .auth-signup-closure::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 98, 255, 0), rgba(130, 98, 255, 0.6), rgba(130, 98, 255, 0));
  opacity: 0.55;
  pointer-events: none;
}

body.auth-signup-page .auth-marketing-copy {
  margin: 0 !important;
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: rgba(238, 230, 255, 0.74);
}

body.auth-signup-page .site-footer {
  margin-top: clamp(4px, 1.4vh, 14px);
}

body.auth-signup-page header.navbar .nav-links a,
body.auth-signup-page header.navbar .nav-cta a {
  font-size: 0.89rem;
}

body.auth-signup-page header.navbar .nav-cta .btn-signup {
  min-height: 38px;
  padding-inline: 14px;
}

@media (max-width: 980px) {
  body.auth-signup-page .login-layout {
    grid-template-columns: 1fr;
  }

  body.auth-signup-page .login-layout .hero {
    order: 1;
  }

  body.auth-signup-page .login-layout .form-card {
    order: 2;
  }

  body.auth-signup-page .hero-image {
    min-height: 150px;
  }

  body.auth-signup-page .hero-image img {
    width: min(100%, 250px);
  }

  body.auth-signup-page .hero-text h2 {
    max-width: 18ch;
    text-wrap: pretty;
  }
}

@media (max-width: 560px) {
  body.auth-signup-page .auth-wrap {
    padding-bottom: 18px;
  }

  body.auth-signup-page .auth-card--wide {
    width: min(560px, 100%);
  }

  body.auth-signup-page .section-card.form-card {
    padding: 16px;
  }

  body.auth-signup-page .auth-trust-row span {
    font-size: 0.72rem;
  }
}
