/* ============ LinkWork 官网登录 / 头像角标 ============ */
/* 主蓝 #2f6bff · 圆角 · 无衬线，风格与 style.css 保持一致 */

/* 登录弹窗遮罩 */
.lw-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

/* 登录卡片 */
.lw-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 28px 24px 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.lw-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 28px; height: 28px;
  border: none; background: transparent;
  font-size: 22px; line-height: 1; color: #99a;
  cursor: pointer; border-radius: 8px;
}
.lw-modal__close:hover { background: #f2f4f8; color: #334; }
.lw-modal__title {
  margin: 0 0 18px;
  font-size: 19px; font-weight: 700; color: #1a1f36;
}

/* 表单 */
.lw-form { display: flex; flex-direction: column; gap: 14px; }
.lw-field { display: flex; flex-direction: column; gap: 6px; }
.lw-field > span { font-size: 13px; color: #5b6478; }
.lw-field input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1f36;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.lw-field input:focus {
  border-color: #2f6bff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}
.lw-error {
  min-height: 18px;
  font-size: 13px; color: #e5484d;
}
.lw-submit {
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #2f6bff;
  color: #fff;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.lw-submit:hover { background: #245ae0; }
.lw-submit:disabled { opacity: .6; cursor: default; }
.lw-tip { margin: 2px 0 0; font-size: 12px; color: #99a3b5; text-align: center; }

/* 头像角标（替换原登录按钮的位置） */
.lw-ava-wrap {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
}
.lw-ava {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  background: #eef1f6;
}
.lw-ava--text {
  background: #2f6bff;
  color: #fff;
  font-size: 13px; font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* 下拉菜单 */
.lw-dropdown {
  position: fixed;
  z-index: 10000;
  min-width: 120px;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  padding: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.lw-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 14px; color: #2a2f45;
  cursor: pointer;
}
.lw-dd-item:hover { background: #f2f5fb; }
