.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--accent-soft), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(167, 139, 250, .10), transparent 60%), var(--bg);
}
.auth-theme { position: fixed; top: 14px; right: 14px; }
.auth-wrap { width: min(420px, 100%); display: grid; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; }
.auth-brand .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ema-fast), var(--ema-slow)); color: #0b0f14; font-weight: 800; }
.auth-brand b { display: block; font-size: 17px; letter-spacing: -.01em; }
.auth-brand span { font-size: 12px; color: var(--muted); }
.auth-card { padding: 28px 28px 24px; display: grid; gap: 14px; }
.auth-card h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.auth-card > p { margin: -6px 0 0; }
.auth-form { display: grid; gap: 14px; }
.auth-form .field input { width: 100%; height: 42px; font-size: 14.5px; }
.auth-form .field label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text-2); font-weight: 550; }
.auth-form input[aria-invalid="true"] { border-color: var(--neg); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 34px; border: 0;
  background: transparent; color: var(--muted); cursor: pointer; border-radius: 6px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--text); background: var(--panel-2); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .eye { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.auth-submit { width: 100%; height: 44px; font-size: 15px; font-weight: 600; margin-top: 2px; }
.auth-submit[disabled] { opacity: .7; }
.auth-foot { text-align: center; margin: 0; color: var(--muted); font-size: 14px; }
.err { color: var(--neg); font-size: 12.5px; margin-top: -6px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: -6px; }
.caps { color: var(--warn); font-size: 12.5px; margin-top: -6px; }
@media (max-width: 480px) { .auth-card { padding: 22px 18px 18px; } }

/* user menu in the app top bar */
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; max-width: 220px; }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.user-chip .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .user-chip .em { display: none; } }
