/* ============================================================
   账号相关样式：登录 / 注册页 + 顶栏账号区
   ============================================================ */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(900px 500px at 15% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 65%),
    radial-gradient(700px 420px at 95% 100%, color-mix(in srgb, #7aa2ff 14%, transparent), transparent 60%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(20, 32, 54, .05), 0 24px 60px rgba(20, 32, 54, .10);
  padding: 28px 28px 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.auth-brand .logo {
  width: 42px; height: 42px;
  font-size: 19px;
}
.auth-brand h1 { margin: 0; font-size: 19px; letter-spacing: .4px; }
.auth-brand p { margin: 0; font-size: 12px; color: var(--muted); }

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.auth-tabs button {
  flex: 1;
  padding: 9px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.auth-tabs button.active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(20, 32, 54, .10);
}

.auth-hint {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.55;
}
.auth-hint b { color: var(--brand-deep); }

.auth-error {
  margin: 0 0 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bad-soft);
  border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--line));
  color: var(--bad);
  font-size: 12.5px;
}

.auth-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------- 顶栏账号 ---------------- */

.account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 8px;
  border-radius: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  max-width: 210px;
}
.account .avatar {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--brand), #7aa2ff);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.account .acc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.account .acc-text b {
  font-size: 12.5px;
  font-weight: 600;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account .acc-text span { font-size: 10.5px; color: var(--muted); }

.account button {
  flex: none;
  width: 26px; height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.account button:hover { background: var(--card); color: var(--text); }

@media (max-width: 760px) {
  .account .acc-text { display: none; }
  .account { padding: 4px 4px 4px 5px; }
}

/* 关闭注册时隐藏切换条 */
.auth-tabs[hidden] { display: none !important; }
