:root {
  --green: #07c160;
  --green-dark: #05a04f;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6f8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  display: flex;
  height: 100%;
}

/* ── 品牌区 ── */
.brand {
  width: 40%;
  max-width: 520px;
  min-width: 340px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(7, 193, 96, 0.16), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(6, 182, 212, 0.14), transparent 50%),
    #0d1b16;
  color: #fff;
}

.brand-logo { display: flex; align-items: center; }
.brand-logo-img { height: 62px; }

.brand-title {
  margin-top: 40px;
  font-size: 34px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand-sub { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.62); }

.brand-points {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.brand-points .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 10px;
  vertical-align: middle;
}

/* ── 登录面板 ── */
.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
  overflow-y: auto;
}

.panel-head h1 { margin: 0; font-size: 28px; font-weight: 700; }
.panel-head p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.platforms {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
}
.loading-tip { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

.pf {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.16s;
  text-align: left;
}
.pf:hover { border-color: #c9d2cc; transform: translateY(-1px); }
.pf.active {
  border-color: var(--green);
  background: #f2fbf6;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.12);
}
.pf-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: #f3f4f6;
  flex-shrink: 0;
}
.pf-body { min-width: 0; }
.pf-name { font-size: 14px; font-weight: 600; }
.pf-desc {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-state {
  position: absolute; top: 10px; right: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #d1d5db;
}
.pf-state.online { background: var(--green); box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.15); }

/* ── 表单 ── */
.form { margin-top: 26px; max-width: 620px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.12);
}
.field.hidden { display: none; }

.hint {
  min-height: 20px;
  font-size: 12.5px;
  color: #dc2626;
  margin-bottom: 6px;
}
.hint.ok { color: var(--green-dark); }

.submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.16s, transform 0.06s;
}
.submit:hover { background: var(--green-dark); }
.submit:active { transform: translateY(1px); }
.submit:disabled { background: #9fd9bb; cursor: not-allowed; }

.panel-foot {
  margin-top: 40px;
  max-width: 620px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #9ca3af;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .brand { width: 100%; max-width: none; min-width: 0; padding: 28px 24px; }
  .brand-title { margin-top: 20px; font-size: 24px; }
  .brand-points { display: none; }
  .panel { padding: 28px 24px; }
  .platforms { grid-template-columns: 1fr 1fr; }
}
