:root {
  --ink: #172033;
  --muted: #7b8496;
  --line: #e6eaf2;
  --card: #ffffff;
  --blue: #1d4f91;
  --btn: #163a6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #fff;
  background: #071426;
}
a { color: inherit; }

.home {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(86, 176, 255, .28), transparent 62%),
    radial-gradient(700px 480px at 82% 88%, rgba(32, 92, 168, .45), transparent 60%),
    linear-gradient(165deg, #07182e 0%, #0d3158 48%, #123e62 100%);
}
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("bg.svg");
  background-size: cover;
  background-position: center;
  opacity: .9;
  pointer-events: none;
}
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: .4px;
}
.mark {
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #d7ebff;
  color: #1d4f91;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 13px;
}
.mark svg { display: block; }
.center {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 76px);
  min-height: calc(100dvh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px 64px;
}
.panel { width: min(680px, 100%); }
h1 {
  margin: 14px 0 12px;
  font-size: 56px;
  letter-spacing: 1px;
  font-weight: 750;
}
.sub { margin: 0; color: #d7e6f8; font-size: 16px; line-height: 1.85; }
.actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: #fff;
  color: #173056;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
}
.pill.ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: #eef2f7 url("bg-soft.svg") center/cover no-repeat;
  color: var(--ink);
}
.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(23, 42, 74, .08);
  padding: 28px 26px 20px;
}
.card h2 { margin: 8px 0 6px; text-align: center; font-size: 22px; }
.lead { margin: 0 0 8px; text-align: center; color: var(--muted); font-size: 13px; }
label { display: block; margin: 14px 0 8px; font-size: 14px; }
input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
input:focus { border-color: #7aa4d8; box-shadow: 0 0 0 3px rgba(29,79,145,.12); }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.send, .submit {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.send {
  flex: 0 0 118px;
  height: 46px;
  background: #f3f6fb;
  color: var(--blue);
}
.send:disabled { color: #9aa6b8; }
.submit {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  background: #1d4f91;
  color: #fff;
  letter-spacing: 3px;
  font-size: 16px;
}
.msg { min-height: 18px; margin-top: 8px; font-size: 12px; color: #c24141; }
.msg.ok { color: #15803d; }
.links { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.links a { color: #1d4f91; text-decoration: none; font-weight: 650; margin-left: 6px; }
.back {
  display: inline-block;
  margin-top: 10px;
  color: #1d4f91;
  text-decoration: none;
  font-size: 13px;
}

.console {
  min-height: 100vh;
  background: #f4f7fb;
  color: var(--ink);
}
.bar {
  height: 60px;
  background: #0d3158;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.bar a, .bar button { color: #fff; }
.bar button {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  height: 32px;
  padding: 0 12px;
  cursor: pointer;
}
.wrap { width: min(920px, calc(100% - 28px)); margin: 24px auto 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(23, 42, 74, .05);
}
.tile h3 { margin: 0 0 6px; }
.tile p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tag {
  display: inline-block;
  margin-top: 12px;
  background: #e8f2ff;
  color: #1d4f91;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
.note { margin-top: 18px; text-align: center; color: #8b93a3; font-size: 12px; }
@media (max-width: 720px) {
  h1 { font-size: 40px; }
  .grid { grid-template-columns: 1fr; }
  .top { padding: 16px; }
}
