/*
 * Вход в закрытый контур ACARO TRADE: вход, код 2FA, регистрация по инвайту.
 * Поверх дизайн-системы «ACARO Reflex UI» (acaro-ui.css подключается раньше).
 * Цвета — только токены: `var(--accent)`, с прозрачностью — `rgba(var(--accent-rgb), a)`.
 */

body.auth {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(var(--accent-rgb), 0.08), transparent 70%),
        var(--bg);
}

.auth a {
    color: var(--accent-text);
    text-decoration: none;
}

.auth-card a:hover {
    text-decoration: underline;
}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 54px;
    padding: 0 20px;
}

.auth .auth-home {
    color: var(--text-dim);
    font-size: 13px;
    text-decoration: none;
}

.auth .auth-home:hover {
    color: var(--text);
}

/* Дорожка языков — ссылками, а не кнопками: язык меняется переходом. */
.auth-top .ui-pills a {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.auth-top .ui-pills a:hover {
    color: var(--text);
}

.auth-top .ui-pills a.on {
    background: var(--border);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(var(--ink-rgb), 0.04),
        0 2px 6px var(--shadow-color);
}

.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6vh 16px 48px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--text);
    text-decoration: none;
}

.auth-logo svg {
    display: block;
    width: 132px;
    height: auto;
}

.auth-logo .home-logo__caret {
    fill: rgb(var(--lime-rgb));
    animation: auth-caret 1.1s steps(1) infinite;
}

.auth-logo b {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
}

@keyframes auth-caret {
    50% {
        opacity: 0;
    }
}

.auth-card {
    width: min(400px, 100%);
    padding: 24px 24px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 18px 48px var(--shade-soft);
}

.auth-card h1 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}

.auth-card h1 + .hint {
    margin-top: -6px;
}

.auth-card form .error-box {
    margin: 0 0 14px;
}

.auth-card .error-box > div + div {
    margin-top: 4px;
}

.auth-card button.primary {
    margin-top: 4px;
}

/* Галочка «Запомнить меня» в строку, а не сеткой, как прочие подписи. */
.auth-card label.auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.panel .hint.auth-note {
    margin: 16px 0 0;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .auth-logo .home-logo__caret {
        animation: none;
    }
}
