.auth {
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth__side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 32px;
  background: var(--paper);
  border-right: 1.5px dashed var(--sage-3);
}

.auth__back {
  position: absolute;
  top: 24px;
  left: 28px;
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}

.auth__logo {
  width: min(300px, 70%);
  height: auto;
  border-radius: 24px;
}

.auth__quote {
  width: min(320px, 90%);
  margin-top: -18px;
  transform: rotate(-1.6deg);
  font-size: 14px;
}

.auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(440px, 100% - 32px);
  margin-inline: auto;
  padding: 48px 0;
}

.auth__brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--sage);
  font: 24px/1 var(--f-display);
  text-decoration: none;
}

.auth__brand img {
  border-radius: 9px;
}

.auth__panel {
  display: none;
}

.auth__panel.is-on {
  display: block;
}

.auth__form.auth__panel.is-on,
.auth__form.is-on {
  display: grid;
}

.auth__form {
  display: none;
  gap: 16px;
}

.auth h1 {
  font-size: clamp(32px, 4vw, 42px);
}

.auth__sub {
  margin-top: -6px;
  color: #4a5644;
}

.auth__help {
  margin-top: -8px;
  font-size: 13.5px;
  color: var(--sage-2);
}

.auth__error {
  min-height: 0;
  color: var(--danger);
  font-weight: 600;
  font-size: 15px;
}

.auth__error:empty {
  display: none;
}

.auth__alt {
  justify-self: center;
  font-size: 15px;
}

.auth__notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1.5px solid var(--sage);
  border-radius: 10px;
  background: var(--card);
  font-size: 15px;
}

.auth__notice[hidden] {
  display: none;
}

.auth__dev {
  padding: 12px 14px;
  border: 1.5px dashed var(--clay-ink);
  border-radius: 10px;
  background: var(--clay-wash);
  font: 13px/1.5 var(--f-mono);
  word-break: break-all;
}

.auth__dev[hidden] {
  display: none;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 30px;
  padding: 4px;
  border: var(--stroke);
  border-radius: 999px;
  background: var(--card);
}

.tabs__btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sage);
  font: 600 15px/1 var(--f-body);
  cursor: pointer;
}

.tabs__btn.is-on {
  background: var(--sage);
  color: var(--card);
}

.auth__sent.is-on {
  display: grid;
  gap: 16px;
}

.envelope svg {
  width: 120px;
  fill: var(--clay-soft);
  stroke: var(--sage);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.envelope path {
  fill: none;
}

.envelope .spark {
  stroke: var(--clay-ink);
}

@media (max-width: 860px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth__side {
    display: none;
  }
  .auth__brand {
    display: inline-flex;
  }
  .auth__main {
    justify-content: flex-start;
    padding-top: 32px;
  }
}
