/* auth.css — 登录遮罩 / 顶部用户条（德乐钢铁审核平台） */
.auth-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(56, 120, 204, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(45, 136, 96, 0.18), transparent 55%),
    linear-gradient(160deg, #0f1720 0%, #16202e 55%, #1a2432 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-card {
  width: 380px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.auth-card-head {
  padding: 30px 32px 0;
}

.auth-card-head .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-card-head .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2462b5, #3878cc);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.auth-card-head h1 {
  font-size: 20px;
  color: #0f1720;
  margin: 0;
  letter-spacing: 0.2px;
}

.auth-card-head h1 span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #7b8799;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.auth-card-head .sub {
  font-size: 12.5px;
  color: #7b8799;
  margin: 2px 0 0;
}

.auth-form {
  padding: 22px 32px 12px;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  color: #58667a;
  margin-bottom: 6px;
  font-weight: 500;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cdd4de;
  border-radius: 8px;
  font-size: 14px;
  color: #0f1720;
  background: #f6f8fa;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
  border-color: #3878cc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(56, 120, 204, 0.15);
}

.auth-error {
  display: none;
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-error.show { display: block; }

.auth-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2462b5, #3878cc);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.05s;
  letter-spacing: 2px;
}

.auth-btn:hover { opacity: 0.92; }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: 0.6; cursor: wait; }

.auth-card-foot {
  padding: 6px 32px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #a8b2c0;
}

/* 登录页页脚版本号：比页脚更淡一档，不抢注意力；取不到时为空不占视觉 */
.auth-version {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

/* 顶部用户条（注入到 .top-bar-status） */
.auth-userbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #3e4a5c;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid #e4e8ee;
  white-space: nowrap;
}

.auth-userbar .role-tag {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8f5ef;
  color: #2d8860;
  font-weight: 600;
}

.auth-userbar .role-tag.admin {
  background: #fef3c7;
  color: #b45309;
}

.auth-userbar a {
  color: #2462b5;
  text-decoration: none;
  cursor: pointer;
  margin-left: 4px;
}

.auth-userbar a:hover { text-decoration: underline; }
.auth-userbar a.danger { color: #b91c1c; }

/* 会话过期提示条 */
.auth-expired-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #0f1720;
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 修改密码弹窗 */
.auth-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(15, 23, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-modal {
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.auth-modal h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #0f1720;
}

.auth-modal .tip {
  margin: 0 0 14px;
  font-size: 12px;
  color: #7b8799;
}

.auth-modal .close-x {
  float: right;
  border: 0;
  background: none;
  font-size: 16px;
  color: #a8b2c0;
  cursor: pointer;
  line-height: 1;
}

.auth-modal .auth-field { margin-bottom: 12px; }
.auth-modal .auth-field input { height: 38px; }

.auth-modal .btns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.auth-modal .btns .auth-btn { flex: 1; height: 40px; font-size: 14px; letter-spacing: 1px; }
.auth-modal .btns .ghost {
  background: #e4e8ee;
  color: #3e4a5c;
}

.auth-modal .btns .ghost:hover { background: #d5dbe4; }

.auth-modal .ok-msg {
  padding: 10px 12px;
  border-radius: 8px;
  background: #e8f5ef;
  border: 1px solid #b8e3cd;
  color: #1d6b47;
  font-size: 12.5px;
  margin-top: 10px;
  line-height: 1.5;
}
