html body .auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 52px);
  background:
    radial-gradient(circle at 12% 12%, rgba(210, 180, 111, .30), transparent 32%),
    radial-gradient(circle at 88% 88%, rgba(122, 62, 47, .13), transparent 34%),
    linear-gradient(145deg, #fffaf4 0%, #f4efe7 100%) !important;
}

.auth-shell {
  width: min(1080px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  overflow: hidden;
  border: 1px solid rgba(122, 62, 47, .14);
  border-radius: 32px;
  background: rgba(255, 252, 247, .96);
  box-shadow: 0 32px 90px rgba(58, 43, 36, .18);
}

html body .auth-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(42px, 6vw, 76px);
  overflow: hidden;
  background: #ffffff !important;
  color: #3a2b24;
}

.auth-brand::after {
  display: none;
}

.auth-brand__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand__tree {
  display: block;
  width: min(76%, 360px);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(122, 62, 47, .10));
}

html body .auth-card {
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 72px);
  border: 0 !important;
  border-radius: 0;
  background: rgba(255, 252, 247, .98) !important;
  box-shadow: none !important;
}

.auth-card__header {
  margin-bottom: 30px;
}

.auth-card__header h2 {
  margin: 0;
  color: #3a2b24;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.auth-card__header p {
  margin: 12px 0 0;
  color: #7a6a61;
  font-size: 16px;
  line-height: 1.55;
}

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

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

.auth-field label {
  color: #3a2b24;
  font-size: 14px;
  font-weight: 750;
}

html body .auth-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(122, 62, 47, .18) !important;
  border-radius: 14px;
  padding: 13px 15px;
  background: #fff !important;
  color: #2f241f !important;
  box-shadow: 0 8px 24px rgba(58, 43, 36, .04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

html body .auth-field input::placeholder {
  color: #a3948b;
}

html body .auth-field input:focus {
  outline: 0;
  border-color: #8b5e34 !important;
  box-shadow: 0 0 0 4px rgba(139, 94, 52, .13);
  transform: translateY(-1px);
}

.auth-actions {
  display: grid;
  margin-top: 4px;
}

html body .auth-button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #7a3e2f, #8b5e34) !important;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 16px 34px rgba(122, 62, 47, .22) !important;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

html body .auth-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(122, 62, 47, .28) !important;
}

html body .auth-button:disabled {
  cursor: wait;
  opacity: .72;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.auth-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #7a3e2f;
  font-size: 14px;
  font-weight: 750;
}

.auth-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-error {
  display: none;
  padding: 12px 14px;
  border: 1px solid #efb9b9;
  border-radius: 12px;
  background: #fff3f3;
  color: #a61b1b;
  font-size: 14px;
  line-height: 1.45;
}

.auth-error.is-visible {
  display: block;
}

.auth-error.is-info {
  border-color: rgba(139, 94, 52, .26);
  background: #fff9ef;
  color: #6e4527;
}

@media (max-width: 840px) {
  html body .auth-page {
    padding: 18px;
  }

  .auth-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  html body .auth-brand {
    min-height: 290px;
    align-items: center;
    justify-content: center;
    padding: 38px;
  }

  .auth-brand__tree {
    width: min(70%, 240px);
    max-height: 270px;
  }

  html body .auth-card {
    padding: 42px 38px 46px;
  }
}

@media (max-width: 520px) {
  html body .auth-page {
    align-items: start;
    padding: 12px;
  }

  .auth-shell {
    border-radius: 22px;
  }

  html body .auth-brand {
    min-height: 235px;
    padding: 28px;
  }

  .auth-brand__tree {
    width: min(68%, 190px);
    max-height: 215px;
  }

  html body .auth-card {
    padding: 34px 26px 38px;
  }

  .auth-card__header {
    margin-bottom: 24px;
  }

  .auth-card__header h2 {
    font-size: 31px;
  }

  .auth-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
