/* 登录 / 注册 / 账户中心 专用样式 */
.auth-body {
  background: linear-gradient(160deg, #0a1a3a 0%, #0d2a5c 45%, #14377a 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-wrap { width: min(440px, 100%); display: flex; flex-direction: column; gap: 20px; }
.auth-brand { justify-content: center; color: #fff; }
.auth-brand .brand-text { color: #fff; }
.auth-lang { display: flex; justify-content: center; }
.auth-lang .lang-switch { border-color: rgba(255,255,255,.3); }
.auth-lang .lang-switch button { color: rgba(255,255,255,.7); }
.auth-lang .lang-switch button.active { background: var(--blue-500); color: #fff; }

.auth-card {
  background: #fff; border-radius: 20px; padding: 34px 32px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 26px; background: var(--bg-alt); padding: 5px; border-radius: 12px; }
.auth-tab {
  flex: 1; border: none; background: transparent; padding: 11px; border-radius: 9px;
  font-size: 15px; font-weight: 600; cursor: pointer; color: var(--muted); font-family: inherit; transition: all .2s;
}
.auth-tab.active { background: #fff; color: var(--blue-600); box-shadow: 0 4px 12px -6px rgba(10,26,58,.3); }

.auth-form h2 { color: var(--blue-900); font-size: 24px; font-weight: 800; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.auth-form label { display: block; margin-bottom: 6px; }
.auth-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; margin-bottom: 16px; transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.btn-block { width: 100%; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; }
.auth-switch a { color: var(--blue-500); font-weight: 600; }
.auth-msg { text-align: center; font-size: 14px; color: var(--danger); min-height: 20px; margin-top: 4px; }
.auth-msg.ok { color: var(--blue-600); }
.auth-back { text-align: center; color: rgba(255,255,255,.7); font-size: 14px; }
.auth-back:hover { color: #fff; }

/* ===== 账户中心 ===== */
.acct-body { background: var(--bg-alt); min-height: 100vh; }
.acct-nav { background: #fff; border-bottom: 1px solid var(--line); }
.acct-nav-inner {
  width: min(1160px, 92%); margin: 0 auto; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.acct-user { display: flex; align-items: center; gap: 12px; }
.acct-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--cyan));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.acct-user-meta { line-height: 1.2; }
.acct-user-meta strong { display: block; font-size: 14px; color: var(--ink); }
.acct-user-meta span { font-size: 12px; color: var(--muted); }
.acct-main { width: min(1160px, 92%); margin: 30px auto 60px; }

.acct-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.ov-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.ov-card .lbl { font-size: 12px; color: var(--muted); }
.ov-card .val { font-size: 22px; font-weight: 800; color: var(--blue-900); margin-top: 6px; word-break: break-all; }

.acct-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.acct-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.acct-card-head h3 { font-size: 19px; color: var(--blue-900); }
.acct-card-head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.acct-table th, .acct-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.acct-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.badge-role { padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--blue-50); color: var(--blue-600); }
.badge-role.agent { background: #f0fdf4; color: #16a34a; }
.badge-status { padding: 3px 10px; border-radius: 999px; font-size: 12px; background: #f0fdf4; color: #16a34a; }
.badge-status.off { background: #fef2f2; color: #dc2626; }
.row-actions { display: flex; gap: 8px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

/* Modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(10, 26, 58, 0.5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px;
}
.modal { background: #fff; border-radius: 16px; padding: 28px; width: min(420px, 100%); }
.modal h3 { color: var(--blue-900); margin-bottom: 18px; }
.modal label { display: block; margin-bottom: 6px; }
.modal input, .modal select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit; margin-bottom: 14px;
}
.modal input:focus, .modal select:focus { outline: none; border-color: var(--blue-400); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

@media (max-width: 720px) {
  .acct-overview { grid-template-columns: 1fr; }
  .acct-table { display: block; overflow-x: auto; }
}
