:root {
  --pub-bg: #09111d;
  --pub-surface: rgba(16, 24, 38, 0.8);
  --pub-surface-2: rgba(19, 30, 49, 0.92);
  --pub-fg: #edf4ff;
  --pub-muted: #9cadcf;
  --pub-border: rgba(141, 170, 233, 0.2);
  --pub-accent: #7fb1ff;
  --pub-accent-2: #c48dff;
  --pub-accent-3: #48d1b5;
  --pub-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --pub-radius: 24px;
  --pub-font: "Avenir Next", "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--pub-font);
  background:
    radial-gradient(circle at 10% 10%, rgba(127, 177, 255, 0.18), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(196, 141, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 88%, rgba(72, 209, 181, 0.1), transparent 24%),
    linear-gradient(180deg, #0d1524 0%, #08111b 100%);
  color: var(--pub-fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .8;
}

body::before {
  top: -90px;
  left: -70px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(127, 177, 255, 0.16), transparent 68%);
}

body::after {
  right: -80px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(196, 141, 255, 0.14), transparent 68%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.public-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 38px;
  position: relative;
  z-index: 1;
}

.public-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  background: rgba(10, 16, 28, 0.62);
  backdrop-filter: blur(20px) saturate(130%);
  box-shadow: var(--pub-shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pub-accent), var(--pub-accent-2));
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(122, 162, 247, .25);
}

.nav-actions {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 10px;
  flex-wrap: wrap;
  overflow: visible;
}

.nav-actions > [data-public-account] {
  margin-left: auto;
}

.lang-picker {
  background: rgba(255,255,255,0.05);
  color: var(--pub-fg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 8px 12px;
  min-width: 130px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--pub-fg);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.pill:hover { transform: translateY(-1px); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); }

.public-account-panel {
  position: relative;
  min-width: 0;
  z-index: 30;
}

.public-account-panel summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d7e5ff;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.public-account-panel summary::-webkit-details-marker {
  display: none;
}

.public-account-panel summary:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

.public-account-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pub-accent-3);
  box-shadow: 0 0 0 6px rgba(72, 209, 181, 0.16);
}

.public-account-body {
  display: grid;
  gap: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12, 18, 31, 0.96);
  box-shadow: var(--pub-shadow);
  z-index: 80;
}

.public-account-email {
  font-size: .9rem;
  font-weight: 700;
  color: #eef4ff;
}

.public-account-meta,
.public-account-hint {
  color: var(--pub-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.public-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.public-account-grid .pill,
.public-logout-btn {
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  font-size: .82rem;
}

.public-logout-btn {
  background: rgba(248,113,113,.14);
  border-color: rgba(248,113,113,.22);
  color: #ffd8d8;
}

.public-account-panel[open] summary {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

@media (max-width: 820px) {
  .public-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
  .nav-actions > [data-public-account] {
    margin-left: 0;
  }
  .public-account-body {
    right: auto;
    left: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.surface {
  background: var(--pub-surface);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow);
  backdrop-filter: blur(16px);
  position: relative;
}

.hero-card {
  padding: 38px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -50px -60px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,177,255,.18), transparent 72%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(127, 177, 255, 0.12);
  border: 1px solid rgba(127, 177, 255, 0.18);
  color: #cfe0ff;
  font-size: .92rem;
  letter-spacing: .01em;
}

.hero-title {
  font-size: clamp(2.3rem, 4.8vw, 4.7rem);
  line-height: 1.02;
  margin: 18px 0 16px;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-copy {
  margin: 0;
  color: var(--pub-muted);
  line-height: 1.7;
  max-width: 65ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.landing-cta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.landing-cta-row .btn {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  overflow: hidden;
  line-height: 1.3;
  min-height: 52px;
  padding: 12px 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--pub-accent), #5d87f7);
  color: #fff;
  box-shadow: 0 10px 24px rgba(122,162,247,.18);
  border: none;
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(122,162,247,.12);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  background: rgba(255,255,255,0.045);
  color: var(--pub-fg);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 26px;
}

.info-card, .side-card, .doc-card, .stat-card, .pricing-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
}

.info-card { padding: 16px; }
.info-card strong, .side-card strong, .doc-card strong, .pricing-card strong { display: block; margin-bottom: 8px; }
.info-card p, .side-card p, .doc-card p, .pricing-card p { margin: 0; color: var(--pub-muted); line-height: 1.55; }

.side-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.surface-title {
  margin: 0 0 8px;
  font-size: 1.22rem;
  text-wrap: balance;
}

.surface-title + p {
  color: var(--pub-muted);
  line-height: 1.7;
}

.section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.doc-sidebar {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.doc-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--pub-muted);
}

.doc-sidebar a:hover,
.doc-sidebar a.active {
  background: rgba(122,162,247,.12);
  color: #fff;
}

.doc-content {
  display: grid;
  gap: 16px;
}

.doc-card {
  padding: 22px;
  line-height: 1.7;
}

.doc-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.doc-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--pub-muted);
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .6fr);
  gap: 20px;
  align-items: stretch;
}

.form-card {
  padding: 30px;
}

/* Auth pages: cleaner centered single-column flow */
.auth-page .form-shell {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 18px;
}

.auth-page .form-card {
  width: min(760px, 100%);
}

.auth-page .side-card {
  width: min(760px, 100%);
}

.auth-page .hero-title,
.auth-page .hero-copy,
.auth-page form,
.auth-page .form-card .notice {
  max-width: 560px;
}

.auth-page .field input {
  max-width: 560px;
}

.auth-page .auth-submit {
  width: min(320px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.hero-visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.chart-stage {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(180deg, rgba(11, 17, 29, 0.88), rgba(16, 24, 38, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(127,177,255,0.18), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(196,141,255,0.14), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: .38;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 92%);
}

.chart-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chart-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid rgba(255,255,255,0.09);
  color: #dbe8ff;
  font-size: .82rem;
}

.chart-badge.badge-right {
  left: auto;
  right: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.metric-card strong {
  display: block;
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.metric-card span {
  color: var(--pub-muted);
  font-size: .88rem;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field label {
  color: #dfe8fa;
  font-size: .92rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(7,10,17,.72);
  color: var(--pub-fg);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input:focus {
  border-color: rgba(122,162,247,.55);
  box-shadow: 0 0 0 4px rgba(122,162,247,.14);
}

.field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field input::placeholder {
  color: rgba(255,255,255,0.35);
}

.notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(122,162,247,.10);
  border: 1px solid rgba(122,162,247,.15);
  color: #d7e5ff;
}

.error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.22);
  color: #fca5a5;
  animation: slideInError .3s ease;
}

@keyframes slideInError {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form enhancements */
.field:first-child {
  margin-top: 0;
}

.auth-page .surface.form-card {
  padding: 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.pricing-card {
  padding: 22px;
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 8px 0 10px;
}

.pricing-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: #d8fff5;
  background: rgba(72, 209, 181, 0.16);
  border: 1px solid rgba(72, 209, 181, 0.34);
}

.badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(122,162,247,.13);
  color: #d7e5ff;
  font-size: .85rem;
}

.footer-note {
  text-align: center;
  color: var(--pub-muted);
  font-size: .92rem;
  margin-top: 28px;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.floaty { animation: floatY 5.5s ease-in-out infinite; }
.glow-pulse { animation: glowPulse 3.2s ease-in-out infinite; }

@media (max-width: 980px) {
  .hero-grid, .form-shell, .doc-layout, .pricing-grid, .doc-grid {
    grid-template-columns: 1fr;
  }
  .doc-sidebar { position: static; }
  .info-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .public-nav { border-radius: 24px; }
  .hero-card { padding: 28px; }
  .chart-stage { min-height: 260px; }
  .auth-page .auth-submit {
    width: 100%;
  }
}

@media (max-width: 1280px) {
  .landing-cta-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tech Auth Design */
.auth-page-tech {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 36px;
  background:
    radial-gradient(circle at 15% 20%, rgba(72, 209, 181, 0.18), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(127, 177, 255, 0.18), transparent 35%),
    radial-gradient(circle at 20% 85%, rgba(196, 141, 255, 0.16), transparent 45%),
    linear-gradient(145deg, #080f1c 0%, #101a2c 45%, #0a1020 100%);
  font-family: "Space Grotesk", "Sora", "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--pub-fg);
  position: relative;
  overflow: hidden;
}

.auth-page-tech::before,
.auth-page-tech::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.auth-page-tech::before {
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(127, 177, 255, 0.45), transparent 70%);
}

.auth-page-tech::after {
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(72, 209, 181, 0.4), transparent 70%);
}

.auth-shell {
  width: min(1120px, calc(100% - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 30px;
  background: rgba(7, 10, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.auth-rail {
  position: relative;
  border-radius: 26px;
  padding: 36px;
  background: linear-gradient(155deg, rgba(14, 24, 44, 0.96), rgba(9, 14, 26, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.auth-rail::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  background: radial-gradient(circle at 20% 10%, rgba(72, 209, 181, 0.16), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.auth-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  pointer-events: none;
}

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

.auth-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #48d1b5, #7fb1ff);
  box-shadow: 0 14px 30px rgba(72, 209, 181, 0.25);
  font-size: 24px;
}

.auth-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.auth-tag {
  font-size: 13px;
  color: var(--pub-muted);
  font-weight: 600;
  margin-top: 4px;
}

.auth-rail-copy {
  position: relative;
  z-index: 1;
  margin: 36px 0 28px;
}

.auth-rail-title {
  font-size: clamp(2.2rem, 3.2vw, 3.1rem);
  margin: 0 0 12px;
  letter-spacing: -0.6px;
}

.auth-rail-sub {
  margin: 0;
  color: var(--pub-muted);
  line-height: 1.7;
  max-width: 42ch;
}

.auth-rail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.rail-card {
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(12, 20, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 8px;
}

.rail-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #8fd8ff;
  text-transform: uppercase;
  font-weight: 700;
}

.rail-title {
  font-size: 16px;
  font-weight: 700;
}

.rail-text {
  color: var(--pub-muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-panel {
  border-radius: 26px;
  padding: 32px;
  background: linear-gradient(160deg, rgba(8, 13, 25, 0.95), rgba(10, 16, 30, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 20px;
}

.auth-panel-card {
  border-radius: 20px;
  padding: 24px;
  background: rgba(11, 18, 34, 0.85);
  border: 1px solid rgba(127, 177, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.auth-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.auth-back {
  color: var(--pub-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: all .2s ease;
}

.auth-back:hover {
  color: #fff;
  border-color: rgba(127, 177, 255, 0.4);
  transform: translateY(-1px);
}

.lang-select {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pub-fg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.lang-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-panel-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
}

.auth-panel-sub {
  margin: 0 0 24px;
  color: var(--pub-muted);
  line-height: 1.6;
}

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

.auth-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cde6ff;
}

.auth-field input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 10, 18, 0.9);
  color: var(--pub-fg);
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-field input:focus {
  border-color: rgba(127, 177, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(127, 177, 255, 0.15);
  background: rgba(8, 12, 22, 0.95);
}

.auth-submit {
  margin-top: 6px;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #0b1220;
  background: linear-gradient(135deg, #7fb1ff 0%, #5bf0c1 50%, #48d1b5 100%);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 12px 30px rgba(72, 209, 181, 0.25);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(72, 209, 181, 0.32);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.error-box {
  display: none;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #ffb3b3;
  font-size: 13px;
}

.auth-panel-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--pub-muted);
}

.auth-panel-foot span {
  font-weight: 600;
}

.auth-panel-foot a {
  color: #8fd8ff;
  text-decoration: none;
  font-weight: 700;
}

.auth-panel-foot a:hover {
  color: #7fb1ff;
}

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

  .auth-rail {
    order: 2;
  }

  .auth-panel {
    order: 1;
  }
}

@media (max-width: 620px) {
  .landing-cta-row {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    gap: 18px;
  }

  .auth-rail,
  .auth-panel {
    padding: 22px;
    border-radius: 20px;
  }

  .auth-panel-card {
    padding: 18px;
  }

  .auth-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .auth-rail-title {
    font-size: 1.9rem;
  }

  .auth-panel-title {
    font-size: 20px;
  }
}
