/* Вход и регистрация используют токены и компоненты утверждённого трекера. */
.auth-page { min-width: 960px; min-height: 100vh; display: flex; flex-direction: column; background: #fafaf8; }
.auth-page [hidden] { display: none !important; }
.auth-page .global-nav { position: static; flex: none; }
.auth-page .global-nav nav a { font-size: 13px; }
.auth-page .global-nav nav a:last-child { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.auth-layout { width: min(1120px, calc(100% - 96px)); margin: auto; padding: 56px 0; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 460px); justify-content: space-between; align-items: center; gap: 72px; }
.auth-layout:focus { outline: none; }
.auth-eyebrow { margin: 0 0 14px; font: 500 10px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.auth-intro h1 { max-width: 520px; font-size: 42px; line-height: 1.2; letter-spacing: -.035em; }
.auth-underline { position: relative; white-space: nowrap; z-index: 0; }
.auth-underline::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 7px; border-radius: 9px; background: var(--lime); z-index: -1; }
.auth-intro-text { margin: 20px 0 24px; max-width: 455px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.auth-art { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.auth-art img { display: block; width: 100%; height: auto; }
.auth-trial { margin-top: 20px; }
.auth-trial > p { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.auth-trial ul { list-style: none; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.auth-trial li { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-soft); }
.auth-trial li b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--lime-dim); color: var(--on-lime); font: 500 16px var(--font-mono); }
.auth-intro-note { margin-top: 20px; font-size: 12px; color: var(--muted); }
.auth-card { position: relative; padding: 40px 32px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.auth-card .detail-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; }
.auth-card .detail-close:hover { background: var(--bg-2); }
.auth-card .detail-close svg { width: 18px; height: 18px; }
.auth-card .auth-eyebrow { padding-right: 28px; font-size: 9px; }
.auth-card h2 { font-size: 28px; line-height: 1.2; }
.auth-description { margin: 16px 0 28px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.auth-field { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.auth-card input { display: block; width: 100%; height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 14px var(--font-body); outline: none; box-shadow: none; }
.auth-card input::placeholder { color: var(--muted); opacity: 1; }
.auth-card input:hover { border-color: #b3b6b8; }
.auth-card input:focus { border-color: #8caa29; box-shadow: 0 0 0 3px var(--lime-dim); }
.auth-card input[aria-invalid="true"] { border-color: #be513c; }
.auth-field-hint { margin: 8px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-submit { width: 100%; min-height: 44px; padding: 11px 18px; justify-content: center; font-size: 14px; }
.auth-submit svg { width: 18px; height: 18px; }
.auth-feedback { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff0ed; color: #9b3e2e; font-size: 12px; line-height: 1.65; outline: none; }
.auth-feedback:focus-visible { outline: 2px solid #9b3e2e; outline-offset: 2px; }
.auth-feedback.is-info { background: var(--bg-2); color: var(--ink-soft); }
.auth-switch { margin-top: 24px; display: flex; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.auth-switch a, .auth-text-button { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: #bdcd95; text-underline-offset: 4px; }
.auth-text-button { font-family: inherit; font-size: 12px; background: none; border: none; cursor: pointer; min-height: 32px; }
.auth-text-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-error-link { display: inline-block; margin-top: 6px; color: inherit; text-underline-offset: 4px; }
.auth-description { overflow-wrap: anywhere; }
.auth-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -12px 0 24px; font-size: 14px; }
.auth-email-row span { overflow-wrap: anywhere; }
.auth-card input.auth-code { height: 60px; text-align: center; font: 500 28px var(--font-mono); letter-spacing: .5em; padding-left: calc(12px + .5em); }
.auth-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.auth-preview-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-preview-note a { display: inline-block; margin-top: 6px; color: var(--ink-soft); text-underline-offset: 4px; }
.auth-footer { width: min(1120px, calc(100% - 96px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 24px; font-size: 12px; color: var(--muted); }
.auth-footer a { color: var(--ink-soft); text-decoration: none; }
.auth-page a:focus-visible, .auth-page button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-height: 850px) { .auth-layout { padding: 32px 0; } .auth-intro h1 { font-size: 36px; } .auth-art { max-width: 430px; } .auth-card { padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; scroll-behavior: auto !important; } }
