:root {
  --ink: #17201d;
  --muted: #68736f;
  --surface: #ffffff;
  --page: #f5f7f6;
  --line: #dce3e0;
  --accent: #167a55;
  --accent-dark: #0e5e40;
  --accent-soft: #e8f4ef;
  --warning: #966515;
  --warning-soft: #fbf2df;
  --danger: #b3453b;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; stroke-width: 1.9; }

.login-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}

.login-header,
.login-footer {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.login-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(16, 24, 23, .14);
  transition: transform .18s ease;
}
.brand:hover .brand-mark { transform: rotate(-3deg) scale(1.035); }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 14px; line-height: 1; }
.brand-wordmark { font-weight: 800; }
.brand-x { color: #08a994; }
.brand-fun { color: #d83d80; }
.brand small { color: var(--muted); font-size: 11px; }
.system-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.system-label svg { width: 16px; height: 16px; color: var(--accent); }

.login-main {
  display: grid;
  width: min(1060px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(56px, 9vw, 120px);
  align-items: center;
  margin: 0 auto;
  padding: 58px 0;
}

.capability-panel { min-width: 0; max-width: 570px; }
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(34px, 4.1vw, 52px);
  font-weight: 650;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.lead {
  max-width: 520px;
  margin: 20px 0 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.capability-list { border-top: 1px solid var(--line); }
.capability-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.capability-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
}
.capability-icon.huazhu { background: #e8f3f1; color: #23746b; }
.capability-icon.wanlitong { background: var(--warning-soft); color: var(--warning); }
.capability-icon.incoming { background: #ecefed; color: #66706c; }
.capability-item > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.capability-item strong { font-size: 14px; }
.capability-item span { color: var(--muted); font-size: 12px; }
.capability-item .item-status { width: 18px; color: var(--accent); }
.capability-item.muted .item-status { color: #8a9490; }

.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(26, 42, 35, 0.07);
}
.login-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.login-card-heading h2 { margin: 0 0 5px; font-size: 20px; font-weight: 650; }
.login-card-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.login-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); }
form { display: grid; }
label { margin: 0 0 8px; font-size: 12px; font-weight: 650; }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.input-wrap svg {
  position: absolute;
  left: 13px;
  width: 17px;
  color: #7b8682;
  pointer-events: none;
}
input {
  width: 100%;
  height: 44px;
  border: 1px solid #cfd8d4;
  border-radius: 6px;
  outline: 0;
  padding: 0 13px 0 42px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #9ba4a0; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 122, 85, .11); }
button[type="submit"] {
  display: inline-flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background .15s, border-color .15s;
}
button[type="submit"]:hover,
button[type="submit"]:focus-visible { border-color: var(--accent-dark); background: var(--accent-dark); }
button[type="submit"]:disabled { cursor: wait; opacity: .65; }
.form-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-status.is-error { color: var(--danger); }
.account-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.account-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }

.login-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #808a86;
  font-size: 11px;
}

@media (max-width: 1040px) and (min-width: 821px) {
  .login-main {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
  }
  h1 { font-size: 38px; }
  .login-card { padding: 26px; }
}

@media (max-width: 820px) {
  .login-main { grid-template-columns: 1fr; gap: 44px; padding: 44px 0 56px; }
  .capability-panel { max-width: none; }
  .login-card { width: 100%; max-width: 480px; }
}

@media (max-width: 560px) {
  .login-header, .login-footer, .login-main { width: min(100% - 32px, 1060px); }
  .login-header { min-height: 68px; }
  .system-label { font-size: 0; }
  .login-main { padding-top: 34px; gap: 34px; }
  h1 { font-size: 32px; }
  .lead { margin-bottom: 24px; }
  .login-card { padding: 23px 20px; }
  .login-footer { gap: 16px; }
}
