

.auth-wrap { width: 100%; max-width: 392px; }
.auth-foot { text-align: center; font-size: calc(11.5px + var(--fz)); color: var(--text-3); margin-top: 18px; }

.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; text-align: center; }
.auth-brand.compact { margin-bottom: 24px; }
a.auth-brand { width: fit-content; margin-left: auto; margin-right: auto; text-decoration: none; }
a.auth-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.kmark.lg { width: 54px; height: 54px; }
.kmark.md { width: 50px; height: 50px; }
.kword.lg { font-size: 30px; }
.kword.md { font-size: 28px; }
.ktag.auth-tag { font-size: calc(10.5px + var(--fz)); letter-spacing: .32em; margin-top: 7px; }

.auth-title { font-family: var(--font-display); font-weight: 600; font-size: calc(21px + var(--fz)); margin-bottom: 5px; }
.auth-sub { font-size: calc(13px + var(--fz)); color: var(--text-3); margin-bottom: 22px; }

.auth-field { margin-bottom: 14px; }
.auth-field.mb16 { margin-bottom: 16px; }
.auth-optional { color: var(--text-3); font-weight: 500; }


.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.auth-keepme { display: flex; align-items: center; gap: 8px; font-size: calc(12.5px + var(--fz)); color: var(--text-2); cursor: pointer; font-weight: 500; }
.switch.sm { width: 38px; height: 22px; }

.auth-link { font-size: calc(12.5px + var(--fz)); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.auth-alt  { text-align: center; font-size: calc(12.5px + var(--fz)); color: var(--text-2); margin-top: 18px; }
.auth-note { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; font-size: calc(11.5px + var(--fz)); color: var(--text-3); }
.auth-note i { font-size: 15px; }
.auth-note .ok { color: var(--profit); }

.btn.auth-submit { width: 100%; padding: 12px; }

.reg-terms { display: flex; align-items: flex-start; gap: 10px; font-size: calc(12.5px + var(--fz)); color: var(--text-2); cursor: pointer; font-weight: 500; line-height: 1.5; margin: 4px 0 20px; }
.reg-terms a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.reg-terms .switch { margin-top: 1px; }
.pw-hint { font-size: calc(10.5px + var(--fz)); color: var(--text-3); font-weight: 500; margin-top: 7px; display: block; }
.pw-match { font-size: calc(11px + var(--fz)); font-weight: 600; margin-top: 7px; display: none; align-items: center; gap: 5px; }
.pw-match.show { display: flex; }
.pw-match.ok { color: var(--profit); }
.pw-match.bad { color: var(--loss); }
.btn.is-off { opacity: .5; pointer-events: none; }
.btn.auth-submit:disabled { opacity: .5; cursor: not-allowed; }

.login-restricted { text-align: center; padding: 6px 2px; }
.lr-ic { width: 52px; height: 52px; margin: 2px auto 14px; display: grid; place-items: center; border-radius: 14px; background: var(--loss-bg); color: var(--loss); font-size: 26px; }
.lr-title { display: block; font-family: var(--font-display); font-size: calc(19px + var(--fz)); text-transform: capitalize; margin-bottom: 8px; }
.lr-msg { font-size: calc(13px + var(--fz)); color: var(--text-2); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

.auth-alt-note { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.auth-alt-note i { font-size: 14px; }

.auth-error { display: flex; align-items: center; gap: 8px; font-size: calc(12.5px + var(--fz)); font-weight: 600; color: var(--loss); background: var(--loss-bg); border-radius: var(--r-sm); padding: 9px 12px; margin-bottom: 16px; }
.auth-error i { font-size: 15px; }
.auth-ok { display: flex; align-items: center; gap: 8px; font-size: calc(12.5px + var(--fz)); font-weight: 600; color: var(--profit); background: var(--profit-bg); border-radius: var(--r-sm); padding: 9px 12px; margin-bottom: 16px; }
.auth-ok i { font-size: 15px; }
.auth-info { display: flex; align-items: center; gap: 8px; font-size: calc(12.5px + var(--fz)); font-weight: 600; color: var(--text-2); background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 12px; margin-bottom: 16px; }
.auth-info i { font-size: 15px; }
.field-error { display: block; color: var(--loss); font-size: calc(11px + var(--fz)); font-weight: 500; margin-top: 6px; }

.lr-ic.warn { background: var(--warn-bg); color: var(--warn); }
.lr-msg.mt10 { margin-top: 10px; }
.lr-msg a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.lr-msg .ln-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-ink); cursor: pointer; text-decoration: none; }
.btn.lr-back { width: 100%; margin-top: 14px; }

.lr-ic.note { background: var(--info-bg); color: var(--info); }
.ln-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: calc(18px + var(--fz)); line-height: 1.3; margin-bottom: 6px; }
.ln-item + .ln-item { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.ln-when { display: block; font-size: calc(11.5px + var(--fz)); color: var(--text-3); margin-bottom: 8px; }
.lr-msg.ln-help { margin-top: 14px; }

.lr-ic.dead { background: var(--warn-bg); color: var(--warn); }
.su-for { overflow-wrap: anywhere; }
.su-for b { color: var(--text-2); font-weight: 600; }
.auth-link.su-back { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn.ln-continue { width: 100%; justify-content: center; padding: 12px; margin-top: 16px; }

.d-chips.inv-gives { margin-bottom: 18px; }
.lr-msg.inv-super { text-align: left; margin: -8px 0 18px; }
.inv-until { text-align: center; font-size: calc(12.5px + var(--fz)); color: var(--text-2); margin-top: 14px; }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.authcard.center { text-align: center; }
.blk-ic { width: 54px; height: 54px; border-radius: 15px; background: var(--loss-bg); color: var(--loss); display: grid; place-items: center; font-size: 26px; margin: 0 auto 16px; }
.blk-ic.ok { background: var(--profit-bg); color: var(--profit); }
.blk-title { font-family: var(--font-display); font-weight: 600; font-size: calc(20px + var(--fz)); margin-bottom: 8px; }
.blk-msg { font-size: calc(13px + var(--fz)); color: var(--text-2); line-height: 1.6; margin-bottom: 18px; }
.blk-help { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: calc(11.5px + var(--fz)); color: var(--text-3); }
.blk-help i { font-size: 15px; }
.blk-help a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.blk-ic.warn { background: var(--warn-bg); color: var(--warn); }

.appshell { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
.appshell-top { display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-bottom: 1px solid var(--border); }
.appshell-brand { display: inline-flex; align-items: center; gap: 10px; }
.appshell-brand .kmark { width: 28px; height: 28px; }
.appshell-brand .kword { font-size: calc(19px + var(--fz)); }
.appshell-spacer { flex: 1; }
.btn.appshell-signout { padding: 8px 14px; }
.appshell-main { flex: 1; display: grid; place-items: center; padding: 48px 26px; }

.dev-note { display: flex; align-items: flex-start; gap: 8px; text-align: left; margin: 2px 0 14px; padding: 9px 11px; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: calc(11px + var(--fz)); color: var(--text-3); line-height: 1.5; }
.dev-note > i { font-size: 15px; color: var(--warn); flex: none; margin-top: 1px; }
.dev-note a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
