/* ---------- xloscloud 登录页（浅色清新 · 居中卡片） ---------- */
/* 页面级主色覆盖（仅登录页生效，body 上定义可稳定覆盖主题变量） */
body {
  --color-primary: #0B9D5C;
  --color-success: #12B36C;
  --brand-600: #12B36C;
  --brand-700: #077A47;
  --ink: #14121A;
  --ink-2: #4A4653;
  --muted: #8B8794;
  --line: #E5EDE8;
  --soft: #F2FAF5;
  background: #063A24;
}

[v-cloak] { display: none; }

{ min-height: 100vh; width: 100vw; }
.login-page {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(720px 500px at 14% 8%, rgba(63,191,130,.22), transparent 62%),
    radial-gradient(620px 480px at 90% 94%, rgba(18,179,108,.26), transparent 60%),
    linear-gradient(150deg, #063A24 0%, #0A5C37 55%, #0B8A51 100%);
}
/* 科技感：网格底纹（漂移） + 横向光束（上下扫描） + 圆环（旋转） + 光晕（浮动） */
.login-page::before {
  content: ""; position: absolute; inset: -44px; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 25%, transparent 78%);
  animation: gridMove 5s linear infinite;
}
@keyframes gridMove { from { transform: translate(0, 0); } to { transform: translate(44px, 44px); } }
.login-page::after {
  content: ""; position: absolute; left: 0; right: 0; top: 10%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120,255,190,.55) 30%, rgba(120,255,190,.55) 70%, transparent);
  filter: blur(.4px);
  animation: beamScan 8s ease-in-out infinite;
}
@keyframes beamScan {
  0% { top: 8%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}
.bg-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.bg-ring-1 { width: 480px; height: 480px; right: -180px; top: -180px; border: 1px dashed rgba(255,255,255,.18); animation: spinSlow 46s linear infinite; }
.bg-ring-2 { width: 340px; height: 340px; left: -130px; bottom: -120px; border: 1px solid rgba(255,255,255,.12); animation: spinSlow 60s linear infinite reverse; }
.bg-ring-3 { width: 180px; height: 180px; left: 16%; top: 12%; border: 1px dashed rgba(255,255,255,.12); animation: spinSlow 30s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.bg-orb-1 { width: 420px; height: 420px; background: rgba(18,179,108,.30); top: -120px; left: -100px; animation: orbFloat1 13s ease-in-out infinite; }
.bg-orb-2 { width: 380px; height: 380px; background: rgba(63,191,130,.24); bottom: -140px; right: -90px; animation: orbFloat2 16s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,50px) scale(1.12); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,-46px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .login-page::before, .login-page::after, .bg-ring, .bg-orb { animation: none !important; }
}

/* 右上角：语言 / 跳转 */
.login-jump-btn { position: absolute; top: 22px; right: 28px; display: flex; align-items: center; gap: 14px; z-index: 5; }
.lang-box { display: flex; align-items: center; gap: 2px; }
.lang-box span {
  cursor: pointer; font-size: 13px; color: rgba(255,255,255,.62); padding: 5px 9px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.lang-box span:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang-box span.active { color: #fff; font-weight: 600; }
.login-jump-btn .btn { border-radius: 8px; }
.login-jump-btn .btn a { color: #fff; text-decoration: none; }

/* 登录卡片 */
.login {
  position: relative; z-index: 2; width: 420px; max-width: 100%; height: 600px;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px;
  padding: 32px 36px 30px;
  border: 1px solid rgba(11,157,92,.08);
  box-shadow: 0 24px 60px rgba(7, 60, 34, .10), 0 4px 14px rgba(7,60,34,.05);
}
.login-text { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.login-text-title { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.login-text-regist { font-size: 13px; color: var(--muted); }
.login-text-regist a { color: var(--color-primary); cursor: pointer; font-weight: 500; }
.login-text-regist a:hover { color: var(--brand-700); }

/* 登录方式 tab */
.login-top {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 26px;
  background: var(--soft); border-radius: 10px;
}
.login-top > div {
  flex: 1; text-align: center; cursor: pointer; padding: 10px 0; font-size: 14px; color: var(--ink-2);
  border-radius: 8px; border: 1px solid transparent; transition: all .22s ease; user-select: none;
}
.login-top > div:hover { color: var(--color-primary); }
.login-top > div.active {
  background: linear-gradient(135deg, #0B9D5C, #12B36C); color: #fff; font-weight: 600;
  box-shadow: 0 6px 14px rgba(11,157,92,.32);
}

/* 表单 */
.login-form { flex: 1; display: flex; flex-direction: column; }
.form-main { flex: 1; display: flex; flex-direction: column; }
.form-main > .form-item:last-child { margin-bottom: 0; }
/* 关键修复：消除继承自 html 的巨大字号产生的行盒撑高 */
.form-item { margin-bottom: 26px; font-size: 0; line-height: 0; }
.form-item .el-button + .el-button { margin-left: 0; }
.el-input__inner {
  height: 46px; line-height: 46px; font-size: 14.5px;
  border-radius: 10px; border: 1px solid var(--line); background: #F9FCFA;
  padding-left: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.el-input__inner:hover { border-color: #C4DCCC; background: #fff; }
.el-input__inner:focus { border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 3px rgba(11,157,92,.12); }
.el-input-group__prepend {
  background: var(--soft); border-color: var(--line);
  border-radius: 10px 0 0 10px; padding: 0 8px;
  min-width: 90px;
}
.el-input-group__prepend .el-input__inner { background: transparent; border: 0; box-shadow: none; height: 44px; }
.el-input-group__prepend .el-select { display: inline-block; min-width: 80px; }
.el-input-group__prepend .el-select .el-input__inner { padding: 0 25px 0 8px; text-align: center; }
.select-input > .el-input__inner { border-radius: 0 10px 10px 0; }
.el-input__suffix { display: inline-flex; align-items: center; }

.code-item { display: flex; gap: 10px; }
.code-item .el-input { flex: 1; }
.code-item .code-btn,
.code-item button {
  flex: none; width: 118px; height: 46px; border-radius: 10px;
  border: 1px solid rgba(11,157,92,.35); background: var(--soft);
  color: var(--brand-700); font-size: 13.5px; cursor: pointer;
  transition: all .2s;
}
.code-item .code-btn:hover { background: #E4F6EC; border-color: var(--color-primary); }

/* 协议与忘记密码 */
.rember-item { display: flex; align-items: center; min-height: 22px; margin: 12px 0 26px; }
.rember-item .el-checkbox { flex: none; }
.rember-item .el-checkbox__label { font-size: 12.5px; }
.rember-item .el-checkbox__inner { width: 16px; height: 16px; }
.read-text { flex: 1; font-size: 12.5px; line-height: 1.6; padding: 0 9px; color: var(--ink-2); cursor: pointer; }
.read-text a { color: var(--color-primary); }
.rember-item > span:last-child a { font-size: 12.5px; color: var(--muted); cursor: pointer; transition: color .2s; }
.rember-item > span:last-child a:hover { color: var(--color-primary); }
.el-checkbox__inner { width: 16px; height: 16px; border-radius: 5px; border-color: #C9D8CE; }
.el-checkbox__inner::after { left: 5px; top: 2px; height: 8px; width: 4px; }
.el-checkbox__input.is-checked .el-checkbox__inner { background: var(--color-primary); border-color: var(--color-primary); }

.read-item { margin: 4px 0 12px; }
.read-item .el-alert { border-radius: 9px; }

/* 登录按钮 */
.login-btn {
  width: 100%; height: 48px; margin-top: 4px;
  font-size: 15.5px; font-weight: 500; letter-spacing: .35em; text-indent: .35em;
  border: 0; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, #0B9D5C 0%, #12B36C 100%);
  box-shadow: 0 10px 22px rgba(11,157,92,.28);
  transition: filter .2s, box-shadow .2s, transform .2s;
}
.login-btn:hover { filter: brightness(1.06); box-shadow: 0 12px 26px rgba(11,157,92,.36); }
.login-btn:active { transform: translateY(1px); }
.pass-btn {
  width: 100%; height: 42px; margin: 8px 0 0; border: 0;
  background: transparent; color: var(--color-primary); font-size: 13.5px;
}
.pass-btn:hover { color: var(--brand-700); background: var(--soft); }

/* 三方登录 */
.line-item { margin-top: 20px; margin-bottom: 6px; }
.line-item .text { font-size: 12px; color: var(--muted); }
.login-type { display: flex; justify-content: center; gap: 16px; margin-bottom: 0; }
.oauth-item {
  cursor: pointer; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.oauth-item:hover { border-color: var(--color-primary); box-shadow: 0 6px 16px rgba(11,157,92,.16); transform: translateY(-2px); }
.oauth-img { width: 20px; height: 20px; }

/* 扫码登录 */
.qr-code { position: absolute; right: 18px; top: 18px; cursor: pointer; opacity: .75; transition: opacity .2s; }
.qr-code:hover { opacity: 1; }
.qr-code svg { width: 30px; height: 30px; }
.qr-box { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.qr-box-img { position: relative; width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qr-box-img img { width: 100%; height: 100%; display: block; cursor: pointer; }
.qr-expire-time {
  position: absolute; inset: 0; background: rgba(255,255,255,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; color: var(--color-primary); font-size: 14px;
}
.qr-expire-time i { font-size: 24px; }
.qr-box-tips { margin-top: 14px; font-size: 13px; color: var(--muted); }
.qr-box-select-account-title { margin: 12px 0; font-size: 14px; color: var(--ink-2); }
.qr-box-back { cursor: pointer; color: var(--color-primary); font-size: 13.5px; }

/* 卡片下方链接 */
.login-foot {
  position: relative; z-index: 2; margin-top: 22px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.login-foot a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.login-foot a:hover { color: #fff; }
.login-foot .dot { color: rgba(255,255,255,.3); }

/* 语言下拉选项 */
.lang-option { display: flex; align-items: center; column-gap: 5px; }
.lang-option .lang-img { width: 30px; height: 20px; display: inline-block; vertical-align: middle; }

@media (max-width: 520px) {
  .login { padding: 28px 22px 26px; }
  .login::before { left: 22px; right: 22px; }
  .login-jump-btn { right: 14px; top: 14px; }
}
