.auth {
  width: 280px;
  margin: 0 auto;
  padding-top: 60px;
  text-align: center;
}

.auth__title {
  margin-bottom: 55px;
  font-size: 21px;
  font-weight: normal;
  color: var(--color-text);
}

.auth__form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth__field {
  width: 100%;
  margin-bottom: 25px;
}

.auth__input {
  width: 100%;
  padding: 0 0 10px;
  border: none;
  border-bottom: 1px solid #3f3f3f;
  background: transparent;
  font-size: 14px;
  color: var(--color-text);
}

.auth__input:focus {
  outline: none;
  border-bottom-color: var(--color-blue-light);
}

.auth__input::placeholder {
  color: var(--color-placeholder);
}

.auth__button {
  margin-bottom: 20px;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  background-color: var(--color-blue);
  font-size: 12px;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}

.auth__button:hover {
  opacity: 0.85;
}

.auth__links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.auth__link {
  position: relative;
  display: inline-block;
  font-size: 12px;
  color: var(--color-text);
}

.auth__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: width var(--transition);
}

.auth__link:hover::after {
  width: 100%;
}

@media (max-width: 480px) {
  .auth {
    width: calc(100% - 30px);
    max-width: 280px;
  }

  .auth__title {
    margin-bottom: 40px;
    font-size: 20px;
  }

  .auth__field {
    margin-bottom: 22px;
  }

  .auth__input {
    font-size: 13px;
  }
}

@media (max-width: 320px) {
  .auth {
    width: calc(100% - 24px);
    padding-top: 40px;
  }

  .auth__title {
    margin-bottom: 32px;
    font-size: 19px;
  }

  .auth__field {
    margin-bottom: 20px;
  }

  .auth__button {
    margin-bottom: 18px;
  }

  .auth__links {
    gap: 10px;
  }

  .auth__link {
    font-size: 11px;
  }
}