/* 登录页：品牌底图铺满整屏不留白，标题在 logo 上方，表单贴底直接写在底图上（无磨砂卡片） */
.login-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
  /* 浅绿 fallback 应对 cover 模式空隙，避免露白 */
  background: #aed8b8;
  overflow: hidden;
}
.login-view[hidden], .modal-mask[hidden] { display: none; }

/* 品牌底图：cover 模式 + 顶部对齐，logo 思想力紧贴屏顶 */
.login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: block;
}

/* 内容栈：标题顶部居中、表单底部居中 */
.login-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 16px 24px;
  box-sizing: border-box;
  font-family: var(--font-sans, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif);
}

/* 标题：白色字 + 阴影，在 logo 思想力上方 */
.login-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 50, 30, 0.65);
}

/* 表单组合：直接写在底图上，无白底无边框无阴影 */
.login-stage {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

/* 表单字段：白字标签 + 阴影 */
.login-field {
  display: block;
  font-size: 11px;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 50, 30, 0.6);
  letter-spacing: 1px;
}
.login-field input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 3px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 7px;
  font-size: 13px;
  color: #1c2322;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.login-field input::placeholder { color: #98a3a0; }
.login-field input:focus {
  outline: none;
  border-color: rgba(29, 158, 117, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.login-error {
  background: rgba(252, 235, 235, 0.85);
  color: #A32D2D;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 7px;
  margin-bottom: 8px;
}
.login-btn {
  width: 100%;
  background: linear-gradient(180deg, #138866 0%, #0F6E56 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 6px;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(0, 50, 30, 0.35);
  transition: filter 0.15s, transform 0.05s;
}
.login-btn:hover { filter: brightness(1.06); }
.login-btn:active { transform: translateY(1px); }

/* GM 角色切换确认弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 28, 26, 0.35);
}
.modal {
  width: 340px; max-width: calc(100vw - 32px); background: #fff;
  border-radius: 12px; padding: 20px 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.modal h3 { font-size: 15px; font-weight: 500; margin: 0 0 10px; color: #222; }
.modal p { font-size: 13px; color: #5a6060; margin: 0 0 18px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions .btn {
  padding: 8px 16px; border: 1px solid #dfe3e2; border-radius: 8px;
  background: #fff; font-size: 13px; cursor: pointer; color: #3a4040;
}
.modal-actions .btn.primary { background: #0F6E56; border-color: #0F6E56; color: #fff; }
.modal-actions .btn.primary:hover { background: #0c5c47; }

.logout-btn {
  margin-left: 10px; font-size: 12px; color: #8a9090; background: transparent;
  border: 1px solid #dfe3e2; border-radius: 6px; padding: 3px 10px; cursor: pointer;
}
.logout-btn:hover { color: #A32D2D; border-color: #f0c1c1; }
