/* ============================================================
   登录 / 等待审批 / 账号审批
   白底 + 蓝色调：左侧品牌面板用蓝色渐变压住视觉，右侧表单留白
   ============================================================ */

/* 登录态隐藏应用外壳，让登录页铺满整屏 */
body.auth-mode { background: #fff; }
body.auth-mode .app { display: block; padding: 0; max-width: none; }
body.auth-mode .sidebar,
body.auth-mode .topbar,
body.auth-mode .dock,
body.auth-mode .rank-card { display: none !important; }
body.auth-mode .main { display: block; }
body.auth-mode .view { padding: 0; }

/* ---------------- 登录页骨架 ---------------- */
.auth-screen {
  min-height: 100vh; display: grid; place-items: center;
  padding: 36px 20px 48px;
}
.auth-theme-toggle {
  position: fixed; top: 18px; right: 22px; z-index: 5;
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 19px; line-height: 1;
}
.auth-theme-toggle:hover { border-color: var(--pri); color: var(--pri); }
.auth-card {
  width: min(1000px, 100%);
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  background: #fff; border: 1px solid var(--glass-brd);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 34px 70px -46px rgba(23, 62, 116, .55), 0 6px 18px -14px rgba(23, 62, 116, .18);
}

/* 左侧：蓝色品牌面板 */
.auth-brand {
  position: relative; overflow: hidden;
  padding: 40px 34px 32px;
  background:
    radial-gradient(90% 120% at 6% -20%, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(120% 120% at 110% 120%, rgba(12, 48, 116, .55) 0%, rgba(12, 48, 116, 0) 62%),
    linear-gradient(150deg, #2f7bff 0%, #1f63d8 58%, #1a52b8 100%);
  color: #fff;
  display: flex; align-items: flex-start; justify-content: flex-start;
}
.auth-brand::after {
  content: ''; position: absolute; right: -90px; bottom: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .06), 0 0 0 68px rgba(255, 255, 255, .04);
  pointer-events: none;
}
.auth-brand-lockup { position: relative; z-index: 2; }
.ab-logo {
  display: block; width: min(178px, 100%); height: auto;
  background: transparent; box-shadow: none;
  filter: brightness(0) invert(1); opacity: .96;
}
.auth-brand-title {
  margin: 12px 0 0; color: rgba(255, 255, 255, .94);
  font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: .04em;
}
.auth-brand-mascot {
  position: absolute; z-index: 1; right: -42px; bottom: -24px;
  width: min(410px, 92%); height: auto; object-fit: contain;
  pointer-events: none; user-select: none;
}
.auth-brand h2 {
  margin: 6px 0 0; font-size: 27px; line-height: 1.22; font-weight: 750; letter-spacing: -.02em;
}
.auth-brand h2 span { display: block; font-size: 19px; font-weight: 600; opacity: .92; margin-top: 2px; }
.ab-p { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 24em; }
.ab-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.ab-list li {
  position: relative; padding-left: 18px; font-size: 12.5px; line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}
.ab-list li i {
  position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: #ffb066; box-shadow: 0 0 0 3px rgba(255, 176, 102, .26);
}
.ab-foot {
  margin-top: auto; padding-top: 20px; font-size: 11px; letter-spacing: .04em;
  color: rgba(255, 255, 255, .6);
}

/* 右侧：表单 */
.auth-form { padding: 42px 42px 34px; display: flex; flex-direction: column; }

:root[data-theme="dark"] body.auth-mode { background: #0f141c; }
:root[data-theme="dark"] .auth-card { background: #18212c; border-color: #2d3a4a; box-shadow: 0 34px 70px -46px rgba(0, 0, 0, .85), 0 6px 18px -14px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .auth-form { color: #e8eef7; }
:root[data-theme="dark"] .af-tabs { background: #202d3d; border-color: #3a4a5d; }
:root[data-theme="dark"] .af-tab { color: #b5c0cf; }
:root[data-theme="dark"] .af-tab.on { background: #2f6bff; color: #fff; }
:root[data-theme="dark"] .auth-theme-toggle { background: #18212c; color: #e8eef7; border-color: #53657a; }

/* 登录 / 注册 两个入口 */
.af-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border-radius: 15px; margin-bottom: 22px;
  background: rgba(232, 242, 254, .92); border: 1px solid rgba(198, 222, 247, .95);
}
.af-tab {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 10px 0; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: #5c7796;
  transition: color .16s, background .16s, box-shadow .2s;
}
.af-tab:hover { color: #1b5ecb; }
.af-tab.on {
  color: #14539f; background: #fff;
  box-shadow: 0 8px 16px -12px rgba(20, 64, 124, .55), inset 0 1px 0 #fff;
}
/* 从登录自动切到注册时的说明条 */
.af-note {
  margin-top: -6px; margin-bottom: 4px; padding: 10px 12px; border-radius: 12px;
  font-size: 12px; line-height: 1.55; color: #0f5f39;
  background: rgba(232, 248, 238, .95); border: 1px solid rgba(178, 228, 199, .95);
}
/* 底部「还没有账号？立即注册」 */
.af-switch {
  margin-top: 12px; text-align: center; font-size: 12.5px; color: #64798f;
}
.af-switch button {
  border: 0; background: none; cursor: pointer; font: inherit; padding: 2px 4px;
  color: #17518f; font-weight: 700; border-radius: 6px;
}
.af-switch button:hover { color: #0d3f78; text-decoration: underline; }
/* 注册页底部：初始密码说明 */
.af-foot-tip {
  margin: 16px 0 0; font-size: 11.5px; line-height: 1.6; color: #7d8ea6; text-align: center;
}
.af-foot-tip b { color: #17518f; letter-spacing: .06em; }
.af-hd h3 { margin: 0; font-size: 23px; font-weight: 750; letter-spacing: -.02em; color: #0d2137; }
.af-hd p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: #64798f; }
.af-hd p b { color: #17518f; }

.af-field { display: block; margin-top: 18px; }
.af-field > span {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 600; color: #4a647f; letter-spacing: .02em;
}
.af-input {
  display: flex; align-items: center; gap: 6px;
  height: 48px; padding: 0 8px 0 12px;
  border: 1px solid rgba(184, 211, 242, .95); border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px -1px rgba(24, 64, 120, .08);
  transition: border-color .18s, box-shadow .18s;
}
.af-input:focus-within { border-color: rgba(47, 123, 255, .62); box-shadow: 0 0 0 4px rgba(47, 123, 255, .12); }
.af-input > input,
.af-input > select {
  flex: 1 1 auto; min-width: 0; height: 100%;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 0 !important; font-size: 15px !important; color: #10203a; outline: none;
  letter-spacing: .02em;
}
.af-input > input::placeholder { color: #9bacc0; font-size: 13.5px; letter-spacing: 0; }
.af-input > select { font-size: 14px !important; cursor: pointer; }
.af-password-toggle {
  flex: none; border: 0; background: transparent; color: #2563eb; cursor: pointer;
  padding: 6px 4px; font: inherit; font-size: 12px; white-space: nowrap;
}
.af-password-toggle:hover { color: #1749b5; text-decoration: underline; }
.af-cc {
  flex: none; font-size: 13.5px; font-weight: 600; color: #3c6a9e;
  padding-right: 8px; border-right: 1px solid rgba(203, 226, 250, .95);
}

/* 演示验证码提示：蓝色底 + 橙色数字（提示类才用橙） */

.af-err {
  display: none; margin-top: 10px; padding: 9px 12px; border-radius: 12px;
  font-size: 12.5px; color: #b3261e; background: rgba(255, 235, 233, .96);
  border: 1px solid rgba(240, 197, 193, .95);
}
.af-err.show { display: block; }
@keyframes afShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}
.af-err.shake { animation: afShake .32s ease; }

.af-btn {
  width: 100%; height: 48px; margin-top: 18px; border: 0; cursor: pointer;
  border-radius: 14px; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  box-shadow: 0 14px 26px -16px rgba(47, 123, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .16s, box-shadow .2s, filter .16s;
}
.af-btn:hover { transform: translateY(-1px); filter: saturate(112%); box-shadow: 0 18px 30px -16px rgba(47, 123, 255, .95); }
.af-btn:active { transform: translateY(0) scale(.995); }

.af-back {
  width: 100%; margin-top: 10px; border: 0; background: none; cursor: pointer;
  font-size: 12.5px; color: #64798f; padding: 6px; border-radius: 10px;
}
.af-back:hover { color: #17518f; background: rgba(233, 244, 255, .8); }

/* 演示账号 */
.af-demo { margin-top: auto; padding-top: 22px; }
.af-demo summary {
  cursor: pointer; list-style: none; font-size: 12px; color: #7d8ea6;
  padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(184, 211, 242, .95);
  transition: color .16s, border-color .16s;
}
.af-demo summary::-webkit-details-marker { display: none; }
.af-demo summary:hover { color: #17518f; border-color: rgba(47, 123, 255, .45); }
.af-demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.af-demo-list button {
  display: flex; align-items: center; gap: 6px; cursor: pointer; text-align: left;
  padding: 8px 10px; border-radius: 11px; border: 1px solid rgba(214, 234, 255, .95);
  background: #fff; font: inherit; transition: border-color .16s, background .16s, transform .16s;
}
.af-demo-list button:hover { border-color: rgba(47, 123, 255, .45); background: rgba(246, 251, 255, 1); transform: translateY(-1px); }
.af-demo-list b { font-size: 12.5px; color: #16283d; }
.af-demo-list em { font-style: normal; font-size: 11px; color: #7d8ea6; font-variant-numeric: tabular-nums; }
.af-demo-list span { margin-left: auto; font-size: 10.5px; color: #3c6a9e; white-space: nowrap; }

/* ---------------- 等待审批 ---------------- */
.auth-pending {
  width: min(520px, 100%); background: #fff; border: 1px solid var(--glass-brd);
  border-radius: 26px; padding: 34px 34px 26px; text-align: center;
  box-shadow: 0 30px 66px -48px rgba(23, 62, 116, .55);
}
.ap-ico {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue), var(--blue-2));
  box-shadow: 0 16px 30px -18px rgba(47, 123, 255, .9);
  color: #fff; font-size: 26px; font-weight: 800;
}
.ap-ico.is-rej { background: linear-gradient(140deg, #e2493e, #c62828); box-shadow: 0 16px 30px -18px rgba(198, 40, 40, .8); }
.ap-dot {
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); animation: apPulse 1.6s infinite;
}
@keyframes apPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); }
  70% { box-shadow: 0 0 0 13px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.auth-pending h3 { margin: 0 0 8px; font-size: 21px; font-weight: 750; color: #0d2137; letter-spacing: -.01em; }
.auth-pending > p { margin: 0 0 18px; font-size: 13px; line-height: 1.65; color: #64798f; }
.ap-rows {
  text-align: left; border: 1px solid rgba(214, 234, 255, .95); border-radius: 16px;
  background: rgba(246, 251, 255, .8); overflow: hidden;
}
.ap-rows > div {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 11px 15px; font-size: 12.5px;
}
.ap-rows > div + div { border-top: 1px solid rgba(214, 234, 255, .9); }
.ap-rows span { color: #7d8ea6; }
.ap-rows b { color: #16283d; font-weight: 650; font-variant-numeric: tabular-nums; }
.ap-st { color: #b26a00 !important; }
.ap-st.is-rej { color: #c62828 !important; }
.ap-act { margin-top: 18px; }
.ap-act .af-btn { margin-top: 0; }
.ap-foot { margin-top: 14px; font-size: 11px; color: #9bacc0; }

/* ---------------- 账号审批（后台） ---------------- */
.apv-list { display: grid; gap: 10px; }
.apv-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(214, 234, 255, .95);
  box-shadow: 0 8px 20px -18px rgba(23, 62, 116, .5);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.apv-card:hover { border-color: rgba(47, 123, 255, .38); box-shadow: 0 12px 26px -18px rgba(47, 123, 255, .5); transform: translateY(-1px); }
.apv-av {
  flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  font-size: 17px; font-weight: 750; color: #17518f;
  background: linear-gradient(150deg, rgba(233, 244, 255, 1), rgba(206, 230, 255, .95));
  border: 1px solid rgba(184, 211, 242, .95);
}
.apv-main { flex: 1 1 auto; min-width: 0; }
.apv-name { font-size: 14.5px; font-weight: 700; color: #10243d; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apv-want {
  font-size: 11px; font-weight: 600; color: #17518f; padding: 2px 8px; border-radius: 999px;
  background: rgba(47, 123, 255, .09); border: 1px solid rgba(47, 123, 255, .18);
}
.apv-meta { margin-top: 3px; font-size: 11.5px; color: #7d8ea6; }
.apv-note { margin-top: 5px; font-size: 11.5px; color: #4a647f; }
.apv-act { flex: none; display: flex; gap: 8px; }
.apv-empty { padding: 26px 6px; text-align: center; font-size: 12.5px; color: #9bacc0; }

/* 授权弹窗 */
.apv-form { display: grid; gap: 12px; }
.apv-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apv-frow label, .apv-full { display: block; font-size: 12px; color: #4a647f; font-weight: 600; }
.apv-frow input, .apv-full textarea { width: 100%; margin-top: 6px; }
.apv-frow input:disabled { background: rgba(240, 245, 251, .9); color: #7d8ea6; }
.apv-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apv-role {
  display: grid; grid-template-columns: 18px 1fr; grid-template-rows: auto auto; gap: 1px 8px;
  padding: 10px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(214, 234, 255, .95); background: #fff;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.apv-role input { grid-row: 1 / span 2; align-self: center; width: 15px; height: 15px; margin: 0; }
.apv-role b { grid-column: 2; font-size: 12.5px; color: #16283d; }
.apv-role em { grid-column: 2; font-style: normal; font-size: 11px; color: #7d8ea6; line-height: 1.4; }
.apv-role.on { border-color: rgba(47, 123, 255, .55); background: rgba(233, 244, 255, .75); box-shadow: inset 0 0 0 1px rgba(47, 123, 255, .18); }
.apv-note-box {
  font-size: 11.5px; color: #17518f; background: rgba(233, 244, 255, .9);
  border: 1px solid rgba(184, 211, 242, .9); border-radius: 12px; padding: 9px 12px; line-height: 1.5;
}
.apv-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.apv-st { font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; }
.apv-st.active { color: #15803d; background: rgba(22, 163, 74, .1); }
.apv-st.rejected { color: #c62828; background: rgba(226, 73, 62, .1); }
.apv-st.disabled { color: #64798f; background: rgba(240, 245, 251, .95); }

/* 侧栏审批红点 */
.nav-badge {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800;
  min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 999px;
  color: #fff; background: linear-gradient(135deg, #ff7a2f, #ffa14d);
  box-shadow: 0 4px 10px -6px rgba(255, 122, 47, .9);
}

/* 人员表里的手机号 */
.u-phone { margin-top: 2px; font-size: 11px; color: #7d8ea6; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 小屏：品牌面板收到顶部 */
@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand { padding: 26px 24px 22px; gap: 10px; }
  .ab-logo { width: 148px; }
  .auth-brand-title { margin-top: 8px; font-size: 15px; }
  .auth-brand-mascot { right: -20px; bottom: -62px; width: min(330px, 74%); }
  .auth-brand h2 { font-size: 22px; }
  .ab-list, .ab-foot { display: none; }
  .auth-form { padding: 26px 22px 24px; }
  .af-demo-list { grid-template-columns: 1fr; }
  .apv-roles { grid-template-columns: 1fr; }
  .apv-frow { grid-template-columns: 1fr; }
  .apv-card { flex-wrap: wrap; }
  .apv-act { width: 100%; justify-content: flex-end; }
}
