/* Страница входа: только токены и элементы site.css, ничего своего в палитре. */

.auth-page { background: var(--bg); }

.auth {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  padding-block: 72px 96px;
  gap: 24px;
}

.auth__box {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.auth__box h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 8px 0 12px;
}

.auth__lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 28px;
}

.auth__form { display: grid; gap: 18px; }

.auth__field { display: grid; gap: 8px; }

.auth__field-label {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
}

.auth__input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .15s ease;
}

.auth__input::placeholder { color: var(--muted); }

.auth__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.auth__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

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

.auth__check a { color: var(--accent); text-underline-offset: 3px; }

.auth__hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.auth__hint[hidden] { display: none; }

.auth__submit {
  justify-self: start;
  min-width: 180px;
}

.auth__submit:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.auth__waiting { display: grid; gap: 6px; margin-top: 8px; }

.auth__waiting[hidden] { display: none; }

.auth__waiting p { margin: 0; }

.auth__call a {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
}

.auth__error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 2px solid #9C3F27;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.auth__error[hidden] { display: none; }

.auth__notice {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--accent-2);
  background: var(--surface);
  font-size: 15px;
}

.auth__notice--error { border-left-color: #9C3F27; }

.auth__foot { text-align: center; }

@media (max-width: 560px) {
  .auth { padding-block: 40px 64px; }
  .auth__submit { justify-self: stretch; }
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--ink);
  filter: none;
}