/* Окно входа «как в лаунчере» (#236): классы из auth-parts.css и AuthScreen.vue лаунчера, переменные — портальные */
.tr-portal-auth { text-align: left; min-height: 100%; box-sizing: border-box; justify-content: center; }   /* высоту окна фиксирует player.js (openAuth) по «Входу» */
.auth-launcher-hint { margin: 0; }
.auth-launcher-hint[hidden] { display: none; }
.tr-btn-secondary { background: transparent; border: 1px solid var(--tr-border2); color: var(--tr-text); }
.tr-portal-auth.is-busy { opacity: .6; pointer-events: none; }

.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; }
.auth-logo { display: block; width: 62%; max-width: 220px; height: auto; margin: 0 auto 14px; }
.auth-title { font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--tr-text); }
.auth-sub { max-width: 360px; margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--tr-text-sub); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.auth-field > .auth-label-row > span:first-child, .auth-field > .auth-label-row > label { font-size: 12px; font-weight: 700; color: var(--tr-text-sub); }
.auth-field .tr-input { font-size: 14px; padding: 11px 13px; width: 100%; box-sizing: border-box; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-center { justify-content: center; }
.tr-input.is-error { border-color: rgba(204, 0, 0, .4); }
.auth-btn-full { width: 100%; }
.auth-error { min-height: 18px; font-size: 12px; font-weight: 600; color: var(--tr-red); text-align: center; }
.auth-switch { text-align: center; font-size: 12px; color: var(--tr-text-dim); }

.auth-link { padding: 0; background: none; border: none; font-family: inherit; font-size: 11px; font-weight: 700; color: var(--tr-text-sub); cursor: pointer; transition: color .2s; }
.auth-link:hover, .auth-link:focus-visible { color: var(--tr-red); }
.auth-link:disabled { color: rgba(255, 255, 255, .28); cursor: default; }
.auth-link--center { align-self: center; }

.code-field { padding: 14px 16px !important; font-size: 26px !important; font-weight: 800; text-align: center; letter-spacing: .45em; text-indent: .45em; }

.auth-choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; font-family: inherit; color: var(--tr-text); background: rgba(255, 255, 255, .03); border: 1px solid var(--tr-border); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.auth-choice:hover, .auth-choice:focus-visible { border-color: var(--tr-red); background: rgba(225, 29, 72, .08); }
.auth-choice-icon { flex: none; display: flex; align-items: center; color: var(--tr-red); font-size: 22px; }
.auth-choice-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.auth-choice-title { font-size: 14px; font-weight: 700; }
.auth-choice-sub { font-size: 12px; line-height: 1.4; color: var(--tr-text-sub); }

.auth-wait { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 4px; background: rgba(255, 255, 255, .03); border: 1px solid var(--tr-border); border-radius: 10px; }
.auth-wait-icon { flex: none; display: flex; color: var(--tr-red); font-size: 22px; }
.auth-wait-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.auth-wait-title { font-size: 14px; font-weight: 700; }
.auth-wait-sub { font-size: 12px; color: var(--tr-text-sub); }
.auth-wait-timer { flex: none; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--tr-text); }

.field-hints-list { display: flex; flex-direction: column; gap: 4px; margin-top: -4px; }
.field-hint { font-size: 11px; font-weight: 600; line-height: 1.4; }
.field-hint--ok { color: var(--tr-green); }
.field-hint--error { color: var(--tr-red); }
.field-hint--idle { color: rgba(255, 255, 255, .45); }

.pass-wrap { position: relative; display: block; }
.pass-wrap .tr-input { padding-right: 44px; }
.pass-wrap input::-ms-reveal, .pass-wrap input::-ms-clear { display: none; }
.pass-eye { position: absolute; top: 0; right: 0; bottom: 0; width: 42px; display: flex; align-items: center; justify-content: center; padding: 0; color: rgba(255, 255, 255, .45); background: none; border: 0; cursor: pointer; transition: color .2s; }
.pass-eye:hover { color: var(--tr-text); }

.auth-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.45; color: var(--tr-text-sub); cursor: pointer; }
.auth-consent input { margin-top: 2px; flex: none; accent-color: var(--tr-red); }

.auth-status { display: flex; justify-content: center; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.qr-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-align: center; }
.qr-state--wait { color: var(--tr-yellow); }
.qr-state--done { color: var(--tr-green); }
.qr-open { margin-top: 0; text-decoration: none; }

.auth-choice-icon .max-mark { width: 20px; height: 20px; margin: 0; vertical-align: middle; }
.max-mark { display: inline-block; height: .85em; width: .85em; margin-left: .35em; vertical-align: -.06em; }
