:root {
  --stellar-page: #f5efe4;
  --stellar-canvas: #ffffff;
  --stellar-hero: #155e55;
  --stellar-hero-dark: #0d4039;
  --stellar-hero-light: #24756b;
  --stellar-text: #171717;
  --stellar-muted: #746d63;
  --stellar-white: #ffffff;
  --stellar-orange: #ff8a3d;
  --stellar-orange-dark: #dd6421;
  --stellar-mint: #77edc8;
  --stellar-yellow: #ffd46a;
  --stellar-danger: #c8324a;
  --stellar-success: #087443;
  --stellar-shadow: 0 32px 100px rgba(76, 62, 44, 0.2);
  --stellar-card-shadow: 0 34px 92px rgba(44, 36, 27, 0.22);
  --stellar-radius-xl: 42px;
  --stellar-width: 1280px;
  --stellar-transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--stellar-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--stellar-page);
}

body::selection {
  color: var(--stellar-text);
  background: var(--stellar-yellow);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.stellar-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.stellar-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 10%, rgba(255, 212, 106, 0.38), transparent 28%),
    radial-gradient(circle at 90% 13%, rgba(119, 237, 200, 0.22), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(255, 138, 61, 0.17), transparent 34%),
    linear-gradient(135deg, #fbf7ef 0%, #f5efe4 50%, #fff6e6 100%);
}

.stellar-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(120, 95, 67, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 95, 67, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 38%, black 0%, transparent 74%);
}

.stellar-bg-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.62;
  animation: stellarFloat 12s ease-in-out infinite alternate;
}

.stellar-bg-orb-one {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: 18%;
  background: rgba(255, 138, 61, 0.17);
}

.stellar-bg-orb-two {
  width: 260px;
  height: 260px;
  right: -100px;
  top: 8%;
  background: rgba(21, 94, 85, 0.12);
  animation-delay: -4s;
}

.stellar-bg-orb-three {
  width: 360px;
  height: 360px;
  right: 24%;
  bottom: -190px;
  background: rgba(255, 212, 106, 0.25);
  animation-delay: -8s;
}

.stellar-site-header {
  position: relative;
  z-index: 10;
  width: min(100% - 44px, var(--stellar-width));
  margin: 0 auto;
  padding: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stellar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: min(390px, 46vw);
  min-width: 210px;
  min-height: 82px;
  color: var(--stellar-text);
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.stellar-logo img {
  width: auto;
  max-width: 370px;
  max-height: 76px;
  object-fit: contain;
}

.stellar-logo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stellar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 44px rgba(76, 62, 44, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stellar-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #554e45;
  font-size: 0.9rem;
  font-weight: 820;
  border-radius: 999px;
  transition:
    color var(--stellar-transition),
    background var(--stellar-transition),
    transform var(--stellar-transition);
}

.stellar-nav a:hover {
  color: var(--stellar-text);
  background: #f5ead8;
  transform: translateY(-1px);
}

.stellar-nav a:last-child {
  color: var(--stellar-white);
  background: var(--stellar-hero);
}

.stellar-nav a:last-child:hover {
  color: var(--stellar-white);
  background: var(--stellar-orange);
}

.stellar-main {
  width: min(100% - 44px, var(--stellar-width));
  margin: 0 auto;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 0 0 24px;
}

.stellar-canvas {
  position: relative;
  overflow: hidden;
  border-radius: var(--stellar-radius-xl);
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  box-shadow: var(--stellar-shadow);
  border: 10px solid rgba(255, 255, 255, 0.7);
}

.stellar-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: calc(var(--stellar-radius-xl) - 10px);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.06);
  z-index: 8;
}

.stellar-auth-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  grid-template-rows: auto auto;
  align-items: stretch;
}

.stellar-hero {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 360px;
  padding: clamp(44px, 6vw, 74px);
  padding-right: min(54vw, 670px);
  color: var(--stellar-white);
  overflow: hidden;
  border-radius: calc(var(--stellar-radius-xl) - 10px) calc(var(--stellar-radius-xl) - 10px) 0 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(119, 237, 200, 0.22), transparent 24%),
    radial-gradient(circle at 42% 74%, rgba(255, 212, 106, 0.14), transparent 28%),
    linear-gradient(135deg, var(--stellar-hero) 0%, var(--stellar-hero-light) 54%, var(--stellar-hero-dark) 100%);
}

.stellar-hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -300px;
  top: -400px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 70px rgba(255, 255, 255, 0.025),
    inset 0 0 0 140px rgba(255, 255, 255, 0.018),
    inset 0 0 0 220px rgba(255, 255, 255, 0.014);
}

.stellar-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.stellar-hero-copy {
  position: relative;
  z-index: 5;
  max-width: 620px;
}

.stellar-hero-copy h1 {
  margin: 0;
  color: var(--stellar-white);
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.095em;
}

.stellar-auth-stack {
  position: relative;
  z-index: 12;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  width: 100%;
  padding: 32px clamp(24px, 4vw, 44px) 34px 0;
}

.stellar-auth-card,
.stellar-login {
  position: relative;
  width: 100%;
  padding: 32px 36px 34px;
  color: var(--stellar-text);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 247, 0.98));
  box-shadow: var(--stellar-card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.84);
  overflow: visible;
}

.stellar-auth-card::before,
.stellar-login::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 26px;
  border: 1px solid rgba(23, 23, 23, 0.06);
}

.stellar-login-head,
.stellar-auth-head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.stellar-login-head span,
.stellar-auth-head span {
  display: block;
  color: var(--stellar-orange-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stellar-login-head h2,
.stellar-auth-head h2 {
  margin: 9px 0 0;
  color: var(--stellar-text);
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  line-height: 0.95;
  letter-spacing: -0.078em;
}

.stellar-login-head p,
.stellar-auth-head p {
  margin: 12px 0 0;
  color: var(--stellar-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.stellar-alert {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.stellar-alert strong {
  display: block;
  margin-bottom: 3px;
}

.stellar-alert ul {
  margin: 0;
  padding-left: 18px;
}

.stellar-alert-error {
  color: var(--stellar-danger);
  background: rgba(200, 50, 74, 0.08);
  border: 1px solid rgba(200, 50, 74, 0.18);
}

.stellar-alert-success {
  color: var(--stellar-success);
  background: rgba(8, 116, 67, 0.08);
  border: 1px solid rgba(8, 116, 67, 0.18);
}

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

.stellar-field {
  display: grid;
  gap: 7px;
}

.stellar-field label {
  color: #453f38;
  font-size: 0.88rem;
  font-weight: 850;
}

.stellar-field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  color: var(--stellar-text);
  font-weight: 760;
  border-radius: 16px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  outline: 0;
  background: #fffaf4;
  transition:
    border-color var(--stellar-transition),
    box-shadow var(--stellar-transition),
    background var(--stellar-transition),
    transform var(--stellar-transition);
}

.stellar-field input::placeholder {
  color: #aaa297;
  font-weight: 560;
}

.stellar-field input:focus {
  border-color: rgba(21, 94, 85, 0.46);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgba(21, 94, 85, 0.11),
    0 16px 32px rgba(76, 62, 44, 0.1);
}

.stellar-captcha {
  max-width: 100%;
  overflow-x: auto;
  padding: 12px;
  border-radius: 16px;
  background: #fffaf4;
  border: 1px solid rgba(23, 23, 23, 0.12);
}

.stellar-error-text {
  color: var(--stellar-danger);
  font-size: 0.84rem;
  font-weight: 780;
}

.stellar-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 2px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.015em;
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--stellar-hero-light), var(--stellar-hero-dark));
  box-shadow:
    0 20px 40px rgba(21, 94, 85, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.16);
  transition:
    transform var(--stellar-transition),
    box-shadow var(--stellar-transition),
    filter var(--stellar-transition);
}

.stellar-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow:
    0 25px 50px rgba(21, 94, 85, 0.32),
    inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.stellar-submit:active {
  transform: translateY(0);
}

.stellar-outside-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 18px 44px rgba(76, 62, 44, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stellar-outside-links a,
.stellar-auth-links a,
.stellar-links a {
  color: #514a42;
  font-size: 0.88rem;
  font-weight: 820;
  transition: color var(--stellar-transition);
}

.stellar-outside-links a:hover,
.stellar-auth-links a:hover,
.stellar-links a:hover {
  color: var(--stellar-orange-dark);
}

.stellar-lower {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  min-height: 300px;
  width: 100%;
  padding: 34px clamp(28px, 5vw, 62px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 212, 106, 0.24), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(119, 237, 200, 0.13), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #fff7e8 46%, #fffaf2 100%);
}

.stellar-lower-copy {
  max-width: 560px;
}

.stellar-lower-copy span {
  display: block;
  color: var(--stellar-orange-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stellar-lower-copy h3 {
  margin: 11px 0 0;
  color: var(--stellar-text);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.stellar-lower-copy p {
  max-width: 500px;
  margin: 14px 0 0;
  color: var(--stellar-muted);
  font-size: 0.96rem;
  line-height: 1.68;
}

/* Reusable password request / password change helpers */

.stellar-auth-card.is-password-request,
.stellar-auth-card.is-password-change {
  min-height: auto;
}

.stellar-auth-note {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  padding: 14px 15px;
  color: #514a42;
  font-size: 0.91rem;
  line-height: 1.58;
  border-radius: 16px;
  background: rgba(255, 212, 106, 0.16);
  border: 1px solid rgba(255, 138, 61, 0.16);
}

.stellar-auth-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  color: #514a42;
  font-size: 0.88rem;
  font-weight: 820;
  transition: color var(--stellar-transition);
}

.stellar-auth-back:hover {
  color: var(--stellar-orange-dark);
}

.stellar-hidden-field {
  display: none;
}

.stellar-ads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stellar-ad {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 44px rgba(76, 62, 44, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.stellar-ad > * {
  max-width: 100%;
}

.stellar-footer {
  width: min(100% - 44px, var(--stellar-width));
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #716b61;
  font-size: 0.88rem;
}

.stellar-footer p {
  margin: 0;
}

.stellar-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.stellar-footer a {
  transition: color var(--stellar-transition);
}

.stellar-footer a:hover {
  color: var(--stellar-hero);
}

@keyframes stellarFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(16px, -18px, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1180px) {
  .stellar-auth-canvas {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .stellar-hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 360px;
    padding-right: 46px;
  }

  .stellar-auth-stack {
    grid-column: 1;
    grid-row: 2;
    width: min(100% - 52px, 520px);
    margin: -104px auto 44px;
    padding: 0;
  }

  .stellar-lower {
    grid-column: 1;
    grid-row: 3;
    min-height: auto;
    padding-right: clamp(28px, 5vw, 62px);
  }
}

@media (max-width: 820px) {
  .stellar-site-header,
  .stellar-main,
  .stellar-footer {
    width: min(100% - 24px, var(--stellar-width));
  }

  .stellar-site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
  }

  .stellar-logo {
    width: min(100%, 350px);
    min-height: 74px;
  }

  .stellar-logo img {
    max-width: 330px;
    max-height: 68px;
  }

  .stellar-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 22px;
  }

  .stellar-nav a {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .stellar-canvas {
    border-width: 6px;
    border-radius: 30px;
  }

  .stellar-hero {
    min-height: auto;
    padding: 34px 20px 132px;
    border-radius: 24px 24px 0 0;
  }

  .stellar-hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .stellar-auth-stack {
    width: min(100% - 28px, 520px);
    margin-top: -100px;
  }

  .stellar-auth-card,
  .stellar-login {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .stellar-lower {
    padding: 0 20px 28px;
  }

  .stellar-ads {
    grid-template-columns: 1fr;
  }

  .stellar-footer {
    justify-content: center;
    text-align: center;
  }

  .stellar-footer-links {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .stellar-logo {
    min-width: 0;
    min-height: 66px;
  }

  .stellar-logo img {
    max-width: 280px;
    max-height: 60px;
  }

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

  .stellar-login-head h2,
  .stellar-auth-head h2 {
    font-size: 2.35rem;
  }

  .stellar-login-head p,
  .stellar-auth-head p {
    font-size: 0.94rem;
  }

  .stellar-alert {
    font-size: 0.84rem;
  }

  .stellar-field input,
  .stellar-submit {
    height: 54px;
    min-height: 54px;
  }

  .stellar-outside-links,
  .stellar-auth-links,
  .stellar-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .g-recaptcha {
    transform: scale(0.84);
    transform-origin: 0 0;
  }
}