/* ===== 登录页专用：Windows 98 桌面，不使用 Webcore 闪图 ===== */
body.login98 {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  min-height: 100vh;
  font-family: "Tahoma", "MS Sans Serif", "Microsoft YaHei", sans-serif;
  color: #000;
  background-color: #008080;
  background-image: none !important;
  background-attachment: scroll;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* 已登录跳转前先别露出登录桌面，避免 PWA 开屏闪一下 */
body.login98.login-pending .desktop98 {
  visibility: hidden;
}

body.login98.login-pending::before {
  content: '加载中…';
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a3d2a;
  color: #c8e6d0;
  font-size: 14px;
  z-index: 9999;
}

body.login98.theme-pink,
body.login98.has-custom-bg {
  background-color: #008080;
  background-image: none !important;
}

.desktop98 {
  position: relative;
  min-height: 100vh;
  padding: 24px 16px 56px;
  box-sizing: border-box;
}

.desktop98-icons {
  position: absolute;
  top: 16px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
  pointer-events: none;
}

.desk-icon {
  width: 72px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  text-shadow: 1px 1px 0 #000;
}

.desk-icon-img {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 4px;
  filter: drop-shadow(1px 1px 0 #000);
}

.login98-window {
  position: relative;
  z-index: 5;
  max-width: 420px;
  margin: 12vh auto 0;
  box-shadow: 2px 2px 0 #000;
}

.login98-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #808080;
}

.login98-banner p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #222;
  font-weight: normal;
}

.login98-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #000080;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
}

.taskbar98 {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  z-index: 20;
  box-sizing: border-box;
}

.start98 {
  width: auto !important;
  margin: 0 !important;
  padding: 3px 10px !important;
  background: #c0c0c0 !important;
  color: #000 !important;
  border: 2px solid !important;
  border-color: #fff #404040 #404040 #fff !important;
  font-family: "Tahoma", "MS Sans Serif", sans-serif !important;
  font-size: 12px !important;
  font-weight: bold !important;
  text-shadow: none !important;
}

.taskbar98-time {
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 2px 10px;
  font-size: 12px;
  background: #c0c0c0;
  min-width: 52px;
  text-align: center;
}

.login98-hr {
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  margin: 14px 0;
}

.login98-guest {
  font-size: 12px;
}

.login98-guest strong {
  display: block;
  margin-bottom: 4px;
}

.login98-guest p {
  margin: 0 0 8px;
  color: #333;
}

.login98-guest button {
  width: auto !important;
  margin-top: 6px !important;
}

@media (max-width: 600px) {
  .desktop98-icons {
    display: none;
  }

  .login98-window {
    margin-top: 8vh;
  }
}
