.auth-page {
  background:
    radial-gradient(circle at top left, rgba(29, 127, 83, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 26%),
    linear-gradient(180deg, #f5f8fd 0%, #edf3f9 100%);
}

.consent-page {
  background:
    radial-gradient(circle at top right, rgba(29, 127, 83, 0.14), transparent 26%),
    radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.08), transparent 24%),
    linear-gradient(180deg, #f6f9fd 0%, #eef3fa 100%);
}

.auth-page .site-footer,
.consent-page .site-footer {
  position: relative;
  z-index: 2;
}

.auth-shell,
.consent-shell {
  position: relative;
  overflow: hidden;
}

.auth-shell-frame,
.consent-shell-frame {
  width: 100%;
  max-width: none;
  padding-left: var(--shell-gutter);
  padding-right: var(--shell-gutter);
}

.auth-shell-row,
.consent-shell-row {
  --bs-gutter-x: clamp(1rem, 2vw, 1.75rem);
}

.site-content .auth-shell .min-vh-100,
.site-content .consent-shell .min-vh-100 {
  min-height: calc(100vh - 164px) !important;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
  animation: authFloat 14s ease-in-out infinite;
}

.orb-1 {
  width: 24rem;
  height: 24rem;
  top: -8rem;
  left: -6rem;
  background: rgba(29, 127, 83, 0.34);
}

.orb-2 {
  width: 22rem;
  height: 22rem;
  right: -5rem;
  bottom: -6rem;
  background: rgba(37, 99, 235, 0.22);
  animation-delay: 1.4s;
}

@keyframes authFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

.hero-panel {
  position: relative;
  padding: 2.2rem;
  min-height: clamp(33rem, calc(100vh - 10rem), 46rem);
  border-radius: 2rem;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(25, 45, 74, 0.92)),
    linear-gradient(90deg, rgba(29, 127, 83, 0.08), transparent);
  color: #f8fbff;
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 2rem 2rem auto;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.4rem;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-title {
  max-width: 11ch;
  margin: 0.7rem 0 0;
  font-size: clamp(2.3rem, 4vw, 4.1rem);
  line-height: 1.02;
  font-weight: 800;
}

.hero-copy {
  max-width: 44ch;
  margin: 1rem 0 0;
  color: rgba(235, 242, 255, 0.84);
  font-size: 1rem;
}

.auth-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
}

.auth-hero-stat,
.trust-badge {
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.auth-hero-stat strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
}

.auth-hero-stat span {
  color: rgba(235, 242, 255, 0.78);
  font-size: 0.9rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #eff4ff;
}

.trust-badge i {
  color: #93c5fd;
}

.auth-card,
.consent-card {
  padding: 1.7rem;
  height: 100%;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(215, 224, 236, 0.95);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.12);
}

.auth-card-header,
.consent-head {
  margin-bottom: 1.25rem;
}

.auth-card-header h2,
.consent-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-card-header p,
.consent-head p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

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

.auth-form-group {
  display: grid;
  gap: 0.45rem;
}

.password-input-group .btn {
  min-width: 3.4rem;
}

.auth-capslock-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.95rem;
  background: var(--warning-soft);
  color: #7d5f18;
}

.auth-recaptcha-group {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  overflow-x: auto;
}

.auth-submit {
  min-height: 3.35rem;
}

.auth-card-copy {
  margin: 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.8rem;
}

.consent-card {
  padding: 1.9rem;
}

.consent-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.consent-head,
.consent-summary,
.consent-actions {
  grid-column: 1 / -1;
}

.consent-summary {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #152132, #223456);
  color: #f8fbff;
}

.consent-summary strong {
  font-size: 1.1rem;
}

.consent-summary p {
  margin: 0;
  color: rgba(235, 242, 255, 0.78);
}

.consent-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.consent-meta div {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
}

.meta-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.consent-scope-panel {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: #fbfcfe;
  border: 1px solid var(--border-soft);
}

.consent-scope-panel h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.consent-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.consent-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
}

.consent-list li i {
  color: var(--accent);
  margin-top: 0.2rem;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.consent-actions .btn {
  min-width: 11rem;
}

@media (max-width: 991px) {
  .hero-panel {
    min-height: auto;
  }

  .auth-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consent-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .site-content .auth-shell .min-vh-100,
  .site-content .consent-shell .min-vh-100 {
    min-height: auto !important;
  }

  .auth-card,
  .consent-card,
  .hero-panel {
    border-radius: 1.4rem;
  }

  .auth-hero-grid,
  .consent-meta {
    grid-template-columns: 1fr;
  }

  .consent-actions {
    flex-direction: column-reverse;
  }

  .consent-actions .btn {
    width: 100%;
  }
}
