/* 登录组件样式 (内联渲染: 面板放在宿主位置(header), 不再浮动) */
.aw-root { position: static; display: inline-flex; align-items: center; }
.aw-panel {
  display: inline-flex;
  align-items: center;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1;
}
.aw-login-btn {
  background: #2b6cff; color: #fff; border: none; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.aw-login-btn:hover { background: #1f57d6; }
.aw-user { position: relative; }
.aw-name {
  display: inline-block; background: rgba(0,0,0,.6); color: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; user-select: none;
}
.aw-menu {
  position: absolute; right: 0; top: 42px; background: #fff; color: #333;
  border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 6px; min-width: 120px;
}
.aw-menu.hidden, .aw-modal.hidden { display: none; }
.aw-menu-btn {
  width: 100%; text-align: left; background: none; border: none; padding: 8px 10px;
  border-radius: 6px; cursor: pointer; font-size: 14px; color: #c0392b;
}
.aw-menu-btn:hover { background: #fbeaea; }

.aw-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 100000;
}
.aw-box {
  background: #fff; color: #222; border-radius: 14px; padding: 24px;
  width: 320px; box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.aw-title { margin: 0 0 16px; font-size: 18px; text-align: center; }
.aw-form { display: flex; flex-direction: column; gap: 12px; }
.aw-input {
  border: 1px solid #d9d9d9; border-radius: 8px; padding: 10px 12px; font-size: 14px; outline: none;
}
.aw-input:focus { border-color: #2b6cff; }
.aw-btn {
  background: #2b6cff; color: #fff; border: none; border-radius: 8px;
  padding: 11px; font-size: 15px; cursor: pointer;
}
.aw-btn:hover { background: #1f57d6; }
.aw-btn:disabled { opacity: .6; cursor: default; }
.aw-msg { color: #c0392b; font-size: 13px; min-height: 16px; }
.aw-switch { text-align: center; font-size: 13px; color: #666; margin-top: 4px; }
.aw-switch a { color: #2b6cff; text-decoration: none; cursor: pointer; }
.aw-switch a:hover { text-decoration: underline; }
