/* ============================================================
   Studio 登录页 · 月光梦境创作室（/studio/login/）
   桌面：1536×1024 舞台 cover 缩放（--slu-s 由 JS 设置），
        表单列锚定拱门安全区（中心 x=1182）。
   中小屏(≤920px)：独立浅色玻璃卡居中，背景偏向月亮场景，可滚动。
   ============================================================ */

:root { --slu-s: 1; }

:root {
  --slu-ink: #2b3d66;      /* 深蓝文字 */
  --slu-ink-soft: #5b6d99;
  --slu-line: #b9cdf0;     /* 淡蓝细边 */
  --slu-blue: #4a6fe3;
}

html, body { margin: 0; padding: 0; }

body.studio-star-login {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #cfd4f2;
  color: var(--slu-ink);
  overflow: hidden;
  min-height: 100vh;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- 顶栏（跟随视口，不随舞台缩放） ---------- */
.slu-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 20px;
  pointer-events: none;
}
.slu-topbar a { pointer-events: auto; }
.slu-pill {
  display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .75);
  color: var(--slu-ink); font-size: 14px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(60, 70, 140, .14);
  transition: background .15s ease;
}
.slu-pill:hover { background: rgba(255, 255, 255, .85); }
.slu-brand {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 2px 10px rgba(60, 70, 140, .14);
}
.slu-brand img { height: 30px; width: auto; display: block; }

/* ---------- 桌面舞台 ---------- */
.slu-stage {
  position: fixed; top: 50%; left: 50%;
  width: 1536px; height: 1024px;
  transform: translate(-50%, -50%) scale(var(--slu-s));
  transform-origin: center center;
}
.slu-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* 表单列：拱门安全区 x=1025..1340（中心 1182），标题 y≈250 起 */
.slu-col {
  position: absolute;
  left: 1020px; top: 246px;
  width: 324px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.slu-title {
  width: 238px; height: auto; display: block;
  filter: drop-shadow(0 4px 14px rgba(80, 60, 160, .18));
}
.slu-tag {
  margin: 20px 0 0;
  font-size: 15px; font-weight: 600;
  color: #43538a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
  letter-spacing: .5px;
}

/* ---------- 表单 ---------- */
.slu-form { width: 100%; margin-top: 34px; }
.slu-h {
  margin: 0 0 16px;
  font-size: 21px; font-weight: 800; letter-spacing: 2px;
  color: var(--slu-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

.slu-field { position: relative; margin-bottom: 18px; }
.slu-field input {
  width: 100%; height: 46px;
  box-sizing: border-box;
  padding: 0 44px 0 42px;
  border: 1px solid var(--slu-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--slu-ink);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.slu-field input::placeholder { color: #93a3c8; }
.slu-field input:focus {
  border-color: var(--slu-blue);
  box-shadow: 0 0 0 3px rgba(90, 120, 230, .18);
}
.slu-ico {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: #7d8fbd;
  pointer-events: none;
}
.slu-ico svg { width: 100%; height: 100%; display: block; }
.slu-eye {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: transparent; color: #7d8fbd;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.slu-eye svg { width: 19px; height: 19px; }
.slu-eye:hover { color: var(--slu-blue); }
.slu-eye.on { color: var(--slu-blue); }

.slu-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 2px 22px;
}
.slu-check {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--slu-ink);
  cursor: pointer; user-select: none;
}
.slu-check input {
  width: 16px; height: 16px; margin: 0;
  accent-color: var(--slu-blue);
  cursor: pointer;
}
.slu-link {
  font-size: 14px; color: var(--slu-blue);
  text-decoration: none;
}
.slu-link:hover { text-decoration: underline; }

.slu-submit {
  width: 100%; height: 50px;
  border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #8fb3f2, #6f8cec);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 3px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(90, 110, 220, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.slu-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.slu-submit:active { transform: translateY(0); }
.slu-submit.loading { opacity: .75; cursor: wait; transform: none; }

.slu-msg {
  width: 100%; box-sizing: border-box;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 235, 235, .95);
  border: 1px solid #eec2c2;
  color: #a33a3a;
  font-size: 13.5px; line-height: 1.55;
  text-align: left;
}

/* ---------- 中小屏（默认隐藏，≤920px 启用） ---------- */
.slu-m { display: none; }

@media (max-width: 920px) {
  body.studio-star-login {
    overflow: auto;
    background: #d9def5 url() no-repeat;
  }
  .slu-stage { display: none; }

  body.studio-star-login::before {
    content: "";
    position: fixed; inset: 0; z-index: -1;
    background: url("../studio-login/studio-login-background.jpg") no-repeat;
    background-size: cover;
    background-position: 26% 42%;
  }

  .slu-m {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 86px 18px 40px;
    min-height: 100vh;
    box-sizing: border-box;
  }
  .slu-mcard {
    width: 100%; max-width: 380px;
    box-sizing: border-box;
    background: rgba(245, 246, 255, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 22px;
    box-shadow: 0 14px 44px rgba(60, 70, 140, .22);
    padding: 26px 24px 28px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
  }
  .slu-mtitle { width: 200px; height: auto; display: block; }
  .slu-m .slu-tag { margin-top: 12px; }
  .slu-m .slu-form { margin-top: 22px; }

  .slu-topbar { padding: 12px 14px; }
  .slu-brand img { height: 26px; }
  .slu-pill { padding: 8px 13px; font-size: 13px; }
}

/* 手机再窄一点：微调 */
@media (max-width: 380px) {
  .slu-mcard { padding: 22px 18px 24px; }
  .slu-mtitle { width: 180px; }
}

/* ---------- 隐藏站点挂件（mini 播放器 / 桌宠 / 管理栏） ---------- */
body.studio-star-login .angus-mini,
body.studio-star-login .site-pet,
body.studio-star-login #wpadminbar { display: none !important; }
