.field textarea.field__input {
  display: block;
  width: 100%;
  min-height: 8rem;
  padding: 0.7rem 0.9rem;
  resize: vertical;
}

.auth-page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 22rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(138, 106, 61, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 78%, rgba(163, 59, 42, 0.08), transparent 55%),
    linear-gradient(165deg, #e8e1d6 0%, var(--bg) 42%, #e2dbd0 100%);
  pointer-events: none;
  z-index: 0;
}

.auth-page .container {
  position: relative;
  z-index: 1;
  width: min(100% - var(--pad) * 2, var(--container));
}

.auth-page + .site-footer {
  margin-top: 0;
}

.auth-shell {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: stretch;
  width: 100%;
}

@media (min-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.5rem, 2vw, 2rem);
    min-height: min(36rem, calc(100vh - var(--header-h) - 16rem));
  }
}

.auth-aside,
.auth-panel {
  box-sizing: border-box;
  min-height: 0;
}

.auth-aside {
  display: flex;
}

.auth-aside__card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(28, 25, 22, 0.12);
  box-shadow: var(--glass-shadow);
  color: var(--white);
  isolation: isolate;
}

@media (min-width: 960px) {
  .auth-aside__card {
    min-height: 100%;
  }
}

.auth-aside__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  background: #2a2520;
}

.auth-aside__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
}

.auth-aside__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(28, 25, 22, 0.28) 0%,
      rgba(28, 25, 22, 0.12) 38%,
      rgba(28, 25, 22, 0.55) 68%,
      rgba(28, 25, 22, 0.88) 100%
    ),
    linear-gradient(90deg, rgba(28, 25, 22, 0.2) 0%, transparent 55%);
}

.auth-aside__content {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.auth-aside__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 250, 244, 0.72);
  margin: 0 0 0.85rem;
  line-height: 1.2;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 250, 244, 0.28);
}

.auth-aside__title {
  font-size: clamp(2rem, 3.6vw, 2.65rem);
  margin: 0 0 0.75rem;
  max-width: 11ch;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.auth-aside__text {
  color: rgba(255, 250, 244, 0.86);
  font-size: 0.92rem;
  max-width: 28rem;
  line-height: 1.65;
  margin: 0;
}

.auth-aside__perks {
  display: grid;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-aside__perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: rgba(255, 250, 244, 0.9);
  line-height: 1.35;
}

.auth-aside__perks li::before {
  content: '';
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #c4a574;
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.22);
}

.auth-panel {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-soft);
  box-shadow: var(--glass-shadow);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.75rem, 4vw, 3rem);
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: auth-fade 0.45s ease both;
  border-radius: var(--radius);
}

.auth-panel > * {
  width: 100%;
  max-width: 26rem;
}

@keyframes auth-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-panel__title {
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  margin: 0 0 0.35rem;
  line-height: 1.12;
}

.auth-panel__lead {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--glass-border-soft);
  background: rgba(255, 250, 244, 0.7);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 106, 61, 0.15);
}

.field__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .field__row {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.auth-link {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  font-size: 0.82rem;
}

.auth-link:hover {
  border-bottom-color: var(--accent);
}

.auth-switch {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

.auth-toast {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(138, 106, 61, 0.12);
  border: 1px solid rgba(138, 106, 61, 0.28);
  font-size: 0.85rem;
  color: var(--ink);
}

.auth-toast.is-visible {
  display: block;
  animation: auth-fade 0.35s ease both;
}
