.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.auth__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
}

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

.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: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

.auth__brand svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
}

.auth__brand span {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.auth__title {
  margin-bottom: 0.4rem;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.auth__subtitle {
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.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: 500;
  color: var(--muted);
}

.auth__input {
  height: 2.6rem;
  padding-inline: 0.9rem;
  border: none;
  border-radius: 0.7rem;
  background: #0a0a0c;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
}

.auth__input::placeholder {
  color: rgba(244, 244, 245, 0.3);
}

.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;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

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

.auth__check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid rgba(244, 244, 245, 0.25);
  border-radius: 0.22rem;
  background: #0a0a0c;
  flex-shrink: 0;
}

.auth__check-box::after {
  content: "";
  width: 0.42rem;
  height: 0.26rem;
  border-left: 1.5px solid #06130a;
  border-bottom: 1.5px solid #06130a;
  transform: rotate(-45deg) translateY(-0.04rem);
  opacity: 0;
}

.auth__check input:checked + .auth__check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.auth__check input:checked + .auth__check-box::after {
  opacity: 1;
}

.auth__link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .auth__link:hover {
    color: var(--ink);
  }
}

.auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  margin-top: 0.35rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: #06130a;
  cursor: pointer;
  transition: filter 0.2s ease;
}

@media (hover: hover) {
  .auth__submit:hover {
    filter: brightness(0.88);
  }
}

.auth__switch {
  margin-top: 1.25rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.auth__switch a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .auth__switch a:hover {
    color: var(--accent);
  }
}

.auth__media {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #0a0a0c;
}

.auth__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 52rem) {
  .auth__shell {
    grid-template-columns: 1fr;
    height: auto;
    width: min(26rem, 100%);
  }

  .auth__media {
    display: none;
  }
}
