:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  background: #0b0e12;
  color: #eef2f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #0b0e12;
}

.login-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #11161c;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center;
  background-repeat: no-repeat;
}

.login-background.has-image { background-size: cover; }

.login-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,8,11,.9), rgba(5,8,11,.58) 52%, rgba(5,8,11,.82));
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
}

.brand-panel h1 {
  margin: 22px 0 10px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-panel p { margin: 0; color: #aab5bf; font-size: 17px; }

.market-mark { height: 72px; display: flex; align-items: flex-end; gap: 12px; }
.market-mark i { position: relative; display: block; width: 13px; background: #d95050; }
.market-mark i::before { content: ""; position: absolute; width: 2px; background: inherit; top: -15px; bottom: -13px; left: 6px; }
.market-mark i:nth-child(1) { height: 28px; background: #3bb273; }
.market-mark i:nth-child(2) { height: 46px; }
.market-mark i:nth-child(3) { height: 35px; background: #3bb273; }
.market-mark i:nth-child(4) { height: 58px; }
.market-mark i:nth-child(5) { height: 48px; }

.login-panel {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  background: rgba(18,23,29,.94);
  padding: 30px;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}

.login-panel header span { color: #62c38c; font: 700 11px/1 "Segoe UI", sans-serif; letter-spacing: 1.5px; }
.login-panel h2 { margin: 10px 0 28px; font-size: 25px; letter-spacing: 0; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: #aeb8c1; font-size: 13px; }
input {
  width: 100%; height: 44px; border: 1px solid #39434d; border-radius: 4px;
  background: #0f1419; color: #f3f5f7; padding: 0 12px; font-size: 15px; outline: none;
}
input:focus { border-color: #4eae7a; box-shadow: 0 0 0 3px rgba(78,174,122,.14); }
.password-input-wrap { position: relative; display: block; }
.password-input-wrap input { padding-right: 46px; }
.password-visibility-toggle {
  position: absolute; top: 2px; right: 2px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 3px;
  background: transparent; color: #9eabb6; font-size: 17px; font-weight: 400;
}
.password-visibility-toggle:hover { background: rgba(255,255,255,.07); color: #eef2f5; }
.password-visibility-toggle[aria-pressed="true"] { color: #62c38c; }
.password-visibility-toggle:focus-visible { outline: 2px solid #4eae7a; outline-offset: -2px; }
button {
  height: 44px; border: 0; border-radius: 4px; background: #238657; color: white;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
button:hover { background: #2a9864; }
button:disabled { opacity: .55; cursor: wait; }
.login-error { min-height: 20px; margin: -4px 0; color: #ff7a7a; font-size: 13px; }
footer { position: relative; z-index: 1; display: flex; justify-content: center; gap: 16px; padding: 18px; color: #84909a; font-size: 12px; }
footer a { color: #9aabb8; text-decoration: none; }

@media (max-width: 760px) {
  body { overflow: auto; }
  .login-shell { width: min(100% - 28px, 420px); grid-template-columns: 1fr; gap: 30px; padding: 52px 0 30px; }
  .brand-panel h1 { font-size: 36px; }
  .brand-panel p { font-size: 14px; }
  .market-mark { height: 46px; transform: scale(.72); transform-origin: left bottom; }
  .login-panel { padding: 24px; }
  footer { flex-wrap: wrap; }
}
