/* Карточка входа: страница /login (auth.html) и окошко входа в окне на сайте партнёра (embed.js, .embed-auth).
   Вход, регистрация, новый пароль — вкладки одной карточки. Правило body — только в auth.html: в окне под
   карточкой лежит обычный интерфейс завода. */
.auth { width: 100%; max-width: 440px; display: grid; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; }
.auth-brand .logo-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow); }
.auth-brand .logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.auth-brand b { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.auth-brand span { display: block; color: var(--muted); font-size: 12.5px; }
.auth-card { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 24px; backdrop-filter: blur(14px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(9, 12, 32, .6); border: 1px solid var(--line); margin-bottom: 18px; }
.auth-tabs button { border: 0; border-radius: 10px; padding: 10px; font: inherit; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer; }
.auth-tabs button.on { color: #fff; background: var(--grad); box-shadow: var(--glow); }
.auth h1 { font-size: 21px; margin: 0 0 6px; }
.auth .lead { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.auth label { margin: 0 0 12px; }
.auth input[type=email], .auth input[type=password], .auth input[type=text] { font-size: 15px; padding: 12px 14px; border-radius: 12px; }
.auth .pw { position: relative; }
.auth .pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin-top: 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 6px; }
.auth .check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--text); margin: 4px 0 10px; cursor: pointer; }
.auth .check input { width: 18px; height: 18px; margin: 2px 0 0; }
.auth .doc-links { font-size: 12.5px; color: var(--muted); margin: 0 0 14px 30px; }
.auth .btn.primary { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.auth a.btn.primary { display: block; text-align: center; text-decoration: none; }
.auth .err { color: var(--err); font-size: 13.5px; font-weight: 600; min-height: 1.4em; margin: 6px 0 0; }
.auth .fine { color: var(--faint); font-size: 12.5px; text-align: center; }
.auth .fine a { color: var(--muted); }
.auth .switch { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth .switch button { border: 0; padding: 0; background: none; font: inherit; font-weight: 700; color: var(--text); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.auth #regHint { color: var(--muted); margin: 8px 0 0; }
.auth .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 420px) { .auth .two { grid-template-columns: 1fr; } .auth-card { padding: 18px; } }

/* окно на сайте партнёра: карточка входа (и «временно недоступно») поверх скрытого интерфейса. Ленты
   видеоновостей в окне нет — и ссылки на неё тоже */
html.embed .fine a[href^="/feed"] { display: none; }
.embed-auth { position: fixed; inset: 0; overflow: auto; display: grid; place-items: center; padding: 24px 16px; z-index: 60; background: transparent; }
.embed-auth .embed-wait { display: grid; place-items: center; min-height: 120px; }
.embed-auth .embed-wait .spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--panel-2); border-top-color: #a78bfa;
  animation: cvspin .9s linear infinite; }
