.av-root { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); position: relative; overflow-x: hidden; }
.av-root::before { content: ""; position: absolute; top: -140px; left: 50%; width: 900px; height: 460px; transform: translateX(-50%); background:
  radial-gradient(46% 52% at 50% 38%, rgba(91,92,235,.08), transparent 72%),
  radial-gradient(30% 40% at 62% 30%, rgba(139,114,214,.05), transparent 70%);
  pointer-events: none; }
.av-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 28px 0; position: relative; z-index: 1; min-height: 44px; }
.av-top .av-back { display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; white-space: nowrap; background: none; border: none; padding: 6px 9px; margin: -6px -9px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--t2); cursor: pointer; transition: color .12s var(--ease), background .12s var(--ease); }
.av-top .av-back:hover { color: var(--text); background: var(--line-2); }
.av-id { margin-left: auto; text-align: right; line-height: 1.45; }
.av-id .k { display: block; font-size: 12px; color: var(--t3); }
.av-id .e { display: block; font-size: 13px; color: var(--t2); font-weight: 500; }
.av-main { flex: 1; display: grid; justify-items: center; align-content: start; padding: 11vh 24px 72px; position: relative; z-index: 1; }
.av-card { width: 100%; max-width: 352px; text-align: center; animation: avIn .38s cubic-bezier(.23,1,.32,1); }
.av-card.wide { max-width: 460px; }
@keyframes avIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .av-card { animation: none; } }
.av-mark { width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--accent-2), var(--accent)); box-shadow: 0 10px 26px rgba(91,92,235,.28), inset 0 1px 0 rgba(255,255,255,.28); }
.av-h { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.av-card.wide .av-h { font-size: 25px; }
.av-sub { font-size: 13px; color: var(--t2); margin-top: 9px; line-height: 1.55; }
.av-form { margin-top: 30px; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.av-field { display: block; }
.av-lab { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; font-weight: 550; color: var(--text); margin-bottom: 7px; }
.av-in { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); font-size: 13.5px; font-family: inherit; color: var(--text); outline: none; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, background .15s ease-in-out; }
.av-in::placeholder { color: var(--t4); }
.av-in:hover { border-color: #d4d4d8; }
.av-in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.av-affix { display: flex; align-items: center; height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); overflow: hidden; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; }
.av-affix:hover { border-color: #d4d4d8; }
.av-affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.av-affix .pfx { padding: 0 10px 0 12px; font-size: 13px; color: var(--t3); background: var(--panel); border-right: 1px solid var(--line-2); align-self: stretch; display: inline-flex; align-items: center; white-space: nowrap; }
.av-affix input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: none; padding: 0 12px; font-size: 13.5px; font-family: inherit; color: var(--text); }
.av-affix .sfx { padding: 0 12px; font-size: 11.5px; color: var(--green); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.av-btn { height: 38px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; font-size: 13px; font-weight: 550; font-family: inherit; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; transition: background .15s ease-in-out, border-color .15s ease-in-out, transform .12s var(--ease), box-shadow .15s ease-in-out; box-shadow: 0 1px 2px rgba(91,92,235,.25); }
.av-btn:hover:not(:disabled) { background: #5152e0; border-color: #5152e0; }
.av-btn:active:not(:disabled) { transform: scale(.99); }
.av-btn:disabled { opacity: .55; cursor: default; }
.av-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.av-btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); box-shadow: 0 1px 1px rgba(17,17,20,.03); }
.av-btn.ghost:hover:not(:disabled) { background: var(--panel); border-color: #d4d4d8; }
.av-or { display: flex; align-items: center; gap: 14px; color: var(--t4); font-size: 11.5px; letter-spacing: .02em; margin: 2px 0; }
.av-or::before, .av-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.av-oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.av-link { background: none; border: none; padding: 0; font: inherit; font-weight: 500; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--t4); cursor: pointer; transition: color .12s var(--ease), text-decoration-color .12s var(--ease); }
.av-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.av-quiet { background: none; border: none; padding: 0; font-size: 12.5px; color: var(--t3); cursor: pointer; transition: color .12s var(--ease); }
.av-quiet:hover { color: var(--text); }
.av-legal { font-size: 12px; color: var(--t3); line-height: 1.65; text-align: center; margin-top: 4px; }
.av-foot { margin-top: 28px; font-size: 13px; color: var(--t2); text-align: center; }
.av-footbar { padding: 18px 28px 22px; text-align: center; position: relative; z-index: 1; }
.av-pw { display: flex; gap: 5px; margin-top: 8px; }
.av-pw i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .2s ease-in-out; }
.av-pw i.on { background: var(--accent); }
.av-glyph { width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green-weak); color: var(--green); }
.af-in:focus, .af-affix:focus-within,
.ai-key-in:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-tint) !important; outline: none; }
.af-warm + .av-btn { margin-top: 18px; }
.av-top .av-back > svg { flex-shrink: 0; }
.av-affix .sfx.bad { color: var(--red); }
.av-affix.bad { border-color: var(--red); }
.av-affix.bad:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-weak); }
