/* ===== 星少网络 SaaS · 独立登录页（1:1 白色玻璃风） ===== */
:root {
  --gl-ink: #14171c;
  --gl-sub: #9aa1a9;
  --gl-line: #e7eaee;
  --gl-blue: #2f8ff2;
  --gl-glass-bg: linear-gradient(140deg, rgba(24,28,36,.94) 0%, rgba(48,56,72,.88) 55%, rgba(22,26,34,.95) 100%);
  --gl-glass-border: rgba(255,255,255,.22);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body.glass-login {
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(225,233,246,.55), transparent 65%),
    radial-gradient(800px 700px at 92% 92%, rgba(232,238,247,.6), transparent 60%),
    #ffffff;
  color: var(--gl-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* 背景网格与弧线 */
.gl-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gl-grid {
  display: none;
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(17,24,39,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,24,39,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 440px 560px at 50% 44%, transparent 62%, rgba(0,0,0,.85) 80%);
  -webkit-mask-image: radial-gradient(ellipse 440px 560px at 50% 44%, transparent 62%, rgba(0,0,0,.85) 80%);
}
.gl-arc {
  position: absolute; border: 1px solid rgba(17,24,39,.05); border-radius: 50%;
}
.gl-arc-1 { width: 520px; height: 520px; left: -180px; top: 6%; }
.gl-arc-2 { width: 760px; height: 760px; right: -300px; bottom: -18%; }
.gl-arc-3 { width: 300px; height: 300px; left: 12%; bottom: -8%; }

/* 透明线稿插画背景 */
.gl-photo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .26; filter: saturate(.85); }
.gl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
@media (max-width: 900px) { .gl-photo { opacity: .12; } }

.gl-stage {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.gl-card {
  width: 100%; max-width: 460px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 20px;
  padding: 30px 34px 24px;
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 24px 60px rgba(17,24,39,.09), inset 0 1px 0 rgba(255,255,255,.65);
}
.gl-brand { text-align: center; margin: 0 0 6px; }
.gl-logo { width: 186px; max-width: 70%; height: auto; display: block; margin: 0 auto; }
.gl-title {
  margin: 12px 0 6px;
  font-size: 18px; font-weight: 600; letter-spacing: .5px;
  text-align: center; color: #3a414c;
}
.gl-latency { text-align: center; font-size: 12px; color: var(--gl-sub); letter-spacing: .3px; }
.gl-uptime { text-align: center; margin-top: 12px; }
.gl-uptime-label { font-size: 12px; color: #b3b9bf; letter-spacing: .5px; }
.gl-uptime-value {
  margin-top: 6px; font-size: 16px; font-weight: 600; color: #2b3038;
  letter-spacing: .8px; font-variant-numeric: tabular-nums;
}

.gl-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--gl-line);
  margin: 18px 0 16px;
}
.gl-tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 10px 4px 11px; font-size: 14px; color: #8d949d;
  border-bottom: 2px solid transparent; font-weight: 500;
  font-family: inherit;
}
.gl-tab.active { color: var(--gl-ink); border-bottom-color: #111; }

.gl-form { display: block; }
.gl-field {
  position: relative; display: flex; align-items: center;
  height: 50px; margin-bottom: 12px;
  border: 1px solid rgba(17,24,39,.09); border-radius: 12px;
  background: rgba(255,255,255,.72);
  transition: border-color .2s, box-shadow .2s;
}
.gl-field:focus-within { border-color: #c9ced5; box-shadow: 0 0 0 4px rgba(17,24,39,.04); }
.gl-ico { width: 40px; text-align: center; font-size: 14px; opacity: .5; }
.gl-field input {
  flex: 1; height: 100%; border: 0; outline: none; background: transparent;
  font-size: 14px; color: #22262c; font-family: inherit; padding-right: 8px;
}
.gl-field input::placeholder { color: #b8bec5; }
.gl-eye {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 46px; height: 100%; font-size: 16px; opacity: .45;
}
.gl-code-btn {
  appearance: none; margin-right: 12px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--gl-glass-border);
  background: rgba(24,28,36,.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: 13px; cursor: pointer; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.gl-links { display: flex; justify-content: space-between; align-items: center; margin: 6px 2px 14px; }
.gl-link { color: var(--gl-blue); font-size: 12.5px; text-decoration: none; }
.gl-link-muted { color: #a3a9b0; }

.gl-divider { position: relative; text-align: center; margin: 4px 0 14px; }
.gl-divider::before, .gl-divider::after {
  content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--gl-line);
}
.gl-divider::before { left: 0; }
.gl-divider::after { right: 0; }
.gl-divider span { position: relative; z-index: 1; background: rgba(255,255,255,.8); padding: 0 12px; font-size: 12px; color: #a9afb6; }

.gl-quick { display: flex; justify-content: center; gap: 14px; margin-bottom: 16px; }
.gl-quick-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px rgba(17,24,39,.08);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform .16s, box-shadow .16s;
}
.gl-quick-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(17,24,39,.12); }
.gl-quick-btn .qq { font-size: 12px; font-weight: 700; color: #12b7f5; letter-spacing: .5px; }
.gl-wechat {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(17,24,39,.08);
  background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(7,193,96,.16), 0 2px 6px rgba(17,24,39,.06);
  transition: transform .18s;
}
.gl-wechat:hover { transform: translateY(-2px); }

/* 灵动岛玻璃主按钮 */
.gl-submit {
  width: 100%; height: 52px; border-radius: 15px;
  border: 1px solid var(--gl-glass-border);
  background: var(--gl-glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 3px;
  cursor: pointer; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(255,255,255,.06), 0 14px 30px rgba(17,24,39,.16);
  transition: transform .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.gl-submit::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 3px; height: 42%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0));
  pointer-events: none;
}
.gl-submit:active { transform: scale(.985); }
.gl-submit:disabled { opacity: .7; cursor: default; }

.gl-msg { min-height: 20px; margin-top: 12px; text-align: center; font-size: 13px; }
.gl-msg.err { color: #e5484d; }
.gl-msg.ok { color: #12a150; }

.gl-foot { margin-top: 22px; text-align: center; font-size: 11px; color: #b0b6bc; line-height: 1.8; }
.gl-entry-links a { color: var(--gl-blue); text-decoration: none; font-size: 12px; }

@media (max-width: 560px) {
  .gl-card { padding: 24px 20px 20px; border-radius: 16px; }
  .gl-logo { width: 150px; }
  .gl-title { font-size: 16px; }
  .gl-uptime-value { font-size: 14px; letter-spacing: .4px; }
  .gl-field { height: 46px; }
  .gl-submit { height: 48px; font-size: 14px; }
  .gl-stage { padding: 16px 12px; }
}

/* ===== 注册弹层 ===== */
.register-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.register-card {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid #eceff3; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
  overflow: hidden;
}
.register-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 6px; }
.register-head h3 { font-size: 18px; color: #14171c; margin: 0; }
.register-body { padding: 10px 22px 24px; }
.register-body label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #5b6472; margin-bottom: 12px; }
.register-body input {
  width: 100%; border: 1px solid #e6e9ee; border-radius: 11px;
  padding: 12px 14px; font-size: 14px; color: #14171c; outline: none; box-sizing: border-box;
}
.register-body input:focus { border-color: #c9ced6; box-shadow: 0 0 0 4px rgba(17,24,39,.04); }
.register-msg { min-height: 18px; font-size: 12px; color: #e5484d; margin: 2px 0 8px; }
.register-msg.ok { color: #12a150; }
.register-submit { margin-top: 4px; height: 50px; font-size: 16px; }
.register-tip { margin-top: 12px; font-size: 11px; color: #94a3b8; text-align: center; }

/* 底部小字：彩虹渐变闪耀 */
.gl-foot {
  display: block; width: fit-content; max-width: 100%; margin: 22px auto 0; text-align: center;
  background: linear-gradient(90deg,#ff4d6d 0%,#ff9a3c 15%,#ffe066 30%,#47e5bc 46%,#5b8cff 64%,#c471f5 82%,#ff4d6d 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  animation: glShine 2.4s ease-in-out infinite;
  font-weight: 600;
}
.gl-foot .gl-entry-links a {
  color: transparent !important;
  background: inherit; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes glShine { 0%,100% { filter: brightness(1) drop-shadow(0 0 2px rgba(255,200,110,.25)); } 50% { filter: brightness(1.32) drop-shadow(0 0 8px rgba(255,160,220,.55)); } }
@media (prefers-reduced-motion: reduce) { .gl-foot { animation: none; filter: none; } }
