/* Auth / register — спокійний преміум, паритет з вітриною. */
.auth-panel {
  width: min(100%, 26rem);
  margin: 1.5rem auto 2.5rem;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid color-mix(in srgb, var(--color-accent-start) 22%, transparent);
  box-shadow: var(--shadow-card);
}

.auth-panel__title {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
  line-height: 1.15;
  color: var(--color-ink);
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.auth-form__field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
}

.auth-form__field input,
.auth-form__field select,
.auth-form__field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  font-size: 16px;
  border: 1px solid color-mix(in srgb, var(--color-ink) 16%, transparent);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-ink);
  -webkit-appearance: none;
  appearance: none;
}

.auth-form__field input:focus,
.auth-form__field select:focus,
.auth-form__field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-accent-start) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent-start) 16%, transparent);
  background: #fff;
}

.auth-form__field .errorlist,
.auth-form .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-danger);
  font-size: 0.85rem;
}

.auth-form__submit {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.55rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--btn-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(185, 28, 71, 0.45);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(185, 28, 71, 0.5);
}

.auth-panel__alt {
  margin: 1.35rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  text-align: center;
}

.auth-panel__hint {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.auth-panel__alt a {
  color: var(--color-accent-solid);
  font-weight: 560;
  text-decoration: none;
}

.auth-panel__alt a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .auth-form__submit {
    transition: none;
  }

  .auth-form__submit:hover {
    transform: none;
  }
}
