/* ============================================================
   auth.css — страницы /auth/* (register, login, verify, reset…)
   Переменные из styles.css: --bg, --bg2, --bg3, --fg, --fg-dim,
   --fg-muted, --accent, --accent-dim, --border, --r, --danger, --success
   ============================================================ */

/* Страница целиком — центрирование карточки */
.auth-page {
  min-height: calc(100vh - 80px); /* nav ≈ 80px */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

/* Карточка */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 40px 36px;
}

/* Логотип */
.auth-logo {
  display: block;
  margin-bottom: 28px;
}
.auth-logo a {
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--fg);
  text-decoration: none;
}
.auth-logo a span {
  color: var(--accent);
}

/* Заголовок */
.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Подзаголовок */
.auth-sub {
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 28px;
  line-height: 1.5;
}
.auth-sub strong {
  color: var(--fg);
  font-weight: 500;
}

/* Успешное сообщение */
.auth-success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--r);
  padding: 14px 16px;
  color: var(--success);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.auth-success a {
  color: var(--success);
  text-decoration: underline;
}

/* Блок ошибок */
.auth-errors {
  margin-bottom: 20px;
}
.auth-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--r);
  padding: 10px 14px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.auth-error:last-child { margin-bottom: 0; }

/* Форма */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Поле */
.auth-field {
  margin-bottom: 16px;
}
.auth-field:last-of-type {
  margin-bottom: 20px;
}

/* Строка label + ссылка «Забыли пароль?» */
.auth-field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.auth-field-row label {
  margin-bottom: 0;
}
.auth-forgot {
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color .15s;
}
.auth-forgot:hover {
  color: var(--accent);
}

/* Label */
.auth-field > label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  margin-bottom: 6px;
}

/* Input */
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--fg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.auth-field input[type="text"] {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  letter-spacing: 6px;
  text-align: center;
}
.auth-field input::placeholder {
  color: var(--fg-muted);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
}
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Кнопка отправки */
.auth-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--r);
  padding: 13px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  letter-spacing: .02em;
}
.auth-btn:hover { opacity: .88; }
.auth-btn:active { transform: scale(.98); }

/* Нижняя ссылка */
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
}
.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity .15s;
}
.auth-footer a:hover { opacity: .75; }

/* Адаптив */
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px 24px;
    border-radius: 12px;
  }
  .auth-title { font-size: 20px; }
}

/* ── HONEYPOT — невидимо для людей, видимо для ботов ── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  tab-index: -1;
}