:root {
  --brand: #1651aa;
  --brand-2: #1f6fd6;
  --ink: #142033;
  --muted: #6b7585;
  --line: #d9e6ee;
  --wx: #07c160;
  --paper: #fff;
  --field: #f7f8fa;
}

html, body { height: 100%; }

body.auth-page {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0f1c33;
}

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 56px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(15, 28, 51, 0.35) 0%, rgba(15, 28, 51, 0.82) 55%, rgba(15, 28, 51, 0.92) 100%),
    url("/project/img/bg/1.jpg") center / cover no-repeat;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(31, 111, 214, 0.35), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(22, 81, 170, 0.25), transparent 40%);
  pointer-events: none;
}

.auth-hero > * { position: relative; z-index: 1; }

.auth-hero .auth-brand {
  margin: 0 0 14px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.auth-hero .auth-brand:hover { color: #fff; text-decoration: none; }

.auth-hero .auth-tagline {
  margin: 0;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.auth-hero .auth-mark {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(31, 111, 214, 0.08), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card .auth-brand-mobile {
  display: none;
}

.auth-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.auth-desc {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.auth-form .auth-field {
  margin-bottom: 16px;
}

.auth-form .auth-field > p,
.auth-form .auth-field > label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2a3548;
}

.auth-form input.input,
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff !important;
  color: var(--ink) !important;
  font-size: 15px;
  line-height: 48px;
  outline: none;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.auth-form input::placeholder {
  color: #9aa3b2;
}

.auth-form input:hover {
  border-color: #b8c3d4;
}

.auth-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 81, 170, 0.12) !important;
}

/* 浏览器自动填充时统一外观，避免蓝底/黄底错乱 */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  border: 1px solid #d8dee8;
  transition: background-color 99999s ease-out;
}

.auth-form .login-btn,
.auth-btn {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.auth-form .login-btn:hover,
.auth-btn:hover {
  filter: brightness(1.05);
  color: #fff;
}

.auth-form .login-btn:active {
  transform: translateY(1px);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 20px;
}

.auth-links a {
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-wx {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--wx) !important;
  font-weight: 700 !important;
}

.auth-wx svg { width: 18px; height: 18px; }

.auth-tip {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  background: rgba(22, 81, 170, 0.06);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.auth-tip a { color: var(--brand); text-decoration: none; }
.auth-tip a:hover { text-decoration: underline; }

.auth-foot {
  margin-top: 28px;
  font-size: 12px;
  color: #939cac;
}

.auth-foot a {
  color: inherit;
  text-decoration: none;
}

/* 旧结构兼容 */
#vmxLogin,
#vmxLogin .signin,
#vmxLogin .rightInfo {
  position: static !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  left: auto !important;
  top: auto !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 220px;
    justify-content: flex-end;
    padding: 28px 24px;
  }

  .auth-hero .auth-brand {
    font-size: 36px;
  }

  .auth-hero .auth-tagline {
    font-size: 14px;
    max-width: none;
  }

  .auth-panel {
    padding: 28px 20px 36px;
    align-items: flex-start;
  }

  .auth-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .auth-hero {
    min-height: 180px;
    padding: 24px 18px;
  }

  .auth-card {
    max-width: none;
  }
}
