.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--kite-paper);
  color: var(--kite-ink);
  font-family: var(--kite-font);
}

.auth__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem var(--kite-gutter);
}

.auth__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(58rem, 100%);
  height: min(36rem, calc(100dvh - 3rem));
  padding: 0.85rem;
  border-radius: 1.5rem;
  background: #fff;
  overflow: hidden;
}

.auth__media {
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--kite-paper);
}

.auth__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth__form-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.35rem, 3vw, 2.25rem);
}

.auth__brand {
  position: absolute;
  top: clamp(1.15rem, 2.5vw, 1.5rem);
  left: clamp(1.35rem, 3vw, 2.25rem);
  display: block;
  height: 2.2rem;
  line-height: 0;
  color: var(--kite-ink);
  text-decoration: none;
}

.auth__brand-pill {
  display: block;
  height: 100%;
  width: auto;
  aspect-ratio: 70 / 38.4;
}

.auth__title {
  margin-bottom: 0.4rem;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth__subtitle {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(12, 12, 12, 0.5);
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(12, 12, 12, 0.45);
}

.auth__input {
  height: 2.6rem;
  padding-inline: 0.9rem;
  border: none;
  border-radius: 0.85rem;
  background: var(--kite-paper);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--kite-ink);
  outline: none;
}

.auth__input::placeholder {
  color: rgba(12, 12, 12, 0.35);
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth__check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(12, 12, 12, 0.5);
  cursor: pointer;
  user-select: none;
}

.auth__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth__check-box {
  display: inline-flex;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--kite-paper);
  flex-shrink: 0;
}

.auth__check input:checked + .auth__check-box {
  background: var(--kite-blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.auth__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(12, 12, 12, 0.45);
  text-decoration: none;
}

.auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  margin-top: 0.25rem;
  border: none;
  border-radius: 999px;
  background: var(--kite-blue);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.auth__switch {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(12, 12, 12, 0.45);
}

.auth__switch a {
  color: var(--kite-ink);
  text-decoration: none;
}

@media (max-width: 820px) {
  .auth__shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: min(36rem, calc(100dvh - 3rem));
  }

  .auth__media {
    display: none;
  }

  .auth__form-side {
    justify-content: center;
    padding-top: 5rem;
  }
}
