/* ─────────────────────────────────────────────────────────────
   CMEX.ai ADMIN — login.css
   Экран входа + восстановление пароля (auth_new.php layout).
   Перенос data/_disign/admin-login.jsx. Без сайдбара — отдельная
   полноэкранная карточка. Цвета — токены base.css.
   ───────────────────────────────────────────────────────────── */

.adl {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  position: relative;
  display: flex;
  flex-direction: column;
  /* glow ниже — 720px (значение из JSX). На экранах ýже 720px он вылезал бы за
     вьюпорт и давал горизонтальный скролл. Клипаем по X на корне — значение glow
     не меняем, просто не даём декору ломать мобилу. Адаптив остаётся flex+max-width. */
  overflow-x: hidden;
}

/* ambient accent glow сверху (JSX: radial accent@0x22, ширина 720, высота 480) */
.adl::before {
  content: '';
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.133), transparent 68%);
  pointer-events: none;
}

.asl-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

/* логотип на логине — размер 22 (JSX: ADLogo size=22) */
.asl-top .acp-logo { font-size: 22px; }

.asl-themebtn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  padding: 9px;
  border-radius: 10px;
}
.asl-themebtn:hover { color: var(--text); border-color: var(--border-strong); }

/* иконка темы: луна в светлой, солнце в тёмной */
.asl-theme-moon { display: inline-flex; }
.asl-theme-sun  { display: none; }
:root[data-theme="dark"] .asl-theme-moon { display: none; }
:root[data-theme="dark"] .asl-theme-sun  { display: inline-flex; }

.asl-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 60px;
}

.asl-card-wrap { width: 100%; max-width: 420px; }

.asl-lock {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 53, 0.2); /* JSX: accent@0x33 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.asl-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.asl-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.asl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.asl-field > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.asl-input-wrap { position: relative; }
.asl-input-wrap .asl-ico-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--text-dim);
}
.asl-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px 13px 42px;
  transition: border-color 120ms ease;
}
.asl-input.has-toggle { padding-right: 44px; }
.asl-input:focus { border-color: var(--accent); }

.asl-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px;
  display: flex;
}
.asl-eye:hover { color: var(--text-muted); }

.asl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.asl-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.asl-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.asl-check-box {
  width: 20px; height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: #fff;
  transition: all 120ms ease;
}
.asl-check-box svg { opacity: 0; }
.asl-check input:checked + .asl-check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.asl-check input:checked + .asl-check-box svg { opacity: 1; }
.asl-check-label { font-size: 13.5px; color: var(--text-muted); font-weight: 600; }

.asl-forgot {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 700;
}

.asl-submit {
  margin-top: 4px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: filter 120ms ease;
}
.asl-submit:hover { filter: brightness(1.05); }

.asl-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.asl-foot {
  position: relative;
  text-align: center;
  padding: 18px;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

/* ── ошибки/флеш ─────────────────────────────────────────────── */
.asl-errors {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}
.asl-errors ul { margin: 0; padding: 0; }
.asl-errors li { list-style: none; }

.asl-flash-ok {
  background: var(--ok-soft);
  border: 1px solid var(--ok);
  color: var(--ok);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}
