:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17262b;
  background: #f4f7f8;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; }
button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.72)),
    url("/assets/revenue-flow-v1.png") center / cover no-repeat;
}

.login-stage { width: min(100%, 1080px); min-width: 0; display: grid; grid-template-columns: 1fr 390px; gap: 10vw; align-items: center; }
.login-brand { display: flex; align-items: center; gap: 18px; }
.brand-symbol, .secure-mark { display: grid; place-items: center; color: #087a83; border: 1px solid rgba(8,122,131,.2); background: rgba(255,255,255,.78); }
.brand-symbol { width: 58px; height: 58px; }
.brand-symbol svg { width: 28px; height: 28px; }
.login-brand p, .form-heading p { margin: 0 0 5px; color: #587077; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.login-brand h1 { margin: 0; font-size: clamp(30px, 5vw, 54px); line-height: 1.06; letter-spacing: 0; }

.login-form { min-width: 0; padding: 32px; border: 1px solid #dce6e8; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(38,66,72,.14); }
.form-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.secure-mark { width: 42px; height: 42px; }
.secure-mark svg { width: 21px; }
.form-heading h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.login-form label { display: block; margin-top: 17px; }
.login-form label > span { display: block; margin-bottom: 8px; color: #4d636a; font-size: 13px; font-weight: 700; }
.input-wrap { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #cfdbde; background: #fff; transition: border-color .18s, box-shadow .18s; }
.input-wrap:focus-within { border-color: #0a8e98; box-shadow: 0 0 0 3px rgba(10,142,152,.11); }
.input-wrap svg { width: 18px; color: #789097; }
.input-wrap input { flex: 1; width: auto; min-width: 0; border: 0; outline: 0; color: #17262b; background: transparent; }
.login-error { min-height: 20px; margin: 11px 0 3px; color: #c33d37; font-size: 13px; }
.login-form button { width: 100%; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; color: #fff; background: #087a83; cursor: pointer; transition: background .18s, transform .18s; }
.login-form button:hover { background: #066972; transform: translateY(-1px); }
.login-form button:disabled { opacity: .55; cursor: wait; transform: none; }
.login-form button svg { width: 18px; }
.system-state { grid-column: 1 / -1; display: flex; gap: 22px; align-items: center; color: #4d636a; font-size: 12px; font-weight: 700; }
.system-state span { display: inline-flex; align-items: center; gap: 7px; }
.system-state svg { width: 15px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #19a46a; box-shadow: 0 0 0 5px rgba(25,164,106,.12); }

@media (max-width: 760px) {
  .login-shell { align-items: start; padding: 30px 18px; }
  .login-stage { grid-template-columns: 1fr; gap: 30px; }
  .login-brand h1 { font-size: 34px; }
  .login-form { padding: 26px 22px; }
  .system-state { grid-column: auto; flex-wrap: wrap; gap: 12px 20px; }
}
