/* =============================================================================
   企微系统 · 登录 / 注册页样式
   极简风格：浅灰底 + 白色圆角卡片 + 蓝色主按钮
   ============================================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ------------------------------------------------------------ 登录卡片 */

.login-card,
.register-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 420px;
}

.login-header,
.register-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-header h1,
.register-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.login-header p,
.register-header p {
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
}

/* ------------------------------------------------------------ 表单 */

.input-group { margin-bottom: 22px; }

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  color: #1e293b;
  background: #fafbfc;
  transition: all 0.2s ease;
  outline: none;
}

.input-group input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input::placeholder { color: #94a3b8; font-weight: 400; }

/* ------------------------------------------------------------ 按钮 */

.btn-login,
.btn-register {
  width: 100%;
  padding: 14px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-login:hover,
.btn-register:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-login:active,
.btn-register:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.btn-login:disabled,
.btn-register:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------ 错误提示 */

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.error-message:empty { display: none; }

.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
}

.success-message:empty { display: none; }

/* ------------------------------------------------------------ 分隔与链接 */

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider span { padding: 0 12px; }

.register-link,
.login-link {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.register-link a,
.login-link a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.register-link a:hover,
.login-link a:hover { color: #2563eb; text-decoration: underline; }

/* ------------------------------------------------------------ 页脚 */

.page-foot {
  position: fixed;
  left: 0; right: 0; bottom: 18px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

.page-foot a { color: #94a3b8; text-decoration: none; margin: 0 8px; }
.page-foot a:hover { color: #3b82f6; }

/* ------------------------------------------------------------ 说明页 */

body.doc-body {
  display: block;
  padding: 0;
}

.doc {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.doc h1 { font-size: 26px; font-weight: 600; color: #1e293b; margin: 0 0 8px; }
.doc .updated { font-size: 13px; color: #94a3b8; margin: 0 0 26px; }
.doc h2 { font-size: 15px; font-weight: 600; color: #1e293b; margin: 26px 0 10px; }
.doc p { font-size: 14px; line-height: 2; color: #475569; margin: 0 0 12px; }

.doc .card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .03);
}

.doc-back {
  display: inline-block;
  margin-top: 24px;
  font-size: 13.5px;
  color: #3b82f6;
  text-decoration: none;
}

.doc-back:hover { text-decoration: underline; }

/* ------------------------------------------------------------ 提示条 */

.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, .93);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  z-index: 90;
  display: none;
  max-width: 88vw;
}

.toast.show { display: block; }
.toast.bad { background: rgba(220, 38, 38, .95); }
.toast.ok { background: rgba(22, 163, 74, .95); }

/* ------------------------------------------------------------ 客户端工作台 */

.console {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.console-head h1 { font-size: 21px; color: #1e293b; }

.btn-ghost {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  color: #475569;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: all .2s ease;
}

.btn-ghost:hover { border-color: #3b82f6; color: #3b82f6; }

.console-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .03);
}

.console-card h2 {
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.kv {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #eef2f7;
  font-size: 13.5px;
}

.kv:last-child { border-bottom: none; }
.kv .k { width: 100px; color: #64748b; flex: none; }
.kv .v { color: #1e293b; word-break: break-all; }

.notice-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.9;
}

@media (max-width: 480px) {
  .login-card, .register-card { padding: 36px 26px; }
}
