/* Страницы входа портала перевозчика на carrier.tams-tms.ru — в стиле сайта tams-tms.ru.
   Общий стиль (кнопки, поля, раскладка .auth, карта) — /assets/css/site.css: nginx на anvil берёт его с auth-server.
   Здесь — только своё для портала. */

.auth__box--wide { max-width: 480px; }
.auth__box .lede-s { margin-top: 10px; color: var(--ink-2); }
.req { color: var(--red); }

/* Правая панель: что даёт портал или шаги регистрации */
.auth__side { justify-content: flex-end; }
.auth__side .cta__net { top: 27%; }
.side { position: relative; z-index: 1; max-width: 460px; }
.side h2 { color: #fff; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
.side > p { margin-top: 10px; color: #C9DDF2; font-size: 16px; }
.side__list { list-style: none; margin: 22px 0 0; padding: 0; }
.side__list li { position: relative; padding: 10px 0 10px 36px; border-top: 1px solid rgba(255, 255, 255, .12); color: #C9DDF2; font-size: 15px; line-height: 1.45; }
.side__list li:first-child { border-top: 0; }
.side__list b { color: #fff; font-weight: 600; }
.side__list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--sky); }
.side__new { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--sky); color: var(--navy-d); font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; }
/* шаги регистрации — как остановки маршрута */
.side__steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: st; }
.side__steps li { position: relative; padding: 0 0 22px 50px; counter-increment: st; color: #C9DDF2; font-size: 15px; line-height: 1.45; }
.side__steps li:last-child { padding-bottom: 0; }
.side__steps li::before { content: counter(st); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy); border: 3px solid var(--sky); color: var(--sky); font-weight: 700; font-size: 14px; }
.side__steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 3px; background: rgba(117, 211, 248, .35); }
.side__steps b { display: block; color: #fff; font-weight: 600; font-size: 16px; }
.side__note { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); color: #A9BFD6; font-size: 14px; }

/* Блоки на форме */
.note { margin-top: 20px; padding: 14px 16px; border-radius: var(--r-s); background: #EEF6FD; border: 1px solid #CFE4F7; color: var(--navy); font-size: 14px; line-height: 1.5; }
.note--warn { background: #FFF7E5; border-color: #F1D48E; color: #5F4710; }
.note--warn b { color: #7A5200; }
.note--ok { background: #EAF7EF; border-color: #BFE3CE; color: #1F5C37; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field--readonly input { background: var(--paper); color: var(--muted); }
.field__ok { display: none; margin-top: 6px; font-size: 14px; color: var(--green-d); }
.field__ok.is-shown { display: block; }
.field__hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.auth__alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth__alt p { font-size: 15px; color: var(--ink-2); }
.auth__alt .btn { width: 100%; margin-top: 10px; }

/* Состояния: проверка ссылки, успех, ошибка */
.state { text-align: center; }
.state__icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #E8F4FD; color: var(--blue); }
.state__icon svg { width: 30px; height: 30px; }
.state__icon--ok { background: #EAF7EF; color: var(--green); }
.state__icon--err { background: #FDECEB; color: var(--red); }
.state__icon--warn { background: #FFF4DB; color: #C98A00; }
.state h1, .state h2 { margin-top: 18px; }
.state h2 { font-size: 26px; line-height: 1.2; }
.state p { margin-top: 10px; color: var(--ink-2); }
.state .btn { width: 100%; margin-top: 12px; }
.state .btn:first-of-type { margin-top: 24px; }
.state .field { text-align: left; }

.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 116, 215, .2); border-top-color: var(--blue);
    animation: spin .8s linear infinite; vertical-align: -3px; }
.btn .spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; margin-right: 2px; }
.spinner--l { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
    .fields-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .spinner { animation-duration: 2.4s; }
}

/* Согласие на обработку персональных данных — отдельной отметкой (152-ФЗ) */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--green); cursor: pointer; }
.consent input.is-invalid { outline: 2px solid var(--red); outline-offset: 1px; }
/* Политика обработки персональных данных (tams-tms.ru) под формой входа и регистрации */
.auth__docs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; font-size: 13px; }
.auth__docs a { color: var(--muted); }
.auth__docs a:hover { color: var(--blue); }

/* Подпись к логотипу: чей это вход */
.logo__sub { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
@media (max-width: 520px) { .logo__sub { display: none; } }
