/* ============ user auth ============ */
.rail-user {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E3E7ED;
  background: #EEF2F8; color: #4B5160; font-size: 12px; font-weight: 600;
  display: grid; place-items: center; margin-top: 2px;
}
.rail-user:hover { border-color: #C9D2E3; color: #15171B; }
.account-card { display: flex; align-items: center; gap: 9px; padding: 8px 8px 12px; border-bottom: 1px solid #F2F4F7; }
.account-avatar { width: 34px; height: 34px; border-radius: 50%; background: #17181C; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.account-card b { display: block; font-size: 11.5px; font-weight: 600; color: #23272E; }
.account-card small { display: block; font-size: 9.5px; color: #9AA0AA; margin-top: 2px; }
.account-credit { display: flex; align-items: center; gap: 4px; padding: 11px 8px; font-size: 10.5px; color: #7A808B; }
.account-credit .icon { width: 12px; height: 12px; color: #B8935A; }
.account-credit b { color: #15171B; font-size: 12px; }
.account-link { margin-left: auto; border: 0; background: none; color: #3D6DF5; font-size: 10px; padding: 2px; }
.account-link:hover { text-decoration: underline; }

#auth-root[hidden] { display: none; }
.auth-shell {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 28px;
  background:
    radial-gradient(920px 520px at 12% 4%, #E9F1FF 0%, rgba(255,255,255,0) 62%),
    radial-gradient(760px 480px at 88% 10%, #FFF3E6 0%, rgba(255,255,255,0) 60%),
    #F4F6F9;
}
.auth-card {
  width: min(1000px, 100%); min-height: 620px; display: grid; grid-template-columns: 1.06fr .94fr;
  background: #fff; border: 1px solid #EDEFF3; border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(16, 24, 40, .15);
}
.auth-visual {
  position: relative; padding: 42px 44px; color: #fff; display: flex; flex-direction: column;
  background: linear-gradient(150deg, #1B1D23 0%, #15171B 55%, #1D2430 100%); overflow: hidden;
}
.auth-visual::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  right: -180px; top: -160px; background: radial-gradient(circle, rgba(61,109,245,.42), transparent 66%);
}
.auth-visual::after {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  left: -170px; bottom: -190px; background: radial-gradient(circle, rgba(255,190,120,.16), transparent 68%);
}
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; }
.auth-mark { width: 38px; height: 38px; border-radius: 11px; background: #fff; color: #15171B; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.auth-brand b { display: block; font-size: 13px; font-weight: 600; }
.auth-brand small { display: block; font-size: 9.5px; color: rgba(255,255,255,.42); margin-top: 2px; }
.auth-copy { position: relative; z-index: 2; margin-top: auto; padding-bottom: 18px; }
.auth-eyebrow { font-size: 9px; letter-spacing: 2.3px; color: rgba(255,255,255,.45); }
.auth-copy h1 { font-size: 38px; line-height: 1.32; font-weight: 600; letter-spacing: -1px; margin: 18px 0 14px; }
.auth-copy p { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.58); max-width: 380px; }
.auth-points { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.auth-points li { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: rgba(255,255,255,.62); }
.auth-points .icon { width: 12px; height: 12px; color: #8FD3E3; }
.auth-stats { position: relative; z-index: 2; display: flex; gap: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.auth-stats b { display: block; font-size: 17px; font-weight: 600; }
.auth-stats small { display: block; font-size: 9px; color: rgba(255,255,255,.4); margin-top: 3px; }
.auth-panel { padding: 46px 44px 36px; display: flex; flex-direction: column; justify-content: center; }
.auth-tabs { display: inline-flex; gap: 20px; border-bottom: 1px solid #F1F3F6; margin-bottom: 26px; }
.auth-tabs button { border: 0; background: none; padding: 9px 0 11px; font-size: 13px; color: #8A909B; position: relative; }
.auth-tabs button.active { color: #15171B; font-weight: 600; }
.auth-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #15171B; }
.auth-panel h2 { font-size: 25px; font-weight: 600; letter-spacing: -.4px; }
.auth-sub { font-size: 11.5px; color: #8A909B; margin-top: 6px; line-height: 1.7; }
#auth-form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field span { font-size: 10px; color: #8A909B; }
.auth-field input {
  height: 44px; border: 1px solid #E3E7ED; border-radius: 9px; padding: 0 12px;
  font-size: 12.5px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus { border-color: #AFC4FF; box-shadow: 0 0 0 3px rgba(61,109,245,.1); }
.auth-submit {
  height: 46px; border: 0; border-radius: 9px; background: #17181C; color: #fff;
  font-size: 13px; font-weight: 600; margin-top: 4px;
}
.auth-submit:hover { background: #2B2D33; }
.auth-submit:disabled { background: #A9AEB8; cursor: wait; }
.auth-error { min-height: 18px; font-size: 10.5px; color: #D4544F; margin-top: 8px; }
.auth-demo { margin-top: auto; font-size: 9.5px; color: #A9AEB8; text-align: center; padding-top: 16px; }
.auth-demo b { color: #555C67; font-weight: 500; }
.auth-foot { text-align: center; font-size: 9px; color: #C3C8D1; margin-top: 8px; }
@media (max-width: 820px) {
  .auth-card { grid-template-columns: 1fr; min-height: 0; }
  .auth-visual { display: none; }
  .auth-panel { padding: 30px 24px; }
  .auth-shell { padding: 14px; }
}
