/* BOZON.PRO — auth-only legacy styles
 * Загружается ТОЛЬКО на неавторизованных страницах (login, register, verify, reset).
 * Не должен влиять на остальной сайт — все правила scoped под .auth-card / .auth-page.
 *
 * Этот файл заменяет старый style.css в части auth.
 * Все остальные стили (.btn, .flash, .table, .module-card) — больше не нужны:
 * у нас есть components.css.
 */

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-top: 60px;
}

.auth-card h1 {
  font-family: 'Newsreader', 'Source Serif Pro', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 24px;
  text-align: center;
  color: var(--text);
  letter-spacing: -0.005em;
}

.auth-card .form-group {
  margin-bottom: 14px;
}

.auth-card .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text-mut);
}

.auth-card .form-group input,
.auth-card .form-group input[type="text"],
.auth-card .form-group input[type="email"],
.auth-card .form-group input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 120ms;
}

.auth-card .form-group input:focus {
  border-color: var(--accent);
}

.auth-card .field-error {
  color: var(--danger);
  font-size: 11.5px;
  margin-top: 4px;
}

/* Buttons inside auth-card — bridge legacy .btn-primary / .btn-full / .btn-sm
 * to the new design without touching the auth templates. */
.auth-card .btn,
.auth-card .btn-primary,
.auth-card .btn-full,
.auth-card .btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms, filter 120ms, border-color 120ms;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
}
.auth-card .btn:hover,
.auth-card .btn-primary:hover,
.auth-card .btn-full:hover {
  filter: brightness(0.95);
}
.auth-card .btn-full {
  width: 100%;
}
.auth-card .btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-mut);
}

.auth-link a {
  color: var(--accent);
  text-decoration: none;
}

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

.auth-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Auth-page container: centers the card under the bare shell from base.html. */
.root.root--bare .content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.root.root--bare .auth-card {
  width: 100%;
  max-width: 420px;
}
