/**
 * Путь: /styles/account-auth.css
 * Страницы авторизации (Вариант B): лёгкая автономная страница с мини-шапкой
 * Единый стиль для /account/login.php и /account/register.php
 * Зависимости: токены из styles/variables.css (подключается через assets/css/bundle.css)
 */

/* ============================================================
   КАРКАС СТРАНИЦЫ + МНОГОСЛОЙНЫЙ ФОН
   ============================================================ */
.auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-main, 'Inter', sans-serif);
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 55% 42% at 88% -6%, rgba(0, 243, 255, 0.10), transparent 62%),
    radial-gradient(ellipse 52% 44% at 6% 106%, rgba(108, 99, 255, 0.13), transparent 62%),
    radial-gradient(ellipse 38% 30% at 55% 118%, rgba(255, 101, 132, 0.06), transparent 60%),
    var(--bg-primary, #1e1e3a);
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Кибер-сетка с радиальной маской */
.auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 243, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 92% 72% at 50% 28%, #000 28%, transparent 76%);
  mask-image: radial-gradient(ellipse 92% 72% at 50% 28%, #000 28%, transparent 76%);
}

/* Медленная сканирующая полоса */
.auth-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(0, 243, 255, 0.045), transparent);
  animation: authScan 11s linear infinite;
}

@keyframes authScan {
  from { top: -18%; }
  to   { top: 112%; }
}

.auth-shell {
  width: 100%;
  max-width: var(--container-max, 1440px);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  box-sizing: border-box;
}

/* ============================================================
   МИНИ-ШАПКА: логотип + навигация + переключатель темы
   ============================================================ */
.auth-header {
  position: relative;
  z-index: 2;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 243, 255, 0.08);
}

.auth-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.auth-logo__iw {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(0, 243, 255, 0.25);
  background: rgba(0, 243, 255, 0.06);
  box-shadow: var(--glow-cyan, 0 0 12px rgba(0, 243, 255, 0.1));
  transition: transform 0.25s var(--ease-spring, ease), box-shadow 0.25s ease;
}

.auth-logo:hover .auth-logo__iw {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: var(--glow-cyan-h, 0 0 20px rgba(0, 243, 255, 0.2));
}

.auth-logo__iw img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.auth-logo__text { min-width: 0; }

.auth-logo__text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: var(--text-primary);
  white-space: nowrap;
}

.auth-logo__text h1 em {
  font-style: normal;
  color: var(--neon-cyan, #00f3ff);
}

.auth-logo__tagline {
  margin: 2px 0 0;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.auth-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.auth-header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(240, 240, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth, ease);
}

.auth-header__link i { font-size: 12px; transition: transform 0.25s ease; }

.auth-header__link:hover {
  color: var(--neon-cyan, #00f3ff);
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: var(--glow-cyan, 0 0 12px rgba(0, 243, 255, 0.12));
}

.auth-header__link:hover i { transform: translateX(-3px); }

/* Переключатель темы */
.auth-theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(0, 243, 255, 0.22);
  background: rgba(0, 243, 255, 0.05);
  color: var(--neon-cyan, #00f3ff);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring, ease);
}

.auth-theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-spring, ease);
}

.auth-theme-toggle:hover {
  box-shadow: var(--glow-cyan-h, 0 0 20px rgba(0, 243, 255, 0.2));
  transform: translateY(-1px);
}

.auth-theme-toggle:hover svg { transform: rotate(24deg) scale(1.12); }

.auth-theme-toggle:active svg { transform: scale(0.9); }

.auth-theme-toggle:focus-visible {
  outline: 2px solid var(--neon-cyan, #00f3ff);
  outline-offset: 2px;
}

.auth-theme-toggle .ti--moon { display: none; }

body.light-theme .auth-theme-toggle .ti--sun { display: none; }
body.light-theme .auth-theme-toggle .ti--moon { display: block; }

/* ============================================================
   ЦЕНТРАЛЬНАЯ ЗОНА + КАРТОЧКА
   ============================================================ */
.auth-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 20px 64px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 46px 40px 34px;
  border-radius: var(--radius-xl, 24px);
  border: 1px solid rgba(0, 243, 255, 0.14);
  background: linear-gradient(165deg,
    var(--bg-elevated, #383870) 0%,
    var(--bg-card, #2e2e5a) 46%,
    var(--bg-secondary, #252550) 100%);
box-shadow: var(--shadow-elevated, 0 8px 32px rgba(0, 0, 0, 0.3)),
0 0 44px rgba(0, 243, 255, 0.05);
  animation: authRise 0.6s var(--ease-spring, ease) both;
  transition: border-color 0.3s ease;
}

.auth-card:hover { border-color: rgba(0, 243, 255, 0.24); }

.auth-card--register { max-width: 484px; }

/* Неоновая линия сверху карточки */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg,
    var(--neon-cyan, #00f3ff),
    var(--primary, #6C63FF) 55%,
    var(--secondary, #FF6584));
  box-shadow: 0 2px 14px rgba(0, 243, 255, 0.35);
}

/* Мягкое внутреннее свечение сверху */
.auth-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  border-radius: var(--radius-xl, 24px) var(--radius-xl, 24px) 0 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0, 243, 255, 0.07), transparent 70%);
  pointer-events: none;
}

@keyframes authRise {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Бейдж-статус над карточкой */
.auth-card__badge {
  position: absolute;
  top: -13px;
  left: 30px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(0, 243, 255, 0.32);
  background: var(--bg-secondary, #252550);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), var(--glow-cyan, 0 0 12px rgba(0, 243, 255, 0.1));
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  animation: authBadgePop 0.45s 0.25s var(--ease-spring, ease) both;
}

@keyframes authBadgePop {
  from { opacity: 0; transform: translateY(6px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green, #00ff88);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
  animation: authDotPulse 2s ease-in-out infinite;
}

@keyframes authDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.78); }
}

/* Заголовок карточки */
.auth-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 6px 0 8px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}

.auth-title__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, var(--primary, #6C63FF), var(--accent, #00D9FF));
  color: #fff;
  font-size: 17px;
  box-shadow: 0 6px 18px rgba(0, 217, 255, 0.3);
}

.auth-subtitle {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ============================================================
   АЛЕРТЫ: ошибка / успех / отладка
   ============================================================ */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--radius-md, 12px);
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  animation: authRise 0.4s ease both;
}

.auth-alert > i {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 15px;
}

.auth-alert--error {
  background: rgba(255, 101, 132, 0.09);
  border: 1px solid rgba(255, 101, 132, 0.32);
  border-left: 3px solid var(--secondary, #FF6584);
  color: #ff9db1;
}

.auth-alert--error > i { color: var(--secondary, #FF6584); }

.auth-alert--error ul { margin: 0; padding-left: 17px; }
.auth-alert--error li { margin: 3px 0; }
.auth-alert--error a { color: var(--neon-cyan, #00f3ff); font-weight: 600; }

.auth-alert--success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px;
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-left: 3px solid var(--neon-green, #00ff88);
  color: #93ffd0;
}

.auth-alert--success > i {
  font-size: 30px;
  margin: 0  10px;
  color: var(--neon-green, #00ff88);
  text-shadow: 0 0 16px rgba(0, 255, 136, 0.5);
  animation: authDotPulse 2.4s ease-in-out infinite;
}

.auth-alert--success strong { color: #fff; }

.auth-debug {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-size: 12px;
  line-height: 1.6;
  color: var(--gold, #FFD700);
  word-break: break-all;
  text-align: left;
}

.auth-debug strong { display: block; margin-bottom: 6px; }
.auth-debug a { color: var(--gold, #FFD700); text-decoration: underline; }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.auth-field { margin-bottom: 19px; text-align: left; }

.auth-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.auth-label > i {
  color: var(--neon-cyan, #00f3ff);
  font-size: 12px;
  opacity: 0.85;
}

.auth-label__opt {
  margin-left: auto;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1.5px solid rgba(0, 243, 255, 0.14);
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input::placeholder { color: var(--text-muted); }

.auth-input:focus {
  outline: none;
  border-color: var(--neon-cyan, #00f3ff);
  background: rgba(0, 243, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.14), var(--glow-cyan, 0 0 12px rgba(0, 243, 255, 0.1));
}

.auth-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.auth-hint i { color: var(--neon-cyan, #00f3ff); opacity: 0.6; font-size: 11px; }

/* Поле с кнопкой показа пароля */
.auth-pass-wrap { position: relative; }

.auth-pass-wrap .auth-input { padding-right: 50px; }

.auth-pass-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.auth-pass-toggle:hover {
  color: var(--neon-cyan, #00f3ff);
  background: rgba(0, 243, 255, 0.08);
}

.auth-pass-toggle:active { transform: translateY(-50%) scale(0.88); }

.auth-pass-toggle:focus-visible {
  outline: 2px solid var(--neon-cyan, #00f3ff);
  outline-offset: 2px;
}

.auth-pass-toggle.is-visible { color: var(--neon-cyan, #00f3ff); }

/* Кнопка отправки */
.auth-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, var(--primary, #6C63FF), var(--accent, #00D9FF));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 217, 255, 0.22);
  transition: transform 0.2s var(--ease-spring, ease), box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-170%) skewX(-14deg);
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 217, 255, 0.38);
  filter: brightness(1.06);
}

.auth-submit:hover::after { animation: authSheen 0.8s var(--ease-smooth, ease); }

.auth-submit:active { transform: translateY(0) scale(0.985); }

.auth-submit:focus-visible {
  outline: 2px solid var(--neon-cyan, #00f3ff);
  outline-offset: 3px;
}

@keyframes authSheen {
  to { transform: translateX(340%) skewX(-14deg); }
}

/* ============================================================
   ЧЕКБОКСЫ СОГЛАСИЙ (регистрация)
   ============================================================ */
.auth-consent { margin: 4px 0 18px; text-align: left; }

.auth-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-consent__label:last-child { margin-bottom: 0; }

.auth-consent__label:hover { color: var(--text-primary); }

.auth-consent__label input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--neon-cyan, #00f3ff);
  cursor: pointer;
}

.auth-consent__label a {
  color: var(--neon-cyan, #00f3ff);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.auth-consent__label a:hover { border-bottom-color: rgba(0, 243, 255, 0.5); }

.auth-consent__star {
  color: var(--secondary, #FF6584);
  font-weight: 700;
  margin-left: 2px;
}

.auth-consent.has-error .auth-consent__label { color: #ff9db1; }

.auth-consent.has-error .auth-consent__label input {
  outline: 2px solid rgba(255, 101, 132, 0.55);
  border-radius: 4px;
}

/* ============================================================
   ССЫЛКИ ВНИЗУ КАРТОЧКИ + ПОДВАЛ СТРАНИЦЫ
   ============================================================ */
.auth-links {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(240, 240, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.auth-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-cyan, #00f3ff);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring, ease), text-shadow 0.2s ease;
}

.auth-links a i { font-size: 12px; transition: transform 0.2s ease; }

.auth-links a:hover {
  text-shadow: 0 0 12px rgba(0, 243, 255, 0.55);
  transform: translateX(3px);
}

.auth-links a:hover i { transform: translateX(-2px); }

.auth-footer {
  position: relative;
  z-index: 1;
  padding: 18px 0 24px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-footer span { color: var(--neon-cyan, #00f3ff); opacity: 0.7; }

/* ============================================================
   СВЕТЛАЯ ТЕМА
   ============================================================ */
body.light-theme .auth-page {
  background:
    radial-gradient(ellipse 55% 42% at 88% -6%, rgba(3, 105, 161, 0.09), transparent 62%),
    radial-gradient(ellipse 52% 44% at 6% 106%, rgba(139, 92, 246, 0.09), transparent 62%),
    var(--bg-primary, #f4f7ff);
}

body.light-theme .auth-bg::before {
  background-image:
    linear-gradient(rgba(23, 24, 47, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 47, 0.045) 1px, transparent 1px);
}

body.light-theme .auth-bg::after {
  background: linear-gradient(180deg, transparent, rgba(3, 105, 161, 0.05), transparent);
}

body.light-theme .auth-header { border-bottom-color: rgba(23, 24, 47, 0.08); }

body.light-theme .auth-logo__iw {
  border-color: rgba(3, 105, 161, 0.25);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.light-theme .auth-logo__text h1 em { color: #0369a1; }

body.light-theme .auth-header__link {
  border-color: rgba(23, 24, 47, 0.14);
  background: #fff;
  color: #4a5568;
}

body.light-theme .auth-header__link:hover {
  color: #0369a1;
  border-color: rgba(3, 105, 161, 0.4);
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.12);
}

body.light-theme .auth-theme-toggle {
  color: #0369a1;
  border-color: rgba(3, 105, 161, 0.25);
  background: #fff;
}

body.light-theme .auth-card {
  background: linear-gradient(165deg, #ffffff 0%, #fbfcff 55%, #f3f6ff 100%);
  border-color: #dbe3f3;
  box-shadow: 0 20px 48px rgba(78, 91, 140, 0.16);
}

body.light-theme .auth-card:hover { border-color: #b9c8e6; }

body.light-theme .auth-card::after {
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(3, 105, 161, 0.05), transparent 70%);
}

body.light-theme .auth-card__badge {
  background: #fff;
  border-color: #cbd7ee;
  color: #475568;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-theme .auth-title { color: #17182f; }

body.light-theme .auth-label { color: #4a5568; }
body.light-theme .auth-label > i { color: #0369a1; }
body.light-theme .auth-label__opt { color: #94a3b8; }

body.light-theme .auth-input {
  background: #fff;
  border-color: #d7deee;
  color: #17182f;
}

body.light-theme .auth-input:focus {
  border-color: #0369a1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.16);
}

body.light-theme .auth-pass-toggle { color: #94a3b8; }

body.light-theme .auth-pass-toggle:hover,
body.light-theme .auth-pass-toggle.is-visible {
  color: #0369a1;
  background: rgba(3, 105, 161, 0.08);
}

body.light-theme .auth-alert--error {
  background: #fff5f7;
  border-color: #fed7de;
  border-left-color: #e53e63;
  color: #c53050;
}

body.light-theme .auth-alert--error > i { color: #e53e63; }
body.light-theme .auth-alert--error a { color: #0369a1; }

body.light-theme .auth-alert--success {
  background: #f0fff7;
  border-color: #c6f6dc;
  border-left-color: #22c55e;
  color: #22543d;
}

body.light-theme .auth-alert--success > i { color: #16a34a; text-shadow: none; }
body.light-theme .auth-alert--success strong { color: #14532d; }

body.light-theme .auth-debug {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

body.light-theme .auth-debug a { color: #b45309; }

body.light-theme .auth-consent__label { color: #4a5568; }
body.light-theme .auth-consent__label:hover { color: #17182f; }
body.light-theme .auth-consent__label a { color: #0369a1; }
body.light-theme .auth-consent__star { color: #e53e63; }
body.light-theme .auth-consent.has-error .auth-consent__label { color: #c53050; }

body.light-theme .auth-links { border-top-color: rgba(23, 24, 47, 0.08); }
body.light-theme .auth-links a { color: #0369a1; }
body.light-theme .auth-links a:hover { text-shadow: none; opacity: 0.75; }

body.light-theme .auth-footer span { color: #0369a1; }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 640px) {
  .auth-main { padding: 40px 16px 52px; }

  .auth-card { padding: 38px 24px 28px; }

  .auth-title { font-size: 21px; }

  .auth-header__link { padding: 9px 12px; }
  .auth-header__link .auth-header__link-text { display: none; }

  .auth-logo__tagline { display: none; }
}

@media (max-width: 400px) {
  .auth-card { padding: 34px 18px 24px; }

  .auth-card__badge { left: 18px; font-size: 9px; letter-spacing: 1.4px; }

  .auth-logo__text h1 { font-size: 15px; }

  .auth-title__icon { width: 36px; height: 36px; font-size: 15px; }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .auth-bg::after,
  .auth-card,
  .auth-card__badge,
  .auth-card__dot,
  .auth-alert--success > i {
    animation: none !important;
  }

  .auth-submit:hover::after { animation: none; }
}