/* Centered page shell — shared light layout (landing, auth, public forms) */

.page-shell .sidebar {
  display: none;
}

.page-shell .main-content {
  margin-left: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: hidden;
}

.shell-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 420px;
  background: radial-gradient(
    ellipse at center,
    rgba(158, 228, 31, .12) 0%,
    rgba(75, 222, 164, .06) 35%,
    transparent 70%
  );
  pointer-events: none;
}

.shell-inner {
  position: relative;
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.shell-inner--narrow {
  max-width: 400px;
  text-align: left;
}

.shell-inner--form {
  max-width: 600px;
  text-align: left;
}

.shell-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.shell-brand {
  text-align: center;
  margin-bottom: 28px;
}

.shell-brand .shell-eyebrow {
  margin-bottom: 12px;
}

.shell-brand .shell-title {
  margin-bottom: 0;
}

.page-shell .shell-brand .shell-title {
  font-size: clamp(40px, 8vw, 56px);
}

.shell-page-heading {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--text);
  text-align: center;
  margin: 0 0 24px;
}

.shell-inner--form .shell-page-heading,
.shell-inner--narrow .shell-page-heading {
  text-align: left;
}

.shell-inner--wide {
  max-width: 860px;
  text-align: left;
}

.shell-inner--wide .shell-brand .shell-eyebrow,
.shell-inner--wide .shell-brand .shell-title {
  text-align: center;
}

.page-shell--tall .main-content {
  align-items: flex-start;
}

.page-shell--tall .shell {
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 64px;
}

.shell-inner--narrow .shell-eyebrow,
.shell-inner--form .shell-eyebrow {
  text-align: left;
}

.shell-inner--narrow .shell-brand .shell-eyebrow,
.shell-inner--form .shell-brand .shell-eyebrow,
.shell-inner--narrow .shell-brand .shell-title,
.shell-inner--form .shell-brand .shell-title {
  text-align: center;
}

.shell-inner:not(.shell-inner--narrow):not(.shell-inner--form) .shell-eyebrow {
  text-align: center;
}

.shell-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.shell-inner--narrow .shell-title,
.shell-inner--form .shell-title {
  font-size: 28px;
  margin-bottom: 24px;
}

.shell-title-accent {
  color: var(--accent);
}

.shell-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
}

.shell-lead strong {
  color: var(--text-soft);
  font-weight: 600;
}

.shell-help {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-2);
  margin-top: 28px;
  text-align: center;
}

.shell-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shell-field-error {
  color: var(--danger);
  font-size: 11px;
  margin-top: 3px;
}

/* ── Button group with sliding glow ring ── */
.btn-group-glow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.btn-group-glow .btn {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: center;
}

/* Shared ring is the only highlight — buttons stay transparent */
.btn-group-glow .btn--primary::before {
  display: none;
}

.btn-group-glow .btn--primary,
.btn-group-glow .btn--secondary {
  background: transparent;
  border: 1px solid #47494d;
  color: #fff;
  transition: border-color .28s ease, background .28s ease;
}

.btn-group-glow .btn--primary:hover,
.btn-group-glow .btn--secondary:hover,
.btn-group-glow .btn--primary.is-glow-target,
.btn-group-glow .btn--secondary.is-glow-target {
  background: transparent;
  border-color: transparent;
}

.btn-group-glow__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.btn-group-glow__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #9ee41f 0, rgba(11, 14, 19, 0) 50%, #9ee41f 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

@media (min-width: 480px) {
  .btn-group-glow {
    flex-direction: row;
    justify-content: center;
  }

  .btn-group-glow .btn {
    width: auto;
    min-width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-group-glow__ring {
    transition: none;
  }
}
