.landing-body {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.10), transparent 30rem),
    var(--bg-primary);
}

html,
body {
  overflow-x: hidden;
}

.header-login {
  min-height: 40px;
}

.mobile-login {
  color: var(--color-secondary);
  font-weight: var(--weight-bold);
}

.landing-anchor-section {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.04) 100%);
}

.landing-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}

.landing-info-card,
.landing-docs-panel {
  background: rgba(26, 37, 64, 0.72);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .landing-info-card,
[data-theme="light"] .landing-docs-panel {
  background: rgba(255, 255, 255, 0.82);
}

.landing-info-card {
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
}

.landing-info-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--sp-5);
  border-radius: var(--radius-md);
  color: var(--color-secondary-light);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.22);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.landing-info-card h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--text-xl);
}

.landing-info-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.landing-docs-section {
  padding-top: 0;
}

.landing-docs-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: center;
  border-radius: var(--radius-2xl);
  padding: var(--sp-10);
}

.landing-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: flex-end;
}

.auth-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 4rem) var(--sp-4);
  background:
    radial-gradient(circle at 15% 15%, rgba(124, 58, 237, 0.20), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(6, 182, 212, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(6, 11, 24, 0.72), rgba(13, 21, 38, 0.90));
}

[data-theme="light"] .auth-stage {
  background:
    radial-gradient(circle at 15% 15%, rgba(124, 58, 237, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(6, 182, 212, 0.12), transparent 26rem),
    linear-gradient(135deg, #eef4ff, #ffffff);
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: rgba(26, 37, 64, 0.78);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

.auth-shell-compact {
  width: min(960px, 100%);
}

[data-theme="light"] .auth-shell {
  background: rgba(255, 255, 255, 0.88);
}

.auth-brand-panel {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.08)),
    var(--bg-secondary);
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 25%;
  height: 360px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.42), rgba(6, 182, 212, 0.28));
  filter: blur(70px);
  opacity: 0.6;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  text-decoration: none;
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-brand-copy .eyebrow,
.auth-form-header .eyebrow,
.auth-result-panel .eyebrow {
  margin-bottom: var(--sp-3);
  color: var(--color-secondary-light);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand-copy h1 {
  margin-bottom: var(--sp-5);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.auth-brand-copy p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
}

.auth-signal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.auth-signal-grid span {
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.85;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.auth-form-header {
  margin-bottom: var(--sp-8);
}

.auth-form-header h2 {
  margin-bottom: var(--sp-3);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.auth-form-header p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.auth-form {
  display: grid;
  gap: var(--sp-5);
}

.auth-floating {
  margin-bottom: 0;
}

.auth-floating.form-floating > .form-control {
  min-height: 60px;
  padding: 1.55rem 1rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-input);
  color: var(--text-primary);
}

.auth-floating.form-floating > label {
  color: var(--text-tertiary);
  padding: 1rem;
}

.auth-floating.form-floating > .form-control:focus ~ label,
.auth-floating.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--color-secondary-light);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.auth-row a,
.auth-secondary-action a {
  color: var(--color-secondary-light);
  font-weight: var(--weight-semibold);
}

.auth-submit {
  width: 100%;
  min-height: 52px;
}

.auth-submit.btn-accent {
  border-radius: var(--radius-full);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  color: #fff;
  box-shadow: var(--shadow-glow-green);
}

.btn-accent:hover,
.btn-accent:focus {
  color: #fff;
  transform: translateY(-1px);
}

.auth-validation,
.field-validation-error {
  color: #fca5a5 !important;
  font-size: var(--text-sm);
}

.auth-secondary-action {
  text-align: center;
  margin-top: var(--sp-2);
}

.auth-result-panel {
  width: min(580px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: rgba(26, 37, 64, 0.82);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .auth-result-panel {
  background: rgba(255, 255, 255, 0.9);
}

.auth-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: var(--sp-8) auto var(--sp-6);
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.16);
  color: var(--color-accent-light);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
}

.auth-result-panel h1 {
  margin-bottom: var(--sp-4);
  font-size: clamp(2rem, 5vw, 3rem);
}

.auth-result-panel p:not(.eyebrow) {
  color: var(--text-secondary);
}

.text-danger {
  color: #fca5a5 !important;
}

@media (max-width: 1024px) {
  .header-login {
    display: none;
  }

  .landing-docs-panel,
  .landing-info-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 360px;
  }

  .landing-docs-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(20px);
  }

  .reveal-left.revealed,
  .reveal-right.revealed {
    transform: translateY(0);
  }

  .landing-info-grid {
    gap: var(--sp-4);
  }

  .landing-docs-panel,
  .landing-info-card {
    padding: var(--sp-6);
  }

  .auth-stage {
    padding: var(--sp-4);
  }

  .auth-shell {
    border-radius: var(--radius-xl);
  }

  .auth-brand-panel,
  .auth-form-panel {
    padding: var(--sp-6);
  }

  .auth-brand-panel {
    min-height: 300px;
  }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .landing-docs-actions,
  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .landing-docs-actions .btn,
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }
}
