@import url(reset.css);
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Центрирование формы */
.auth-center {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Карточка */
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 6px 32px 0 rgba(54, 122, 255, 0.08),
    0 1.5px 12px 0 rgba(0, 0, 0, 0.05);
  padding: 38px 34px 30px 34px;
  width: 360px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.7s;
  border: 1px solid #f2f3f7;
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 12px;
}

.auth-header .auth-icon {
  font-size: 2.1rem;
  display: block;
  margin-bottom: 5px;
}

.auth-header h2 {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: black;
  margin: 0;
}

.auth-field label {
  display: block;
  font-size: 0.99rem;
  margin-bottom: 4px;
  color: black;
  opacity: 0.7;
  cursor: default;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.auth-field input[type="text"] {
  width: 100%;
  padding: 13px 13px;
  border-radius: 8px;
  border: 1.5px solid #d4dcee;
  background: #f7fafd;
  font-size: 1.04rem;
  outline: none;
  transition:
    border 0.22s,
    box-shadow 0.22s;
  box-shadow: 0 1px 4px 0 rgba(54, 122, 255, 0.03);
}
.auth-field input[type="text"]:focus {
  border-color: #467bfa;
  box-shadow: 0 2px 12px 0 rgba(54, 122, 255, 0.09);
  background: #fff;
}

.auth-policy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.95rem;
}
.auth-policy input[type="checkbox"] {
  accent-color: #467bfa;
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.auth-policy a {
  color: #3057b5;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.14s;
}
.auth-policy a:hover {
  color: #467bfa;
}

.auth-btn {
  background: linear-gradient(90deg, #467bfa 70%, #6da5fa 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 14px 0;
  margin-top: 6px;
  cursor: pointer;
  transition:
    background 1s,
    box-shadow 1s,
    transform 0.5s;
  box-shadow: 0 2px 12px 0 rgba(54, 122, 255, 0.07);
}
.auth-btn:hover,
.auth-btn:focus {
  background: linear-gradient(90deg, #3057b5 0%, #467bfa 100%);
  box-shadow: 0 4px 18px 0 rgba(54, 122, 255, 0.11);
  transform: translateY(-1px) scale(1.02);
}

.auth-error {
  color: #e44343;
  background: #ffeaea;
  border: 1px solid #ffc8c8;
  border-radius: 5px;
  padding: 8px 11px;
  margin-top: 7px;
  text-align: center;
  font-size: 0.99rem;
  animation: shake 0.17s 1;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 500px) {
  .auth-card {
    padding: 18px 5vw 24px 5vw;
    border-radius: 14px;
    width: 98vw;
  }
}
