.auth-page {
  min-height: calc(100dvh - 82px);
  background:
    radial-gradient(circle at 80% 10%, rgba(197, 161, 110, .18), transparent 34%),
    linear-gradient(135deg, #fbf8f2 0%, #efe3d2 100%);
  color: var(--graphite);
  overflow: hidden;
}

.auth-page * {
  box-sizing: border-box;
}

.auth-hero {
  position: relative;
  padding: 64px 0 84px;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(16, 16, 16, .08);
  pointer-events: none;
}

.auth-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 70px;
  align-items: center;
}

.auth-hero__content h1 {
  max-width: 760px;
  margin: 0;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .92;
  font-weight: 400;
  letter-spacing: -.045em;
}

.auth-hero__content p {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--graphite);
  font-size: 17px;
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 760px;
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.auth-benefits strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.auth-benefits span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-card-wrap {
  position: relative;
}

.auth-card-wrap::before {
  content: "";
  position: absolute;
  inset: -34px 36px 34px -36px;
  border: 1px solid rgba(16, 16, 16, .08);
  border-radius: 36px;
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  padding: 34px;
  border: 1px solid rgba(16, 16, 16, .1);
  border-radius: 32px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 28px 80px rgba(16, 16, 16, .1);
  backdrop-filter: blur(18px);
}

.auth-card h2 {
  margin: 0 0 26px;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.04em;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span,
.auth-check span {
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  color: var(--black);
  font: inherit;
  outline: none;
  transition: .2s ease;
}

.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 161, 110, .14);
}

.auth-field--password {
  position: relative;
}

.auth-field--password input {
  padding-right: 96px;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-form__row a,
.auth-switch a {
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.auth-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--black);
}

.auth-check span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-divider {
  position: relative;
  margin: 24px 0 18px;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 0 14px;
  background: rgba(255, 255, 255, .84);
  color: var(--muted);
  font-size: 12px;
}

.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-social__btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: .22s ease;
}

.auth-social__btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.auth-social__btn span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  line-height: 1;
}

.auth-social__btn--yandex span { background: #fc3f1d; }
.auth-social__btn--vk span { background: #0077ff; }
.auth-social__btn--tg span { background: #229ed9; }
.auth-social__btn--google span { background: #fff; color: var(--black); border: 1px solid var(--border); }

.auth-switch,
.auth-hint {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.auth-hint {
  padding: 16px;
  border: 1px solid rgba(197, 161, 110, .32);
  border-radius: 18px;
  background: rgba(197, 161, 110, .1);
  text-align: left;
}

.auth-strength {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: -6px;
}

.auth-strength span {
  height: 4px;
  border-radius: 999px;
  background: rgba(16, 16, 16, .12);
  transition: .22s ease;
}

.auth-strength.is-weak span:nth-child(1),
.auth-strength.is-medium span:nth-child(1),
.auth-strength.is-medium span:nth-child(2),
.auth-strength.is-strong span {
  background: var(--gold);
}

@media (max-width: 1100px) {
  .auth-hero__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .auth-card-wrap {
    max-width: 620px;
  }
}

@media (max-width: 768px) {
  .auth-page {
    min-height: calc(100dvh - 72px);
  }

  .auth-hero {
    padding: 34px 0 78px;
  }

  .auth-hero::before {
    inset: 12px;
  }

  .auth-hero__grid {
    gap: 28px;
  }

  .auth-hero__content h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .auth-hero__content p {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 34px;
    padding-top: 22px;
  }

  .auth-card-wrap::before {
    display: none;
  }

  .auth-card {
    padding: 22px;
    border-radius: 26px;
  }

  .auth-form__grid,
  .auth-social {
    grid-template-columns: 1fr;
  }

  .auth-form__row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
