/* 星准工作台 · 登录页样式（与主应用同源配色） */

:root {
  --brand: #0f2a5c;
  --brand-deep: #0a1c3d;
  --brand-mid: #2a4a8c;
  --accent: #e8a33d;
  --ink: #1a1d24;
  --text: #3f4450;
  --muted: #6b7280;
  --line: #e8eaed;
  --bg: #f5f6f8;
  --font: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.login-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* 左侧品牌区 */
.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 52px;
  color: #fff;
  background: linear-gradient(160deg, #081735 0%, #0f2a5c 52%, #17396f 100%);
  overflow: hidden;
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .32;
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 70%);
  mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 70%);
  pointer-events: none;
}
.login-brand::after {
  content: "";
  position: absolute;
  top: -160px; right: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232, 163, 61, .28), rgba(232, 163, 61, 0) 64%);
  pointer-events: none;
}

.login-logo { position: relative; height: 30px; width: auto; }

.brand-line {
  position: relative;
  margin-top: 30px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-points {
  position: relative;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
}
.brand-points li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}
.brand-foot {
  position: absolute;
  left: 52px;
  bottom: 40px;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .34);
}

/* 右侧表单 */
.login-main {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(232, 163, 61, .07), transparent 65%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(10, 28, 61, .10);
}

.login-card h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.login-card .sub {
  margin: 5px 0 22px;
  font-size: 12px;
  color: var(--muted);
}

.lf { display: block; margin-bottom: 14px; }
.lf > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text);
}
.lf input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.lf input:focus {
  border-color: rgba(15, 42, 92, .4);
  box-shadow: 0 0 0 3px rgba(15, 42, 92, .07);
}

.login-err {
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fdeeee;
  color: #a83232;
  font-size: 12px;
  line-height: 1.6;
}

.login-btn {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep));
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 42, 92, .22);
  transition: box-shadow .16s ease, transform .12s ease, opacity .16s ease;
}
.login-btn:hover { box-shadow: 0 16px 32px rgba(15, 42, 92, .3); }
.login-btn:active { transform: translateY(1px); }
.login-btn:disabled { opacity: .6; cursor: default; box-shadow: none; }

.login-hint {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11px;
  color: #9aa1ad;
}

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-brand { padding: 22px 20px 20px; justify-content: flex-start; }
  .login-logo { height: 24px; }
  .brand-line { margin-top: 12px; font-size: 19px; }
  .brand-points, .brand-foot { display: none; }
  .login-main { padding: 18px 16px 32px; place-items: start center; }
  .login-card {
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(10, 28, 61, .08);
  }
  .login-card h1 { font-size: 20px; }
}

/* 密码可见切换 */
/* 藏掉浏览器自带的密码「眼睛」，避免和 .pwd-eye 并排出现两个 */
input::-ms-reveal,
input::-ms-clear { display: none; width: 0; height: 0; }
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container { visibility: hidden; display: none; }

.pwd-wrap { position: relative; display: block; }
.pwd-wrap input { padding-right: 44px; }
.pwd-eye {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  background: #fff;   /* 不透明，盖住浏览器自带的密码眼睛 */
  color: #8b93a1; cursor: pointer;
  border-radius: 7px;
  transition: color .16s ease, background .16s ease;
}
.pwd-eye:hover { color: var(--brand); background: var(--brand-soft); }
.pwd-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
