main {
  min-height: calc(100vh - 260px);
}

.auth {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.auth__form {
  width: 420px;
}

.auth__title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 20px;
  font-weight: 500;
}

.auth__desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.45;
  text-align: center;
}

.auth__label {
  display: block;
  font-size: 18px;
  margin-bottom: 25px;
}

.auth__label span {
  color: red;
}

.auth__label input {
  margin-top: 8px;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  border: 1px solid #777;
  outline: none;
  background: white;
}

.auth__label input:focus {
  border-color: #1c87b8;
}

.password__wrapper {
  position: relative;
}

.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-25%);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.toggle-pass img {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: 0.2s;
}

.toggle-pass:hover img {
  opacity: 1;
}

.auth__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0;
}

.btn-login {
  background: #1c87b8;
  color: white;
  border: none;
  padding: 12px 36px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  transition: .2s;
}

.btn-login:hover {
  background: #166b92;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.remember input {
  width: 20px;
  height: 20px;
}

.auth__links {
  font-size: 16px;
  text-align: left;
  margin-top: 10px;
}

.auth__links a {
  color: #1c87b8;
  text-decoration: none;
  margin-right: 6px;
}

.auth__links a:hover {
  text-decoration: underline;
}

.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 28px;
  font-size: 16px;
}

.agree input {
  width: 18px;
  height: 18px;
}

.agree a {
  color: #1c87b8;
  text-decoration: none;
}

.auth__bottom {
  margin-top: 18px;
  text-align: center;
  color: #000000;
}

.auth__bottom a {
  color: #1c87b8;
  text-decoration: none;
}

.auth__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0;
}

.auth__actions--center {
  justify-content: center;
}

.password-rules {
    list-style: none;
    padding: 6px 0 0;
    margin: 0;
    font-size: 12px;
    color: #999;
}

.password-rules li {
    padding: 2px 0 2px 18px;
    position: relative;
    transition: color 0.2s;
}

.password-rules li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #e53935;
}

.password-rules li.valid {
    color: #2e7d32;
}

.password-rules li.valid::before {
    content: "✓";
    color: #2e7d32;
}

/* =========================
   1200px
========================= */
@media (max-width: 1200px) {

  .auth__form {
    width: 380px;
  }

}


/* =========================
   992px — планшет
========================= */
@media (max-width: 992px) {

  main {
    min-height: auto;
  }

  .auth {
    min-height: auto;
    padding: 40px 20px;
  }

  .auth__form {
    width: 100%;
    max-width: 420px;
  }

  .auth__title {
    font-size: 30px;
  }

}


/* =========================
   768px — мобильный
========================= */
@media (max-width: 768px) {

  .auth {
    padding: 40px 15px;
    margin-bottom: 30px;
  }

  .auth__title {
    font-size: 26px;
  }

  .auth__desc {
    font-size: 14px;
  }

  .auth__label {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .auth__label input {
    height: 46px;
    font-size: 15px;
  }

  /* Кнопка и remember в колонку */
  .auth__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .remember {
    justify-content: center;
    font-size: 16px;
  }

  .auth__links {
    text-align: center;
    font-size: 14px;
  }

  .agree {
    font-size: 14px;
  }

}


/* =========================
   480px — маленькие телефоны
========================= */
@media (max-width: 480px) {

  .auth {
    padding: 30px 12px;
  }

  .auth__title {
    font-size: 22px;
  }

  .auth__desc {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .auth__label {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .auth__label input {
    height: 44px;
    padding: 0 12px;
  }

  .toggle-pass {
    right: 10px;
  }

  .toggle-pass img {
    width: 20px;
    height: 20px;
  }

  .btn-login {
    font-size: 15px;
    padding: 12px;
  }

  .remember {
    font-size: 14px;
  }

  .agree {
    font-size: 13px;
    gap: 8px;
  }

  .password-rules {
    font-size: 11px;
  }

}