/* SakuraPanel 商业风共享样式（本地资源，无外部请求） */
:root {
  --primary: #1256c4;
  --primary-dark: #0b3a85;
  --navy: #0a1f44;
  --navy-2: #0e2a5c;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --green: #16a34a;
  --red: #dc2626;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body.auth {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text); line-height: 1.6; min-height: 100vh;
  display: flex;
}
a { text-decoration: none; color: inherit; }

/* ---------- 左侧品牌区 ---------- */
.auth-side {
  flex: 1; max-width: 46%;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, #123c8c 100%);
  color: #fff; padding: 56px 48px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.auth-side::after {
  content: ""; position: absolute; left: -140px; bottom: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,141,245,.35), transparent 65%);
}
.auth-side .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #4f8df5); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; flex: none; }
.auth-side h2 { margin-top: auto; font-size: 30px; line-height: 1.3; position: relative; z-index: 1; }
.auth-side h2 span { color: #7fb0ff; }
.auth-side p.lead { margin-top: 14px; color: #c7d5ef; font-size: 15px; max-width: 380px; position: relative; z-index: 1; }
.auth-side ul { list-style: none; margin-top: 26px; position: relative; z-index: 1; }
.auth-side li { padding: 6px 0 6px 28px; position: relative; color: #c7d5ef; font-size: 14px; }
.auth-side li::before { content: "✓"; position: absolute; left: 2px; color: #7fb0ff; font-weight: 700; }
.auth-side .foot { margin-top: auto; font-size: 12px; color: #7389ad; position: relative; z-index: 1; }

/* ---------- 右侧表单区 ---------- */
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 24px; color: var(--navy); }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 6px 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.field label .tip { font-weight: 400; color: var(--primary); cursor: pointer; }
.field input { width: 100%; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; transition: border-color .15s; background: #f9fafb; }
.field input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(18,86,196,.12); }
.btn { display: block; width: 100%; padding: 12px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { background: #9db3d4; cursor: not-allowed; }
.auth-links { text-align: center; font-size: 14px; margin-top: 20px; color: var(--muted); }
.auth-links a { color: var(--primary); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }
.alert { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert.danger { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.alert.success { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.alert .x { float: right; cursor: pointer; font-weight: 700; opacity: .6; }
.copyright { text-align: center; font-size: 12px; color: #9ca3af; margin-top: 30px; }

@media (max-width: 860px) {
  .auth-side { display: none; }
}

/* ---------- 错误页 ---------- */
.err-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-soft, #f4f7fb); font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; padding: 24px; }
.err-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 48px 44px; text-align: center; max-width: 440px; width: 100%; box-shadow: 0 14px 34px rgba(10,31,68,.08); }
.err-card .code { font-size: 56px; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.err-card h1 { font-size: 20px; color: var(--navy); margin: 16px 0 8px; }
.err-card p { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.err-card a.btn-inline { display: inline-block; width: auto; padding: 10px 28px; }
