* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(245,158,11,.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(244,63,94,.16), transparent 50%),
    linear-gradient(160deg, #0f1419 0%, #151b24 45%, #0c1016 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  -webkit-user-select: none;
  user-select: none;
}
input,
textarea,
select,
[contenteditable="true"],
.allow-select {
  -webkit-user-select: text;
  user-select: text;
}
button,
.tab,
label {
  -webkit-user-select: none;
  user-select: none;
}
.auth-wrap { width: 100%; max-width: 420px; padding: 24px; }
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .logo {
  width: 44px; height: 44px; border-radius: 0; flex: 0 0 44px;
  background: transparent;
  display: grid; place-items: center; font-size: 22px;
  overflow: visible;
}
.auth-brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.auth-brand strong { display: block; font-size: 18px; color: #111827; }
.auth-brand small { display: block; color: #8a8f98; font-size: 12px; margin-top: 2px; }
.tabs { display: flex; gap: 4px; background: #f1f3f5; border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.tab {
  flex: 1; border: none; background: transparent; padding: 9px 0; border-radius: 8px;
  cursor: pointer; font-size: 14px; color: #5b6470; font-weight: 600; transition: all .15s;
}
.tab.active { background: #fff; color: #b45309; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form.hidden { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #4b5563; }
.field span em { color: #9aa1ac; font-style: normal; font-weight: 400; }
.field input {
  border: 1px solid #d8dde3; border-radius: 8px; padding: 10px 12px; font-size: 14px;
  outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
  font-family: inherit;
}
.field input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap input { padding-right: 40px; }
.pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; font-size: 14px; opacity: .55;
}
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-btn { white-space: nowrap; padding: 9px 14px; font-size: 13px; }
.btn {
  border: none; border-radius: 8px; padding: 11px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s, opacity .15s; font-family: inherit;
}
.btn.primary { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: #eef1f4; color: #475569; }
.btn.ghost:hover { background: #e2e7ec; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.auth-msg { margin-top: 14px; font-size: 13px; min-height: 18px; text-align: center; }
.auth-msg.ok { color: #16a34a; }
.auth-msg.err { color: #dc2626; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.remember-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; cursor: pointer; user-select: none; }
.link-btn, .form-back {
  border: none; background: transparent; color: #b45309; font-size: 13px; cursor: pointer; padding: 0; font-weight: 600;
}
.form-back { color: #64748b; align-self: flex-start; }
.form-desc { font-size: 13px; color: #64748b; line-height: 1.55; }
.invite-consult {
  margin: -4px 0 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8f0;
  border: 1px solid #fde0b8;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
}
.invite-consult[hidden] { display: none !important; }
.invite-consult-tip { margin: 0 0 8px; color: #92400e; font-weight: 600; }
.invite-consult-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.invite-consult-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #f0c48a; background: #fff; color: #b45309;
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
}
.invite-consult-btn:hover { background: #fff7ed; }
.invite-consult-wechat {
  width: 100%;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #f0c48a;
}
.invite-consult-qr {
  width: 96px; height: 96px; border-radius: 8px; object-fit: cover;
  border: 1px solid #e5e7eb; background: #fff;
}
.invite-consult-wechat-meta { flex: 1; min-width: 120px; font-size: 12px; color: #6b7280; }
.invite-consult-wechat-meta strong { display: block; color: #374151; margin-bottom: 2px; }
.auth-links { margin-top: 16px; text-align: center; font-size: 12px; }
.auth-links a { color: #b45309; text-decoration: none; }
.auth-links a:hover { color: #92400e; text-decoration: underline; }

.site-beian {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.72);
  -webkit-user-select: text;
  user-select: text;
}
.site-beian a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.28);
}
.site-beian a:hover {
  color: #f8fafc;
  border-bottom-color: rgba(248, 250, 252, 0.55);
}
