/* Формы аккаунта. Шапка, меню и подвал используют оболочку карточки канала. */
.auth-page { color: var(--bp-ink); }
.auth-main { padding-bottom: 64px; }
.auth-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 32px;
  background: var(--bp-surface);
  color: var(--bp-ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 36px -28px rgba(31,35,40,.3);
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 28px; background: var(--bp-surface-2); border: 1px solid var(--line); border-radius: 12px; }
.auth-tabs a { padding: 10px; border-radius: 8px; color: var(--bp-muted); text-align: center; font-size: 15px; }
.auth-tabs a[aria-current] { background: var(--bp-surface); color: var(--text-purple); box-shadow: 0 2px 6px #0000000c; font-weight: 700; }
.auth-card__head { margin-bottom: 26px; }
.auth-submit svg, .password-toggle svg, .auth-max-placeholder svg, .connection-card__icon > svg:not(.auth-provider__vk) { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-eyebrow { margin: 0 0 8px; color: var(--bp-muted); font-size: 14px; }
.auth-card h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.auth-card__lead { margin: 12px 0 0; color: var(--bp-muted); font-size: 16px; line-height: 1.5; }
.auth-form { display: grid; gap: 20px; }
.auth-field { display: grid; gap: 8px; }
/* Подпись поля — обычным начертанием (замечание пользователя 15.10.2026, 0.103.0) */
.auth-field > label { color: var(--bp-ink); font-size: 14px; font-weight: 400; }
.auth-field__control { position: relative; }
/* Вид поля (36 px, заливка как у поиска в шапке, кольцо в фокусе, красная рамка ошибки) — общий
   для всего сайта, static/site/css/fields.css (0.103.0). Здесь — место под кнопку «показать пароль» */
.auth-field__control:has(.password-toggle) input { padding-right: 38px; }
.auth-hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bp-muted); }
.auth-field__error { margin: 0; color: var(--text-red); font-size: 14px; line-height: 1.4; }
/* Кнопка «показать пароль» внутри поля 36 px: 28 × 28 с отступом 4 px, иконка 18 px */
.password-toggle { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 28px; height: 28px; color: var(--bp-muted); border-radius: 7px; }
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle:hover { background: var(--bp-hover); color: var(--text-purple); }
.password-toggle[aria-pressed=true] { color: var(--text-purple); }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.auth-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--bp-ink-2); line-height: 1.5; }
.auth-check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid color-mix(in srgb,var(--bp-muted) 55%,var(--bp-surface));
  border-radius: 6px;
  background: var(--bp-surface-2);
  cursor: pointer;
  transition: background .15s,border-color .15s,box-shadow .15s;
}
.auth-check input[type="checkbox"]::before {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform .12s;
}
.auth-check:hover input[type="checkbox"]:not(:disabled) { border-color: var(--brand); }
.auth-check input[type="checkbox"]:checked { background: var(--brand); border-color: var(--brand); }
.auth-check input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(45deg) scale(1); }
.auth-main .auth-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 12%,transparent);
}
.auth-check input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
@media (forced-colors: active) {
  .auth-check input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; }
  .auth-check input[type="checkbox"]::before { display: none; }
}
.auth-check a, .auth-link { color: var(--text-purple); text-decoration: none; }
.auth-check a:hover, .auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-form__row .auth-link { font-size: 14px; }
.auth-consents { display: grid; gap: 12px; }
.auth-captcha { width: 100%; min-height: 100px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bp-surface-2); }
.auth-captcha__placeholder { display: grid; gap: 4px; margin: 0; color: var(--bp-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.auth-captcha__placeholder strong { color: var(--bp-ink-2); font-size: 14px; }
.auth-captcha__widget:not(:empty) + .auth-captcha__placeholder { display: none; }
/* Кнопки форм — той же высоты, что поля (36 px, fields.css), шрифт 15 px: до 0.103.0 кнопка входа
   была 48 px, рамочная — 40 px */
.auth-submit { display: flex; width: 100%; min-height: 36px; align-items: center; justify-content: center; gap: 10px; padding: 6px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--brand); color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.3; }
.auth-submit:hover { background: var(--brand-dark); }
.auth-submit svg { flex: 0 0 18px; width: 18px; height: 18px; }
.auth-submit:disabled { opacity: .65; cursor: default; }
.auth-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--bp-ink-2); background: var(--bp-surface); font-size: 14px; line-height: 1.4; }
.auth-secondary:hover { border-color: var(--text-purple); color: var(--text-purple); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--bp-muted); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-providers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.auth-provider { display: flex; min-height: 36px; gap: 8px; align-items: center; justify-content: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--bp-ink); background: var(--bp-surface); font-size: 14px; }
.auth-provider:hover { background: var(--bp-hover); border-color: var(--text-purple); }
.auth-provider img { display: block; flex: 0 0 22px; }
.auth-provider__mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 17px; line-height: 1; }
.auth-provider__mark--yandex { background: #fc3f1d; color: #fff; }
.auth-provider__vk { display: block; width: 24px; height: 22px; fill: currentColor; color: #2787f5; }
.auth-provider-status { margin-top: 12px; }
.auth-card__switch { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--bp-muted); line-height: 1.5; }
.auth-demo-note { margin: 24px auto 0; color: var(--bp-muted); text-align: center; font-size: 13px; line-height: 1.5; }
.auth-demo-variants { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 12px auto 0; color: var(--bp-muted); font-size: 13px; line-height: 1.5; }
.auth-demo-variants a { color: var(--text-purple); text-decoration: underline; text-underline-offset: 3px; }
.auth-notice, .auth-status { margin: 0 0 20px; padding: 14px 16px; background: var(--bp-hover); border-radius: 10px; color: var(--bp-ink-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-form .auth-status, .auth-form .auth-notice { margin: 0; }
.auth-status { margin-top: 16px; }
.auth-status.is-error { color: var(--text-red); background: color-mix(in srgb,var(--text-red) 7%,var(--bp-surface)); }
.auth-success { padding-top: 4px; }
.auth-success h2 { margin: 0 0 12px; font-size: 27px; line-height: 1.2; }
.auth-success > p { margin: 0 0 24px; color: var(--bp-muted); font-size: 16px; line-height: 1.5; }
.auth-main [hidden] { display: none !important; }
.auth-main :is(a,button):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.auth-max-placeholder { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 24px 0; padding: 28px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--bp-muted); text-align: center; }
.auth-max-placeholder svg { width: 40px; height: 40px; color: var(--text-purple); }
.auth-max-placeholder strong { font-size: 16px; color: var(--bp-ink); }
.auth-max-placeholder span { font-size: 14px; line-height: 1.5; }
.auth-steps { display: grid; gap: 12px; margin: 24px 0; padding-left: 24px; list-style: decimal; color: var(--bp-ink-2); font-size: 15px; line-height: 1.5; }
.auth-steps li::marker { color: var(--text-purple); font-weight: 700; }
.auth-settings { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; max-width: 1000px; margin: 0 auto; align-items: start; }
.auth-settings__nav { padding: 20px 0; }
.auth-settings__nav > p { padding: 0 14px; margin: 0 0 12px; font-size: 14px; color: var(--bp-muted); }
.auth-settings__nav nav { display: grid; gap: 4px; }
.auth-settings__nav a { padding: 12px 14px; border-radius: 10px; color: var(--bp-ink-2); font-size: 15px; }
.auth-settings__nav a:hover { background: var(--bp-hover); color: var(--text-purple); }
.auth-card--settings { width: 100%; }
.auth-settings__section { padding-top: 26px; border-top: 1px solid var(--line); margin-top: 26px; scroll-margin-top: 24px; }
.auth-settings__section h2 { margin: 0 0 10px; font-size: 21px; }
.connections-list { margin-top: 20px; display: grid; gap: 12px; }
.connection-card { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.connection-card__icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--bp-surface-2); border-radius: 11px; color: var(--text-purple); }
.connection-card h3, .auth-security-row h3 { margin: 0 0 4px; font-size: 16px; }
.connection-card__details, .auth-security-row p { margin: 0; color: var(--bp-muted); font-size: 14px; line-height: 1.5; }
.connection-card__state { display: inline-block; margin-top: 4px; color: var(--text-green); font-size: 13px; }
.connection-warning { grid-column: 1/-1; margin: 0; }
.auth-security-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; font-size: 14px; }
.auth-security-row + .auth-security-row { border-top: 1px solid var(--line); }
.auth-security-row .auth-link { flex-shrink: 0; }
@media (max-width: 760px) {
  .auth-card { padding: 26px 22px; border-radius: 18px; }
  .auth-card h1 { font-size: 27px; }
  .auth-main { padding-bottom: 72px; }
  .auth-settings { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .auth-settings__nav { padding: 0; }
  .auth-settings__nav > p { display: none; }
  .auth-settings__nav nav { display: flex; flex-wrap: wrap; }
  .auth-settings__nav a { padding: 8px 10px; font-size: 14px; }
  .connection-card { grid-template-columns: 36px minmax(0,1fr); padding: 14px; gap: 12px; }
  .connection-card__action { grid-column: 2; justify-self: start; }
  .auth-security-row { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 380px) {
  .auth-card { padding: 24px 16px; }
  .auth-providers { gap: 6px; }
  .auth-provider { gap: 5px; padding-inline: 5px; font-size: 13px; }
}
