/* Общие элементы первого входа: те же размеры и палитра, что в кабинете. */
[hidden] { display: none !important; }
.password-control { position: relative; }
.password-control input { padding-right: 48px !important; }
.password-control button { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 10px; }
.password-control button:hover { color: var(--text); }
.password-rules { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.password-rules span::before { content: '○'; margin-right: 5px; }
.password-rules [data-ok='true'] { color: var(--good); }
.password-rules [data-ok='true']::before { content: '✓'; }
.auth-consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.auth-consent input { flex-shrink: 0; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.auth-consent a { text-underline-offset: 3px; }
.auth__desktop { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 13px; }
.auth__verify-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; font-size: 13px; }
.auth__note[data-tone='bad'], .note[data-tone='bad'] { color: var(--bad); }
.auth__note[data-tone='good'], .note[data-tone='good'] { color: var(--good); }
.success-burst { position: absolute; top: 40%; left: 50%; pointer-events: none; }
.success-burst i { position: absolute; width: 5px; height: 8px; border-radius: 2px; background: var(--accent); animation: success-burst 850ms ease-out both; }
.success-burst i:nth-child(3n) { background: var(--good); }
@keyframes success-burst { from { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--turn)); } }
@media (prefers-reduced-motion: reduce) { .success-burst { display: none; } }
@media (prefers-color-scheme: light) {
  html[data-system-theme] { --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526078' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
  html[data-system-theme] { color-scheme: light; --bg: #f5f7fb; --bg-2: #edf1f7; --surface: #fff; --raised: #e8edf5; --line: rgba(30,47,75,.12); --line-strong: rgba(30,47,75,.24); --text: #1b2639; --muted: #526078; --faint: #626e80; --accent: #265dc4; --accent-ink: #fff; --good: #167343; --bad: #b72835; }
  html[data-system-theme] .auth__side { background: radial-gradient(120% 80% at 80% 15%, rgba(110,168,254,.2), transparent 60%), var(--bg-2); }
  html[data-system-theme] .button.primary:hover { background: color-mix(in srgb, var(--text) 88%, var(--surface)); }
  html[data-system-theme] body::after { opacity: .015; }
}
.onboarding-card { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)) !important; background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)) !important; }
.onboarding-eyebrow { color: var(--accent); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 600; }
.onboarding-steps { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 24px 0; list-style: none; color: var(--muted); font-size: 13px; }
.onboarding-steps [data-done='true'] { color: var(--good); }
