/* Auth (signup/login) layouts */
.auth-page,
.login-page {
  background:
    radial-gradient(120% 120% at 18% 12%, rgba(41, 69, 110, 0.32), rgba(10, 17, 32, 0.96)),
    radial-gradient(120% 110% at 78% -10%, rgba(22, 39, 73, 0.38), rgba(10, 17, 32, 0.98)),
    #0a1021;
  color: #e5edff;
}

.auth-section,
.auth-main,
.login-main {
  position: relative;
  min-height: calc(100vh - var(--header-offset));
  padding: clamp(26px, 5vw, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(11, 20, 38, 0.92), rgba(13, 24, 46, 0.9)),
    #0a0f1f;
  color: #e5edff;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .auth-section,
  .auth-main,
  .login-main {
    min-height: calc(100dvh - var(--header-offset));
  }
}

.auth-shell {
  width: min(1200px, 96vw);
  margin: 0 auto;
  color: inherit;
  position: relative;
  z-index: 1;
}

.auth-card,
.login-card {
  width: 100%;
  background: linear-gradient(160deg, rgba(20, 32, 54, 0.95), rgba(13, 22, 40, 0.94));
  border: 1px solid rgba(74, 130, 193, 0.28);
  border-radius: 26px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.08);
  padding: clamp(30px, 5vw, 52px);
  color: #e5edff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-title {
  margin: 0 0 10px 0;
  color: #e7ecf8;
}

.auth-sub {
  margin: 0 0 22px 0;
  color: #cbd5ff;
}

.auth-grid {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

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

  .field.span-2 {
    grid-column: auto;
  }

  .auth-grid .span-2 {
    grid-column: auto;
  }
}

.field.span-2 {
  grid-column: 1 / -1;
}

.auth-grid .span-2 {
  grid-column: 1 / -1;
}

#signupBtn {
  box-shadow: none;
}

.login-card {
  max-width: min(720px, 92vw);
  margin: 0 auto;
}

.auth-page .nav-actions .btn.btn-cream,
.login-page .nav-actions .btn.btn-cream {
  border: none;
  box-shadow: none;
}

.auth-page .site-header,
.login-page .site-header {
  background: linear-gradient(180deg, rgba(7, 13, 23, 0.95), rgba(9, 16, 30, 0.9));
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-page .nav,
.login-page .nav {
  padding-top: 12px;
  padding-bottom: 12px;
}

.sms-opt-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #d5e2ff;
  font-size: 14px;
  line-height: 1.5;
  grid-column: 1 / -1;
}

.sms-opt-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #93c5fd;
}

.sms-opt-copy {
  display: inline-block;
  max-width: 820px;
}

.auth-page .site-footer,
.login-page .site-footer {
  background: linear-gradient(180deg, rgba(5, 9, 19, 0.95), rgba(8, 13, 26, 0.98));
  color: #e8edff;
  padding: clamp(28px, 5vw, 48px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-page .site-footer__grid,
.login-page .site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 2vw, 20px);
  align-items: start;
  justify-items: center;
  text-align: center;
}

.auth-page .site-footer__brand,
.login-page .site-footer__brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.auth-page .site-footer__brand .brand,
.login-page .site-footer__brand .brand {
  color: #e8edff;
  font-size: 32px;
  justify-content: center;
}

.auth-page .site-footer__tagline,
.login-page .site-footer__tagline {
  margin: 10px auto 0;
  max-width: 340px;
  color: #cbd7ff;
  line-height: 1.5;
  text-align: center;
}

.auth-page .site-footer__eyebrow,
.login-page .site-footer__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  margin: 0 0 8px;
  color: #93c5fd;
  text-align: center;
}

.auth-page .site-footer__links,
.login-page .site-footer__links {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.auth-page .site-footer__links a,
.login-page .site-footer__links a {
  color: #e8edff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-page .site-footer__links a:hover,
.auth-page .site-footer__links a:focus-visible,
.login-page .site-footer__links a:hover,
.login-page .site-footer__links a:focus-visible {
  color: #cbd7ff;
}

.auth-page .site-footer__subscribe,
.login-page .site-footer__subscribe {
  display: grid;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.auth-page .site-footer__copy,
.login-page .site-footer__copy {
  margin: 0;
  color: #cbd7ff;
  line-height: 1.5;
  text-align: center;
}

.auth-page .site-footer__form,
.login-page .site-footer__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  justify-self: center;
}

.auth-page .site-footer__form input,
.login-page .site-footer__form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8edff;
  font-size: 14px;
}

.auth-page .site-footer__copyright,
.login-page .site-footer__copyright {
  margin-top: clamp(14px, 3vw, 20px);
  text-align: center;
  color: #cbd7ff;
  font-size: 13px;
}

@media (max-width: 720px) {
  .auth-page .site-footer__grid,
  .login-page .site-footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 18px;
  }

  .auth-page .site-footer__form,
  .login-page .site-footer__form {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .auth-page .site-footer__brand,
  .login-page .site-footer__brand {
    gap: 4px;
  }

  .auth-page .site-footer__brand .brand,
  .login-page .site-footer__brand .brand {
    justify-content: center;
    font-size: clamp(20px, 5.5vw, 26px);
    gap: 6px;
  }

  .auth-page .site-footer__brand .brand__mark,
  .login-page .site-footer__brand .brand__mark {
    width: 24px;
    height: 24px;
    transform: none;
  }
}

body.light-ui.auth-page,
body.light-ui.login-page {
  background:
    radial-gradient(120% 120% at 18% 12%, rgba(226, 232, 240, 0.85), rgba(248, 250, 252, 0.95)),
    #f8fafc;
  color: #0f172a;
}

body.light-ui .auth-section,
body.light-ui .auth-main,
body.light-ui .login-main {
  background:
    linear-gradient(135deg, rgba(241, 245, 249, 0.92), rgba(226, 232, 240, 0.9)),
    #f8fafc;
  color: #0f172a;
}

body.light-ui .auth-card,
body.light-ui .login-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

body.light-ui .auth-title {
  color: #0f172a;
}

body.light-ui .auth-sub {
  color: #475569;
}

body.light-ui .auth-small {
  color: #64748b;
}

body.light-ui .sms-opt-row {
  color: #475569;
}

body.light-ui.auth-page .nav-actions .btn.btn-cream,
body.light-ui.login-page .nav-actions .btn.btn-cream {
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
}

body.light-ui.auth-page .site-header,
body.light-ui.login-page .site-header {
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.light-ui.auth-page .site-footer,
body.light-ui.login-page .site-footer {
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.85) 0%, rgba(226, 232, 240, 0.35) 55%),
    radial-gradient(circle at top, #f8fafc 0, #e2e8f0 45%, #cbd5e1 100%);
  color: #0f172a;
  border-top-color: rgba(15, 23, 42, 0.12);
}

body.light-ui.auth-page .site-footer__brand .brand,
body.light-ui.login-page .site-footer__brand .brand {
  color: #0f172a;
}

body.light-ui.auth-page .site-footer__tagline,
body.light-ui.login-page .site-footer__tagline {
  color: #475569;
}

body.light-ui.auth-page .site-footer__eyebrow,
body.light-ui.login-page .site-footer__eyebrow {
  color: #2563eb;
}

body.light-ui.auth-page .site-footer__links a,
body.light-ui.login-page .site-footer__links a {
  color: #1f2937;
}

body.light-ui.auth-page .site-footer__links a:hover,
body.light-ui.auth-page .site-footer__links a:focus-visible,
body.light-ui.login-page .site-footer__links a:hover,
body.light-ui.login-page .site-footer__links a:focus-visible {
  color: #0f172a;
}

body.light-ui.auth-page .site-footer__copy,
body.light-ui.auth-page .site-footer__copyright,
body.light-ui.login-page .site-footer__copy,
body.light-ui.login-page .site-footer__copyright {
  color: #64748b;
}

body.light-ui.auth-page .site-footer__form input,
body.light-ui.login-page .site-footer__form input {
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}
