/* Экраны входа в кабинеты. Плоско и без оформления: светлый фон, крупный
   логотип по центру, разрежённый заголовок и колонка полей - как на образце
   партнёрки R2D. Подключается последним и перебивает оснастку приложения. */
:root {
  --af-accent: #0a5cff;
  --af-accent-deep: #0040c8;
  --af-ink: #191c1f;
  --af-muted: #6b7280;
  --af-bg: #f8f9fa;
  --af-line: #d6dae2;
  --af-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- каркас ---------- */
.auth {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1fr; place-items: start center;
  padding: 0; background: var(--af-bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--af-ink);
}
.auth::before, .auth::after { content: none; }      /* никаких пятен на фоне */
.af-art, .auth-side { display: none !important; }   /* ни иконок, ни колонки справа */

.auth-form, .auth > .auth-card { width: 100%; padding: 0; }
.auth-card {
  width: min(100%, 620px); margin: 0 auto; padding: 72px 20px 80px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  text-align: center;
  animation: afIn .4s var(--af-ease) both;
}
@keyframes afIn { from { opacity: 0; transform: translateY(8px); } }
.auth-card.af-morph { overflow: hidden; }

/* ---------- логотип: крупный, по центру, на белом ---------- */
.auth-card .brand, .auth-card .af-mark {
  display: grid; justify-items: center; gap: 14px; margin: 0 0 10px;
  font-size: 26px; font-weight: 650; letter-spacing: -.035em; color: var(--af-ink); text-decoration: none;
}
.auth-card .brand .mark, .auth-card .af-mark .mark {
  width: 104px; height: 104px; border-radius: 0;
  background: url("/logo-mark.webp") center / contain no-repeat;
  animation: none;
}
.auth-card .brand .mark svg, .auth-card .brand .mark .i { display: none; }
.auth-card .brand small {
  display: block; margin-top: 2px; font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--af-muted);
}

/* ---------- заголовок ---------- */
.auth-card h1 {
  margin: 18px 0 6px; font-size: 32px; font-weight: 400;
  letter-spacing: .02em; text-transform: uppercase; color: var(--af-ink);
}
.auth-card .lead, .auth-card > p {
  max-width: 46ch; margin: 0 auto 34px; font-size: 14px; line-height: 1.6; color: var(--af-muted);
}

/* ---------- переключатель как текстовые ссылки ---------- */
.auth-card .seg, .auth-card .tabs-lite {
  display: flex; justify-content: center; gap: 26px; margin: 0 0 30px;
  padding: 0; border: 0; background: none;
}
.auth-card .seg button, .auth-card .tabs-lite button {
  position: relative; min-height: 0; padding: 2px 0; border: 0; border-radius: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--af-muted); cursor: pointer;
  box-shadow: none; animation: none;
  transition: color .2s var(--af-ease);
}
.auth-card .seg button::after, .auth-card .tabs-lite button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--af-accent); transform: scaleX(0);
  transition: transform .26s var(--af-ease);
}
.auth-card .seg button[aria-pressed="true"], .auth-card .tabs-lite button[aria-pressed="true"] {
  background: none; color: var(--af-accent); box-shadow: none;
}
.auth-card .seg button[aria-pressed="true"]::after,
.auth-card .tabs-lite button[aria-pressed="true"]::after { transform: scaleX(1); }

/* ---------- поля ---------- */
.auth-card form { display: grid; gap: 18px; text-align: left; }
.auth-card .lbl, .auth-card .field-label {
  display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--af-muted);
  animation: none;
}
.auth-card .field {
  width: 100%; min-height: 54px; padding: 0 14px;
  border: 1px solid var(--af-line); border-radius: 6px; background: #fff;
  font: inherit; font-size: 15px; color: var(--af-ink);
  transition: border-color .18s var(--af-ease), box-shadow .18s var(--af-ease);
}
.auth-card .field:focus {
  outline: 0; border-color: var(--af-accent); box-shadow: 0 0 0 2px rgba(10, 92, 255, .14);
}
.auth-card .hint, .auth-card .note { font-size: 12px; font-weight: 400; color: #9aa0ab; }

/* ---------- кнопка ---------- */
.auth-card .btn, .auth-card button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 30px; margin: 10px auto 0; border: 1px solid transparent; border-radius: 6px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--af-accent); color: #fff; width: auto;
  transition: background-color .2s var(--af-ease);
}
.auth-card button[type="submit"]::after { content: none; }   /* без блика */
.auth-card button[type="submit"]:hover, .auth-card .btn.primary:hover { background: var(--af-accent-deep); }
.auth-card .btn:not(.primary):not([type="submit"]) {
  background: #fff; color: var(--af-ink); border-color: var(--af-line);
}
.auth-card button[disabled] { opacity: .55; cursor: default; }
.auth-card .btn.full, .auth-card .full { width: auto; }

/* ---------- служебное ---------- */
.auth-card .or, .auth-card a[href*="demo"] { display: none !important; }
.auth-card .err, .auth-card .callout.bad {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0; padding: 10px 14px; border: 1px solid #f0cdd4; border-radius: 6px;
  background: #fef6f7; font-size: 13px; color: #b32e4c; animation: none;
}
.auth-lang { position: absolute; top: 20px; right: 24px; z-index: 2; }
.auth-lang .btn {
  min-height: 34px; margin: 0; padding: 0 12px; border: 0; border-radius: 6px;
  background: none; color: var(--af-muted); font-size: 13px; font-weight: 500;
}
.auth-lang .btn:hover { color: var(--af-ink); background: none; }
#top[hidden], .top[hidden] { display: none !important; }

/* ---------- экран после заявки ---------- */
.af-pending { width: min(100%, 560px); }
.af-pending .af-shield {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: #eaf1ff; color: var(--af-accent); animation: none;
}
.af-pending .af-shield svg { width: 30px; height: 30px; }
.af-pending h1 { font-size: 28px; }
.af-pending .af-mail {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 6px;
  background: #fff; border: 1px solid var(--af-line); font-size: 13px; font-weight: 500; color: var(--af-ink);
}
.af-steps { display: grid; gap: 14px; margin: 6px 0 30px; text-align: left; }
.af-steps li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  font-size: 14px; line-height: 1.55; color: var(--af-muted); list-style: none; animation: none;
}
.af-steps .n {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #eaf1ff; font-size: 11px; font-weight: 700; color: var(--af-accent-deep);
}
.af-steps b { color: var(--af-ink); font-weight: 600; }
.af-actions { display: grid; gap: 10px; justify-items: center; }
.af-tg {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 26px; border-radius: 6px; background: var(--af-accent); color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .2s var(--af-ease);
}
.af-tg:hover { background: var(--af-accent-deep); }
.af-tg svg { width: 18px; height: 18px; }
.af-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border: 0; background: none;
  font-size: 14px; font-weight: 500; color: var(--af-muted); text-decoration: none;
}
.af-back:hover { color: var(--af-ink); }
.af-back svg { width: 16px; height: 16px; flex: none; }

@media (max-width: 560px) {
  .auth-card { padding: 48px 18px 60px; }
  .auth-card .brand .mark, .auth-card .af-mark .mark { width: 84px; height: 84px; }
  .auth-card h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } }
