/* 工畅宝登录页 — 对齐 www.wijay.cn 深蓝科技风 */
:root {
  --wj-bg: #0e1a33;
  --wj-cyan: #3ec6ff;
  --wj-blue: #4f7cff;
  --wj-orange: #f18541;
  --wj-text: #f3f6fb;
  --wj-muted: #9aa6b8;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body.mes-login {
  min-height: 100vh;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--wj-text);
  background: #0c1a30;
  overflow-x: hidden;
}

.mes-login a { color: inherit; text-decoration: none; }

/* ===== 全屏舞台 ===== */
.ml-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.ml-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 18%, rgba(62,198,255,.28), transparent 52%),
    radial-gradient(ellipse 55% 40% at 15% 78%, rgba(79,124,255,.2), transparent 55%),
    linear-gradient(165deg, #1a3a68 0%, #14305a 45%, #102848 100%);
}

.ml-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: .42;
  animation: mlKenburns 22s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
  display: block;
  pointer-events: none;
}

.ml-bg-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(62,198,255,.12), transparent 52%),
    linear-gradient(180deg, rgba(8,16,32,.35) 0%, rgba(10,22,40,.55) 45%, rgba(8,14,28,.82) 100%);
}

.ml-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .4;
  mask-image: linear-gradient(#000, transparent 88%);
  animation: mlGridDrift 22s linear infinite;
  pointer-events: none;
}

.ml-bg-orbs i {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
  animation: mlOrb 10s ease-in-out infinite;
  pointer-events: none;
}
.ml-bg-orbs i:nth-child(1) {
  width: 160px; height: 160px; left: -40px; top: 22%;
  background: radial-gradient(circle, rgba(62,198,255,.55), transparent 70%);
}
.ml-bg-orbs i:nth-child(2) {
  width: 120px; height: 120px; right: -24px; top: 48%;
  background: radial-gradient(circle, rgba(120,190,255,.42), transparent 70%);
  animation-delay: -3.5s;
}
.ml-bg-orbs i:nth-child(3) {
  width: 180px; height: 180px; left: 32%; bottom: 6%;
  background: radial-gradient(circle, rgba(241,133,65,.28), transparent 70%);
  animation-delay: -6s;
}

@keyframes mlKenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-2%, 2%, 0); }
}
@keyframes mlGridDrift { to { background-position: 64px 64px; } }
@keyframes mlOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .4; }
  50% { transform: translate3d(12px, -16px, 0) scale(1.08); opacity: .7; }
}
@keyframes mlPulse {
  50% { opacity: .45; transform: scale(1.25); }
}
@keyframes mlCardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 顶栏 ===== */
.ml-nav {
  position: relative;
  z-index: 3;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(26,36,51,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ml-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ml-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(26,36,51,.08);
  flex: 0 0 auto;
}

.ml-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ml-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #1a2433;
  line-height: 1.2;
  white-space: nowrap;
}

.ml-brand-name::after {
  content: "";
  display: block;
  width: 42%;
  height: 2px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wj-orange), rgba(241,133,65,0));
}

.ml-brand-sub {
  font-size: 11px;
  color: #8a97a8;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-lang {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 1px solid rgba(26,36,51,.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

.ml-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-right: 1px solid rgba(26,36,51,.08);
  transition: background .15s ease, color .15s ease;
}
.ml-lang a:last-child { border-right: 0; }
.ml-lang a:hover { background: rgba(241,133,65,.08); color: #1a2433; }
.ml-lang a.is-active {
  background: linear-gradient(135deg, #f18541, #ea580c);
  color: #fff;
}

/* ===== 主体 ===== */
.ml-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(36px, 6vh, 72px) 0 clamp(28px, 4vh, 48px);
}

.ml-hero {
  animation: mlCardIn .55s cubic-bezier(.22,1,.36,1) both;
}

.ml-kicker {
  margin: 0 0 18px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(158,231,255,.92);
}

.ml-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 6px 32px rgba(0,0,0,.28);
}

.ml-hero-sub {
  margin: 0 0 22px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.45;
  color: #9ee7ff;
  text-shadow: 0 0 28px rgba(62,198,255,.28);
}

.ml-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.ml-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #41f0a0;
  box-shadow: 0 0 10px rgba(65,240,160,.7);
  animation: mlPulse 1.5s ease-in-out infinite;
}
.ml-pill span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(243,246,251,.9);
}
.ml-pill b {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .1em;
  color: #9ee7ff;
}

.ml-lead {
  margin: 0;
  max-width: 520px;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.85;
  letter-spacing: .02em;
  color: rgba(205,216,230,.95);
}

.ml-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ml-tag {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(12,28,56,.35);
  backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(243,246,251,.88);
}

/* ===== 登录卡片 ===== */
.ml-card-wrap {
  animation: mlCardIn .55s cubic-bezier(.22,1,.36,1) .08s both;
}

.ml-card {
  position: relative;
  padding: 28px 28px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 24px 64px rgba(0,0,0,.28),
    0 0 0 1px rgba(62,198,255,.08);
  color: #1a2433;
  overflow: hidden;
}

.ml-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 22px;
}

.ml-card-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #1a2433;
  line-height: 1.2;
}

.ml-welcome {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #3a4658;
  line-height: 1.4;
}

.ml-subtitle {
  margin: 0;
  font-size: 12px;
  color: #8a97a8;
  letter-spacing: .04em;
  line-height: 1.5;
}

.ml-actions {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.ml-forgot {
  font-size: 13px;
  font-weight: 600;
  color: #3a8fd6;
}
.ml-forgot:hover { color: var(--wj-orange); }

.ml-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.ml-captcha-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.ml-captcha-img-btn {
  flex: 0 0 auto;
  width: 120px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(26,36,51,.12);
  border-radius: 10px;
  background: #f7f9fc;
  cursor: pointer;
  overflow: hidden;
}
.ml-captcha-img-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ml-captcha-img-btn:hover {
  border-color: rgba(62,198,255,.55);
}

.ml-help {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.65;
  color: #8a97a8;
}

.ml-main--center {
  grid-template-columns: 1fr;
  justify-items: center;
}

.ml-field {
  margin-bottom: 14px;
}

.ml-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #5a6a80;
}

.ml-field input,
.ml-field select {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(26,36,51,.12);
  border-radius: 10px;
  background: #f7f9fc;
  color: #1a2433;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ml-field input:focus,
.ml-field select:focus {
  border-color: rgba(62,198,255,.7);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62,198,255,.18);
}

.ml-field select {
  background-image: linear-gradient(45deg, transparent 50%, #8a97a8 50%),
    linear-gradient(135deg, #8a97a8 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}

.ml-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #3ec6ff 0%, #4f7cff 55%, #3a6ef5 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(79,124,255,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ml-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 32px rgba(79,124,255,.42);
}

.ml-submit:active { transform: translateY(0); }

.ml-card-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(26,36,51,.06);
  font-size: 12px;
  line-height: 1.6;
  color: #8a97a8;
  text-align: center;
}

.ml-card-foot a {
  color: #3a8fd6;
  font-weight: 600;
}

.ml-card-foot a:hover { color: var(--wj-orange); }

/* ===== 页脚 ===== */
.ml-footer {
  position: relative;
  z-index: 2;
  padding: 16px 24px 22px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(205,216,230,.72);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .ml-main {
    grid-template-columns: 1fr;
    width: min(480px, calc(100% - 32px));
    padding-top: 28px;
  }
  .ml-hero { text-align: left; }
  .ml-hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .ml-lead { max-width: none; }
  .ml-brand-sub { display: none; }
}

@media (max-width: 480px) {
  .ml-nav { padding: 0 16px; }
  .ml-card { padding: 22px 18px 20px; border-radius: 14px; }
  .ml-tags { display: none; }
}
