/* Вход и регистрация (спецификация 042, вариант А владельца 15.10.2026): светлый фон, одна белая карточка,
   вкладки «Вход / Регистрация», Manrope, кнопки и поля «таблеткой». */
:root { --a-blue: #1f5fd6; --a-blue-d: #174bb0; --a-ink: #132036; --a-text: #3c4a60; --a-muted: #5b6b82;
  --a-line: #cdd7e6; --a-bg1: #f4f7fc; --a-bg2: #e3ebf7; --a-red: #c0392b; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.auth { font-family: Manrope, system-ui, -apple-system, sans-serif; color: var(--a-ink);
  background: radial-gradient(1200px 600px at 10% -10%, #dfe9fb 0%, transparent 60%),
              linear-gradient(160deg, var(--a-bg1), var(--a-bg2)); background-attachment: fixed; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 26px; padding: 30px 30px 26px;
  box-shadow: 0 24px 60px rgba(9, 30, 80, .14), 0 2px 6px rgba(9, 30, 80, .05); display: flex; flex-direction: column; gap: 16px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font: 800 22px Manrope, sans-serif; color: var(--a-ink); text-decoration: none; }
.auth-brand img { width: 38px; height: 38px; }
.auth-tabs { display: flex; background: #eef2f8; border-radius: 999px; padding: 4px; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px 10px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: var(--a-muted); text-decoration: none; transition: background .15s, color .15s; }
.auth-tabs a.on { background: #fff; color: var(--a-ink); box-shadow: 0 2px 8px rgba(9, 30, 80, .1); }
.auth-tabs a:not(.on):hover { color: var(--a-ink); }
.auth-card h1 { font-size: 21px; margin: 0; }
.auth-sub { color: var(--a-muted); font-size: 13.5px; margin: -6px 0 0; line-height: 1.45; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.a-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--a-text); }
.a-inp-wrap { position: relative; }
.a-inp { width: 100%; height: 48px; border: 1px solid var(--a-line); border-radius: 999px; padding: 0 18px;
  font: 500 15.5px Manrope, sans-serif; color: var(--a-ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.a-inp:focus { border-color: var(--a-blue); box-shadow: 0 0 0 3px #dbe6fb; }
.a-inp[aria-invalid="true"] { border-color: var(--a-red); }
.a-inp-wrap .a-inp { padding-right: 96px; }
.a-show { position: absolute; right: 6px; top: 6px; height: 36px; border: 0; background: none; color: var(--a-blue);
  font: 700 12.5px Manrope, sans-serif; padding: 0 12px; border-radius: 999px; cursor: pointer; }
.a-show:hover { background: #eef3fd; }
.a-err { color: var(--a-red); font-size: 12.5px; font-weight: 600; margin: -2px 0 0 16px; }
.a-alert { border-radius: 16px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; margin: 0; }
.a-alert.error { background: #fdecea; color: #8d2a20; }
.a-alert.info { background: #eef3fd; color: #1d3f86; }
.a-alert.ok { background: #e8f6ee; color: #1d6b3d; }
.a-btn { height: 48px; border-radius: 999px; background: var(--a-blue); color: #fff; font: 800 15px Manrope, sans-serif;
  border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; width: 100%;
  transition: background .15s, transform .05s; }
.a-btn:hover { background: var(--a-blue-d); }
.a-btn:active { transform: translateY(1px); }
.a-btn.ghost { background: #fff; color: var(--a-blue); border: 1px solid var(--a-line); }
.a-btn.ghost:hover { background: #f5f8ff; }
.a-link { color: var(--a-blue); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.a-link:hover { text-decoration: underline; }
.a-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.a-center { text-align: center; }
.a-legal { font-size: 12px; color: #7a879b; text-align: center; line-height: 1.5; margin: 0; }
.a-legal a { color: var(--a-muted); }
.a-promo > summary { list-style: none; cursor: pointer; text-align: center; }
.a-promo > summary::-webkit-details-marker { display: none; }
.a-promo[open] > summary { display: none; }
.a-muted { color: var(--a-muted); font-size: 13.5px; line-height: 1.5; margin: 0; }
.a-code { letter-spacing: .4em; text-align: center; font-size: 22px; font-weight: 800; }
@media (max-width: 480px) { .auth-card { padding: 24px 20px 20px; border-radius: 22px; } }
