/* ==========================================================================
   NCP 服务器 · Windows 拟物化登录 / 注册彩蛋样式
   支持主题：Windows 2000 / Windows XP / Vista-7 Aero / Longhorn Build 4074
   ========================================================================== */

.win-auth-only { display: none; }
.win-flag-svg { display: block; width: 100%; height: 100%; }

/* ----------------------------------------------------------------
   1. Windows 2000：经典「登录到 Windows」3D 对话框 + NT 横幅
   ---------------------------------------------------------------- */
html[data-switch-style="win2k"] .auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 110px);
  padding: 26px 14px;
}
html[data-switch-style="win2k"] .auth-card {
  max-width: 470px;
  padding: 0 0 22px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #d4d0c8 !important;
  color: #000000 !important;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #404040,
    inset 2px 2px 0 #dfdfdf,
    inset -2px -2px 0 #808080,
    4px 6px 16px rgba(0, 0, 0, .42) !important;
}
html[data-switch-style="win2k"] .auth-card.wide { max-width: 560px; }
html[data-switch-style="win2k"] .auth-card > :not(.win-auth-only) {
  padding-inline: 24px;
}
html[data-switch-style="win2k"] .auth-card :is(h2, label, .check, .small, .strong) {
  color: #000000 !important;
}
html[data-switch-style="win2k"] .auth-card :is(.muted, .hint, .dim, .tiny) {
  color: #3d3d3d !important;
}
html[data-switch-style="win2k"] .auth-card a:not(.btn):not(.auth-tabs a) {
  color: #0033aa !important;
}
html[data-switch-style="win2k"] .auth-card :is(.input, select, textarea) {
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 0 !important;
  border: 1px solid #808080 !important;
  box-shadow: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf !important;
}
html[data-switch-style="win2k"] .auth-card .auth-tabs {
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid #808080;
  padding: 0;
  gap: 2px;
  margin-bottom: 18px;
}
html[data-switch-style="win2k"] .auth-card .auth-tabs a {
  border-radius: 0;
  background: #c8c4bc;
  color: #222;
  border: 1px solid #808080;
  border-bottom: 0;
  box-shadow: inset 1px 1px 0 #fff;
}
html[data-switch-style="win2k"] .auth-card .auth-tabs a.active {
  background: #d4d0c8;
  color: #000;
  font-weight: 700;
  margin-bottom: -1px;
  padding-bottom: 8px;
}
html[data-switch-style="win2k"] .w2k-logon-chrome {
  display: block;
  margin-bottom: 16px;
}
html[data-switch-style="win2k"] .w2k-logon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  margin: 3px 3px 0;
  padding: 0 7px;
  background: linear-gradient(90deg, #0a246a 0%, #3a6ea5 55%, #a6caf0 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
html[data-switch-style="win2k"] .w2k-logon-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin: 2px 3px 0;
  background: linear-gradient(125deg, #0a2b6b 0%, #1d5ba8 58%, #4d8ad4 100%);
  border-bottom: 3px solid #d48a1c;
  color: #ffffff;
}
html[data-switch-style="win2k"] .w2k-logon-banner-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
html[data-switch-style="win2k"] .w2k-logon-banner-sub {
  font-size: 11px;
  opacity: .9;
  margin-top: 2px;
}
html[data-switch-style="win2k"] .w2k-logon-flag {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}
html[data-switch-style="win2k"] .win-logon-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .85);
}

/* ----------------------------------------------------------------
   2. Windows XP：经典 Luna 蓝色「欢迎使用」双栏登录体验
   ---------------------------------------------------------------- */
html[data-switch-style="winxp"] .auth-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 110px);
  padding: 64px 16px;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 34%, rgba(168, 200, 255, .44), transparent 55%),
    linear-gradient(180deg, #5a7edc 0%, #4e71d3 55%, #4668c9 100%);
  border: 1px solid #00237d;
}
html[data-switch-style="winxp"] .auth-wrap::before,
html[data-switch-style="winxp"] .auth-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  background: #00309c;
  z-index: 1;
}
html[data-switch-style="winxp"] .auth-wrap::before {
  top: 0;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, #98b4f4 25%, #ffffff 50%, #98b4f4 75%, rgba(255,255,255,0) 100%) 1;
}
html[data-switch-style="winxp"] .auth-wrap::after {
  bottom: 0;
  border-top: 2px solid;
  border-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, #d57d28 35%, #ffc788 50%, #d57d28 65%, rgba(255,255,255,0) 100%) 1;
}
html[data-switch-style="winxp"] .xp-logon-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: min(100%, 900px);
  align-items: center;
}
@media (min-width: 820px) {
  html[data-switch-style="winxp"] .xp-logon-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
  }
}
html[data-switch-style="winxp"] .xp-logon-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-right: 28px;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, .36);
}
@media (max-width: 819px) {
  html[data-switch-style="winxp"] .xp-logon-left {
    align-items: center;
    text-align: center;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .32);
    padding-bottom: 16px;
  }
}
html[data-switch-style="winxp"] .xp-logon-flag {
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
}
html[data-switch-style="winxp"] .xp-logon-welcome {
  font-family: "Trebuchet MS", Tahoma, "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 700;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, .42);
}
html[data-switch-style="winxp"] .xp-logon-tip {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .94);
  line-height: 1.6;
}
html[data-switch-style="winxp"] .auth-card {
  position: relative;
  z-index: 2;
  max-width: 540px;
  border-radius: 6px !important;
  border: 2px solid #0831d9 !important;
  background: linear-gradient(180deg, #ffffff 0%, #ece9d8 100%) !important;
  color: #111111 !important;
  box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(0, 20, 70, .44) !important;
}
html[data-switch-style="winxp"] .auth-card :is(h2, label, .check, .small, .strong) {
  color: #111111 !important;
}
html[data-switch-style="winxp"] .auth-card :is(.muted, .hint, .dim, .tiny) {
  color: #4b4f5c !important;
}
html[data-switch-style="winxp"] .auth-card a:not(.btn):not(.auth-tabs a) {
  color: #003c9d !important;
}
html[data-switch-style="winxp"] .auth-card :is(.input, select, textarea) {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #7f9db9 !important;
  border-radius: 2px !important;
}
html[data-switch-style="winxp"] .auth-card .auth-tabs {
  border-radius: 4px;
  background: #e1decf !important;
  border: 1px solid #aca899 !important;
}
html[data-switch-style="winxp"] .auth-card .auth-tabs a {
  border-radius: 3px;
  background: transparent !important;
  color: #333333 !important;
  border: 1px solid transparent;
}
html[data-switch-style="winxp"] .auth-card .auth-tabs a:hover:not(.active) {
  background: rgba(255, 255, 255, .55) !important;
  color: #000000 !important;
}
html[data-switch-style="winxp"] .auth-card .auth-tabs a.active {
  background: linear-gradient(180deg, #fff, #e8f1fe) !important;
  color: #003c74 !important;
  border: 1px solid #7f9db9 !important;
}
html[data-switch-style="winxp"] .auth-card [type="submit"].btn-primary {
  background: linear-gradient(180deg, #62ca62 0%, #31a031 50%, #248424 100%) !important;
  border-color: #196819 !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 6px rgba(0, 0, 0, .2) !important;
}
html[data-switch-style="winxp"] .win-logon-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  margin-top: 18px;
  color: #ffffff;
  font-size: 12px;
  opacity: .92;
}

/* ----------------------------------------------------------------
   3. Windows Aero / Basic：Vista & Windows 7 水晶玻璃登录窗
   ---------------------------------------------------------------- */
html[data-switch-style="aero"] .auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: calc(100vh - var(--nav-h) - 110px);
  padding: 28px 16px;
}
html[data-switch-style="aero"] .aero-logon-avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 8px;
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(205, 232, 255, .44) 48%, rgba(120, 175, 235, .36) 52%, rgba(255, 255, 255, .6) 100%);
  border: 1px solid rgba(28, 78, 138, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 8px 22px rgba(10, 42, 82, .24);
  color: #1c5ba6;
}
html[data-switch-style="aero"] .aero-logon-avatar svg { width: 52px; height: 52px; }
html[data-switch-style="aero"] .auth-card {
  max-width: 500px;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(235, 244, 252, .94) 100%) !important;
  border: 1px solid rgba(72, 124, 184, .65) !important;
  color: #0e1e2c !important;
  box-shadow: 0 14px 40px rgba(0, 24, 58, .3), inset 0 1px 0 #ffffff !important;
}
html[data-switch-style="aero"][data-theme="dark"] .auth-card {
  background: linear-gradient(180deg, #1b2633 0%, #121a24 100%) !important;
  border-color: rgba(128, 188, 255, .36) !important;
  color: #ecf4fc !important;
}
html[data-switch-style="aero"] .auth-card .auth-tabs {
  border-radius: 4px;
}
html[data-switch-style="aero"] .win-logon-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-2);
}

/* ----------------------------------------------------------------
   4. Windows Longhorn Build 4074（WinHEC 2004）：Jade 窗口里的登录对话框
      照 4074「关于 Windows」对话框画：灰绿色半透明边框 + 浅灰对话框底，
      顶部黑色横幅（四色旗 + Microsoft® Windows® Code Name / Longhorn + © 2004），
      下面是 4074 用户头像框；打开时像 DWM 那样从 92% 缩放淡入。
      颜色都取 css/longhorn.css 里的变量（Jade / Aero / Slate / Plex、深色外观自动跟随）。
   ---------------------------------------------------------------- */
.lh-logon-name, .lh-logon-copy { display: none; }
html[data-switch-style="longhorn"] .auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: calc(100vh - var(--nav-h) - 220px);
  padding: 28px 14px 36px;
}
/* 横幅里的四色旗引用的渐变 id 定义在第一面旗（这个隐藏的徽标）里：不能 display:none，否则渐变失效、旗子画不出来 */
html[data-switch-style="longhorn"] .win-logon-hero { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); visibility: hidden; pointer-events: none; }
html[data-switch-style="longhorn"] .auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 470px;
  padding: 0 5px 5px !important;
  border: 0 !important;
  border-radius: 7px 7px 3px 3px !important;
  background: linear-gradient(var(--lh-face) 0 0) content-box, linear-gradient(var(--lh-frame) 0 0) border-box !important;
  box-shadow: 0 0 0 1px var(--lh-frame-edge), inset 0 0 0 1px var(--lh-frame-hi), 0 14px 38px rgb(0 0 0 / .4) !important;
  color: var(--text) !important;
}
html[data-switch-style="longhorn"] .auth-card.wide { max-width: 560px; }
html[data-switch-style="longhorn"] .auth-card > :not(.win-auth-only) { padding-inline: 24px; }
html[data-switch-style="longhorn"] .auth-card > :last-child { padding-bottom: 20px; }
html[data-switch-style="longhorn"] .w2k-logon-chrome { display: block; margin: 0 -5px 16px; }
html[data-switch-style="longhorn"] .w2k-logon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 10px;
  background: var(--lh-title);
  border-radius: 7px 7px 0 0;
  box-shadow: inset 0 1px var(--lh-frame-hi);
  color: var(--lh-title-ink);
  text-shadow: var(--lh-title-shadow);
  font-size: 12.5px;
  font-weight: 700;
}
html[data-switch-style="longhorn"] .w2k-logon-bar span:last-child { font-weight: 400; letter-spacing: .2em; opacity: .8; }
html[data-switch-style="longhorn"] .w2k-logon-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 5px;
  min-height: 82px;
  padding: 10px 16px 18px;
  background: linear-gradient(180deg, #000 0%, #0c0c0c 100%);
  border-bottom: 3px solid #e78a1e;
  box-shadow: inset 0 -1px #ffc06a;
  color: #fff;
}
html[data-switch-style="longhorn"] .w2k-logon-banner > div:first-child { display: none; }
html[data-switch-style="longhorn"] .w2k-logon-flag { order: -1; width: 54px; height: 54px; flex: none; }
html[data-switch-style="longhorn"] .lh-logon-name { display: grid; line-height: 1; }
html[data-switch-style="longhorn"] .lh-logon-name small { font-size: 11px; font-weight: 600; letter-spacing: .01em; opacity: .92; margin-bottom: 2px; }
html[data-switch-style="longhorn"] .lh-logon-name b { font-family: var(--font-light, "Segoe UI"); font-size: 40px; font-weight: 300; letter-spacing: -.01em; }
html[data-switch-style="longhorn"] .lh-logon-copy { display: block; position: absolute; right: 12px; bottom: 5px; font-size: 9.5px; opacity: .75; }
html[data-switch-style="longhorn"] .aero-logon-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border: 3px solid #fff;
  border-radius: 4px;
  background: linear-gradient(180deg, #c9d3dd 0%, #8a98a6 100%);
  box-shadow: 0 0 0 1px #6b7681, 0 2px 6px rgb(0 0 0 / .3);
  color: #fff;
}
html[data-switch-style="longhorn"] .aero-logon-avatar svg { width: 36px; height: 36px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .4)); }
html[data-switch-style="longhorn"] .auth-card :is(h2, label, .check, .small, .strong) { color: var(--text); }
html[data-switch-style="longhorn"] .auth-card h2 { font-family: var(--font-light, inherit); font-weight: 300; color: var(--lh-head); }
html[data-switch-style="longhorn"] .auth-card :is(.muted, .hint, .dim, .tiny) { color: var(--text-2); }
html[data-switch-style="longhorn"] .auth-card .auth-tabs { margin-inline: 24px; }
html[data-switch-style="longhorn"] .auth-card .btn-primary { width: 100%; }
html[data-switch-style="longhorn"] .win-logon-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}

/* 打开动画：DWM 式的缩放淡入（点徽标可重播；减少动态效果时直接显示） */
html[data-switch-style="longhorn"] .lh-anim-ready .auth-card { opacity: 0; }
html[data-switch-style="longhorn"] .lh-anim-play .auth-card { animation: lhLogonOpen .34s cubic-bezier(.2, .9, .3, 1) .05s forwards; }
@keyframes lhLogonOpen {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-switch-style="longhorn"] .lh-anim-ready .auth-card { opacity: 1 !important; animation: none !important; }
}

/* 非 XP 主题无缝拍平两栏壳层 */
.xp-logon-shell { display: contents; }
html[data-switch-style="winxp"] .xp-logon-shell { display: grid; }
