:root {
  --ink: #1d1d1f;
  --muted: #86868b;
  --line: rgba(29, 29, 31, .08);
  --paper: #f5f5f7;
  --surface: #ffffff;
  --soft: #f7f7f9;
  --blue: #0071e3;
  --danger: #b42318;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, .96), transparent 38%),
    linear-gradient(180deg, #fbfbfd 0%, var(--paper) 100%);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

button,
input {
  font: inherit;
}

.login-shell {
  width: min(980px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.login-panel {
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 34px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .16);
}

.member-head {
  min-height: 82px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-lockup p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.scope-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #6e6e73;
  background: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.member-body {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.login-card,
.plan-card,
.member-footer {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.login-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, var(--soft));
}

.card-title {
  display: grid;
  gap: 5px;
}

.card-title strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.card-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(29, 29, 31, .12);
  border-radius: 12px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .12);
}

.agreement-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.agreement-row input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

button:hover { background: #363638; }
button:disabled { cursor: wait; opacity: .62; }

button.secondary {
  color: var(--ink);
  background: #fff;
}

.verification-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.verification-button {
  min-width: 112px;
  padding: 0 10px;
  font-size: 12px;
}

.website-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

.status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.status.error { color: var(--danger); }
.status.success { color: #1f7a3d; }

.register-form {
  margin: 0;
}

.login-card form[hidden] {
  display: none !important;
}

.login-card button[hidden] {
  display: none !important;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
}

.plan-card.pro {
  color: #fff;
  background: linear-gradient(145deg, #111, #2f2f33);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.plan-title {
  display: grid;
  gap: 9px;
}

.plan-title span {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 950;
}

.plan-card.pro .plan-title span {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.plan-title strong {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.plan-card.pro li { color: #fff; }

.plan-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--ink);
  vertical-align: middle;
}

.plan-card.pro li::before { background: #fff; }

.member-footer {
  margin-top: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
}

.member-footer strong {
  font-size: 14px;
  font-weight: 900;
}

.member-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .login-shell {
    width: min(560px, calc(100% - 24px));
    padding: 18px 0;
  }

  .login-panel {
    padding: 18px;
    border-radius: 26px;
  }

  .member-head,
  .member-footer {
    display: grid;
  }

  .member-body,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .scope-label { width: max-content; }
}

@media (max-width: 460px) {
  .login-shell { width: calc(100% - 16px); }
  .login-panel { padding: 14px; }
  .brand-logo { width: 52px; height: 52px; }
  h1 { font-size: 28px; }
  .plan-grid { gap: 10px; }
  .plan-card { padding: 16px; }
  .verification-actions { grid-template-columns: minmax(0, 1fr) 104px; }
  .verification-button { min-width: 104px; }
}
