:root {
  --ink: #0b1628;
  --bg: #eef1f5;
  --panel: #ffffff;
  --panel-soft: #f5f7fa;
  --text: #152233;
  --text-2: #4a5c70;
  --text-3: #7a8b9c;
  --border: #d6dde6;
  --border-strong: #b7c2d0;
  --primary: #1e4b7a;
  --primary-hover: #2f6aa3;
  --primary-soft: rgba(30, 75, 122, 0.1);
  --danger: #b83a30;
  --font: "Noto Sans SC", "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(180deg, #f5f7fa 0%, var(--bg) 45%, #e8edf3 100%);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.err { color: var(--danger); margin: 8px 0 0; min-height: 1.2em; font-size: 13px; }
.msg { color: var(--text-2); margin: 14px 0 0; min-height: 1.2em; line-height: 1.5; }
code {
  font-family: var(--mono);
  background: var(--panel-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #3a7ab8 0%, #1e4b7a 55%, #123252 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(30, 75, 122, 0.28);
}
.brand-mark.sm {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 11px;
  margin: 0;
  box-shadow: 0 4px 12px rgba(30, 75, 122, 0.22);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  animation: fadeIn 0.45s ease;
}
.login-shell {
  width: min(920px, 100%);
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(11, 22, 32, 0.12);
}
.login-brand {
  position: relative;
  background: linear-gradient(160deg, #0b1620 0%, #123047 48%, #0f3d3a 100%);
  color: #e8f1f4;
  padding: 40px 36px;
  overflow: hidden;
}
.login-brand-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 68%);
  animation: drift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.login-brand-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.login-hero {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.login-lead {
  margin: 0;
  color: rgba(232, 241, 244, 0.72);
  font-size: 14px;
  line-height: 1.65;
  max-width: 32ch;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 36px 28px;
  background:
    radial-gradient(420px 220px at 90% 0%, rgba(30, 75, 122, 0.06), transparent 60%),
    #fff;
}
.login-box { width: min(340px, 100%); }
.login-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.login-form-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.login-form-sub {
  margin: 0 0 22px;
  color: var(--text-3);
  font-size: 13px;
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

input, button { font: inherit; color: var(--text); }
input {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--text-3);
  border-color: #d9d9d9;
  transform: none;
}
.btn-lg { height: 42px; padding: 0 18px; font-weight: 600; }
.btn-primary {
  background: linear-gradient(180deg, #129286 0%, var(--primary) 100%);
  border-color: #0e6b64;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 6px 14px rgba(30, 75, 122, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-hover) 0%, #1a4570 100%);
  border-color: #0e6b64;
  color: #fff;
}
.btn-primary:disabled {
  background: #7fc4bd;
  border-color: #7fc4bd;
  color: #fff;
  opacity: 1;
}
.btn-block { width: 100%; height: 42px; font-weight: 600; }

.app { min-height: 100vh; animation: fadeIn 0.35s ease; }
.header {
  height: 68px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-left strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.header-left span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 2px;
}

.main {
  width: min(760px, calc(100% - 40px));
  margin: 40px auto 48px;
}

.hero-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 32px 28px;
  box-shadow: 0 12px 36px rgba(11, 22, 32, 0.06);
  overflow: hidden;
  animation: riseIn 0.4s ease;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #1e4b7a, #2f6aa3 55%, #9a5b1f);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.domain {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  word-break: break-all;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.meta {
  margin: 14px 0 22px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 52ch;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.kv {
  margin-top: 24px;
  padding: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: linear-gradient(180deg, transparent, var(--panel-soft));
  border-radius: 0 0 12px 12px;
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: -8px;
  padding-left: 24px;
  padding-right: 24px;
}
.kv span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.kv b {
  font-weight: 600;
  word-break: break-all;
}

.foot {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-20px, 24px); }
}

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .login-brand { min-height: 220px; }
}
@media (max-width: 640px) {
  .kv { grid-template-columns: 1fr; }
  .header { padding: 0 14px; }
  .hero-card { padding: 24px 18px; }
  .main { width: calc(100% - 24px); margin-top: 24px; }
}
