:root {
  --ink: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e6ebf3;
  --brand: #2563eb;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #080f1d;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
svg { display: block; }

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 12% 8%, rgba(37, 99, 235, 0.3), transparent 60%),
    radial-gradient(760px 520px at 92% 92%, rgba(14, 165, 233, 0.16), transparent 62%),
    linear-gradient(145deg, #08101e 0%, #0b1425 55%, #080e19 100%);
}
.login-page::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 75%);
  pointer-events: none;
}
.login-shell {
  position: relative; z-index: 1;
  width: 100%; max-width: 1000px;
  min-height: 610px;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.login-brand {
  position: relative;
  padding: 40px 44px 34px;
  display: flex; flex-direction: column;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(520px 380px at 105% 10%, rgba(59, 130, 246, 0.36), transparent 62%),
    radial-gradient(420px 380px at 0% 100%, rgba(14, 165, 233, 0.18), transparent 65%),
    linear-gradient(155deg, #0f1d33 0%, #0b1729 55%, #08111f 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}
.brand-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, #3b82f6, #2563eb 58%, #0ea5e9);
  box-shadow: 0 10px 26px -8px rgba(59, 130, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand-logo svg { width: 26px; height: 26px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 20px; letter-spacing: 2px; font-weight: 750; }
.brand-name span { font-size: 8.5px; letter-spacing: 2.6px; color: #7286a4; margin-top: 4px; }
.brand-copy { position: relative; z-index: 2; margin-top: 58px; }
.eyebrow { font-size: 9.5px; letter-spacing: 2.6px; color: #60a5fa; font-weight: 600; }
.brand-copy h1 { margin: 15px 0 0; font-size: 33px; line-height: 1.35; font-weight: 720; letter-spacing: 0.5px; }
.brand-copy p { margin: 16px 0 0; max-width: 340px; font-size: 12.5px; line-height: 1.9; color: #91a5c1; }
.brand-features { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 13px; margin-top: 34px; }
.feature { display: grid; grid-template-columns: 26px 74px 1fr; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; background: rgba(148, 163, 184, 0.055); border: 1px solid rgba(148, 163, 184, 0.09); }
.feature .fi { font-size: 9px; color: #60a5fa; font-weight: 700; letter-spacing: 0.5px; }
.feature strong { font-size: 11px; font-weight: 600; color: #dbeafe; }
.feature > span:last-child { font-size: 10px; color: #6f84a2; }
.brand-foot { position: relative; z-index: 2; margin-top: auto; padding-top: 26px; font-size: 9.5px; color: #526680; letter-spacing: 0.3px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.orb-a { width: 320px; height: 320px; right: -130px; bottom: -120px; background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 66%); }
.orb-b { width: 160px; height: 160px; left: -70px; top: 32%; background: radial-gradient(circle, rgba(14, 165, 233, 0.16), transparent 66%); }

.login-form-wrap { padding: 56px 54px 38px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.login-form-head { margin-bottom: 28px; }
.mobile-logo { display: none; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, #3b82f6, #2563eb); color: #fff; place-items: center; margin-bottom: 22px; }
.mobile-logo svg { width: 27px; height: 27px; }
.welcome { font-size: 10.5px; letter-spacing: 1.6px; color: var(--brand); font-weight: 650; }
.login-form-head h2 { margin: 9px 0 0; font-size: 25px; font-weight: 730; letter-spacing: -0.4px; }
.login-form-head p { margin: 7px 0 0; font-size: 11.5px; color: var(--muted-2); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 11px; color: #475569; font-weight: 550; margin-bottom: 7px; }
.input-wrap { height: 45px; display: flex; align-items: center; gap: 9px; border: 1px solid #dde5f0; border-radius: 10px; padding: 0 12px; background: #fbfcfe; transition: 0.16s; }
.input-wrap:focus-within { border-color: #8fb6fa; background: #fff; box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.1); }
.input-wrap > svg { width: 17px; height: 17px; color: #9aabc2; flex: none; }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.input-wrap input::placeholder { color: #b3bfd0; }
.peek { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #9aabc2; display: grid; place-items: center; }
.peek:hover { background: #eef3fa; color: #475569; }
.peek svg { width: 16px; height: 16px; }
.login-error { min-height: 20px; font-size: 11px; color: #cf3438; margin: -2px 0 8px; display: flex; align-items: center; gap: 5px; }
.login-error.show::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #cf3438; flex: none; }
.remember { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); margin-bottom: 18px; cursor: pointer; user-select: none; }
.remember input { width: 14px; height: 14px; accent-color: var(--brand); }
.login-btn {
  width: 100%; height: 46px; border: 0; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 24px -10px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.16s;
}
.login-btn:hover { background: linear-gradient(180deg, #2f76f5, #1d4ed8); }
.login-btn:active { transform: translateY(1px); }
.login-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-arrow { width: 16px; height: 16px; transition: transform 0.16s; }
.login-btn:hover .btn-arrow { transform: translateX(3px); }
.login-btn.loading .btn-arrow { display: none; }
.login-btn.loading .btn-text::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid #f0f3f8; display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: #a3b0c2; line-height: 1.5; }
.login-foot code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; background: #f4f7fb; border: 1px solid #e8eef7; padding: 1px 4px; border-radius: 3px; color: #64748b; }
.lock-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13); flex: none; }
.page-foot { position: relative; z-index: 1; margin-top: 22px; font-size: 10px; color: #526680; letter-spacing: 0.6px; }

@media (max-width: 880px) {
  .login-shell { grid-template-columns: 1fr; max-width: 460px; min-height: 0; border-radius: 20px; }
  .login-brand { display: none; }
  .login-form-wrap { padding: 38px 30px 30px; }
  .mobile-logo { display: grid; }
  .login-form-head { margin-bottom: 24px; }
  .login-form-head h2 { font-size: 23px; }
}
@media (max-width: 480px) {
  .login-page { padding: 16px 12px; }
  .login-form-wrap { padding: 30px 22px 24px; }
  .login-shell { border-radius: 16px; }
  .brand-copy h1 { font-size: 28px; }
}
