.auth-shell {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: 100svh;
  padding-block: clamp(3rem, 7vw, 6rem);
  background:
    linear-gradient(90deg, rgb(0 170 80 / 5%) 0 12%, transparent 12% 88%, rgb(255 127 0 / 7%) 88% 100%),
    var(--brand-surface-warm);
}

.auth-shell::before,
.auth-shell::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.auth-shell::before {
  width: min(24vw, 19rem);
  aspect-ratio: 1;
  border: clamp(1rem, 2.4vw, 1.8rem) solid rgb(0 170 80 / 10%);
  inset-block-start: -7rem;
  inset-inline-start: 7vw;
}

.auth-shell::after {
  width: min(20vw, 15rem);
  aspect-ratio: 1;
  background: rgb(255 127 0 / 7%);
  inset-block-end: -8rem;
  inset-inline-end: 7vw;
}

.auth-shell__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(17rem, 0.84fr) minmax(22rem, 1fr);
  max-width: 67rem;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: stretch;
  margin-inline: auto;
}

.auth-intro {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.45rem, 4vw, 2.65rem);
  border-radius: 1.55rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 9%, rgb(255 127 0 / 23%), transparent 10rem),
    radial-gradient(circle at 7% 94%, rgb(0 170 80 / 40%), transparent 13rem),
    var(--brand-green-deep);
  box-shadow: var(--shadow-card);
}

.auth-intro__brand {
  display: inline-flex;
  width: fit-content;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.55rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-intro__brand span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.75rem;
  color: var(--brand-green-deep);
  background: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.auth-intro__eyebrow {
  margin: auto 0 0;
  padding-top: clamp(2.8rem, 9vw, 6.5rem);
  color: #b8f1ce;
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-intro h2 {
  max-width: 23rem;
  margin: 0.65rem 0 0;
  color: #ffffff;
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.035em;
}

.auth-intro > p:not(.auth-intro__eyebrow) {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.92rem;
  line-height: 2;
}

.auth-intro__points {
  display: grid;
  gap: 0.65rem;
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-intro__points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgb(255 255 255 / 92%);
  font-size: 0.84rem;
  line-height: 1.7;
}

.auth-intro__points span {
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #643400;
  background: #ffc58d;
  font-size: 0.7rem;
  font-weight: 600;
}

.auth-intro__points li:nth-child(1) span,
.auth-intro__points li:nth-child(3) span {
  color: var(--brand-green-deep);
  background: #b8f1ce;
}

.auth-card {
  padding: clamp(1.35rem, 4.5vw, 3rem);
  border: 1px solid var(--brand-border);
  border-radius: 1.55rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 17px 45px rgb(18 61 50 / 7%);
}

.auth-card h1 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: -0.04em;
}

.auth-card__lead {
  max-width: 35rem;
  margin: 0.85rem 0 0;
  color: var(--brand-gray-dark);
  font-size: 0.95rem;
  line-height: 2;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 1.55rem;
  padding: 0.35rem;
  border-radius: 0.9rem;
  background: var(--brand-surface-muted);
}

.auth-mode-tab {
  min-height: 2.9rem;
  border: 0;
  border-radius: 0.65rem;
  color: var(--brand-gray-dark);
  background: transparent;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-mode-tab:hover {
  color: var(--brand-green-deep);
}

.auth-mode-tab.is-active {
  color: var(--brand-green-deep);
  background: #ffffff;
  box-shadow: 0 4px 12px rgb(18 61 50 / 8%);
}

.auth-mode-tab:focus-visible,
.auth-field input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.auth-panel {
  padding-top: 1.35rem;
}

.auth-form,
.auth-form__two-columns {
  display: grid;
  gap: 0.9rem;
}

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

.auth-field {
  display: grid;
  gap: 0.43rem;
}

.auth-field label {
  color: var(--brand-ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid #cbd8d1;
  border-radius: 0.78rem;
  outline: none;
  color: var(--brand-ink);
  background: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.6;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input::placeholder {
  color: #8a958f;
}

.auth-field input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgb(0 170 80 / 12%);
}

.auth-submit {
  width: 100%;
  margin-top: 0.2rem;
}

.auth-static-notice {
  margin: 1.15rem 0 0;
  padding: 0.8rem 0.9rem;
  border-inline-start: 3px solid var(--brand-orange);
  border-radius: 0.2rem 0.75rem 0.75rem 0.2rem;
  color: #60451b;
  background: var(--brand-orange-soft);
  font-size: 0.81rem;
  line-height: 1.9;
}

.auth-status {
  margin: 0.85rem 0 0;
  padding: 0.78rem 0.9rem;
  border-radius: 0.75rem;
  color: var(--brand-green-deep);
  background: var(--brand-green-soft);
  font-size: 0.83rem;
  line-height: 1.9;
}

@media (max-width: 850px) {
  .auth-shell__layout {
    grid-template-columns: 1fr;
    max-width: 43rem;
  }

  .auth-intro {
    min-height: auto;
  }

  .auth-intro__eyebrow {
    margin-top: 0;
    padding-top: 2.75rem;
  }
}

@media (max-width: 540px) {
  .auth-shell {
    padding-block: 1.5rem 3rem;
  }

  .auth-intro,
  .auth-card {
    border-radius: 1.15rem;
  }

  .auth-intro {
    padding: 1.3rem;
  }

  .auth-intro__eyebrow {
    padding-top: 2.2rem;
  }

  .auth-card {
    padding: 1.2rem;
  }

  .auth-form__two-columns {
    grid-template-columns: 1fr;
  }
}
