.auth-screen {
  overflow-y: auto;
  align-items: start;
  justify-items: center;
  place-items: start center;
  padding: clamp(14px, 2vh, 24px);
}

.auth-brand {
  top: clamp(16px, 3vh, 28px);
  left: clamp(18px, 3vw, 35px);
}

.auth-card {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  margin: clamp(72px, 10vh, 98px) auto 18px;
  padding: clamp(24px, 4vh, 34px);
  scrollbar-width: thin;
}

.auth-card h1 {
  font-size: clamp(30px, 4.5vh, 42px);
  line-height: 1.15;
  margin-top: 8px;
}

.auth-card p {
  margin: 14px 0 20px;
}

.auth-card form {
  margin-top: 18px;
  gap: 8px;
}

.auth-card label {
  margin-top: 6px;
}

.auth-card input {
  padding-block: 12px;
}

.auth-submit {
  height: 44px;
  margin-top: 8px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0 6px;
}

.auth-links .text-btn {
  white-space: normal;
  line-height: 1.15;
  text-align: center;
}

@media (max-height: 760px) {
  .auth-card {
    max-height: calc(100vh - 66px);
    margin-top: 58px;
    padding: 22px 28px;
  }

  .auth-card h1 {
    font-size: clamp(28px, 4.6vh, 36px);
  }

  .auth-card p {
    margin: 10px 0 14px;
  }

  .auth-card form {
    margin-top: 12px;
  }
}

@media (max-width: 680px) {
  .auth-brand {
    position: static;
    justify-self: start;
    margin: 4px 0 10px;
  }

  .auth-card {
    width: 100%;
    max-height: none;
    margin: 0 auto 16px;
    border-radius: 20px;
    padding: 22px;
  }
}
