/* 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: 60px auto 0;
  max-width: 460px;
}

.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:not([type="checkbox"]),
.auth-card .form-group input[type="text"],
.auth-card .form-group input[type="email"],
.auth-card .form-group input[type="tel"],
.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);
}

/* Consent row: small native checkbox to the LEFT of the consent text, ochre
 * accent (NOT browser-default blue). The :not([type="checkbox"]) rule above
 * already keeps the checkbox out of the full-width input box styling. */
.auth-card .form-group--checkbox .auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.auth-card .form-group--checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  accent-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;
}

/* Secondary (ghost) action — e.g. «Продолжить без компании» on /onboarding.
 * Declared AFTER the .btn block so it overrides the ochre fill by source order. */
.auth-card .btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.auth-card .btn-secondary:hover {
  background: var(--bg-sunken);
  filter: none;
}

/* «или» divider between the two onboarding actions. */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-mut);
  font-size: 12.5px;
  margin: 16px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.auth-divider span {
  padding: 0 12px;
}

.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;
}
