:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #dce3ef;
  --blue: #1677ff;
  --blue-deep: #0b54b8;
  --paper: #ffffff;
  --wash: #f3f6fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(22, 119, 255, 0.14), transparent 32rem),
    linear-gradient(145deg, #f8fbff 0%, var(--wash) 58%, #eaf1fb 100%);
  font-family: "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 32, 51, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.card {
  position: relative;
  width: min(100%, 480px);
  padding: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px 7px 22px 7px;
  box-shadow: 0 24px 70px rgba(29, 55, 94, 0.14);
  animation: arrive 360ms ease-out both;
}

.card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 5px;
  right: -28px;
  top: 28px;
  background: var(--blue);
  transform: rotate(42deg);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  color: #fff;
  font: 800 15px/1 Georgia, serif;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  border-radius: 16px 5px 16px 5px;
  box-shadow: 0 10px 24px rgba(22, 119, 255, 0.28);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font: 700 clamp(28px, 8vw, 38px)/1.18 Georgia, "Noto Serif CJK SC", serif;
  letter-spacing: -0.03em;
}

.lead {
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

form { display: grid; gap: 10px; }

label {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

button {
  margin-top: 10px;
  padding: 13px 18px;
  color: #fff;
  font: 700 15px/1 "Microsoft YaHei UI", sans-serif;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

button:hover:not(:disabled) { background: var(--blue-deep); transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: 0.55; }

.notice {
  margin-top: 22px;
  padding: 13px 15px;
  border-left: 4px solid;
  border-radius: 4px 10px 10px 4px;
  font-size: 14px;
  line-height: 1.6;
}

.notice.neutral { color: #40506a; background: #f2f5f9; border-color: #91a0b5; }
.notice.pending { color: #8a4d00; background: #fff6e6; border-color: #f5a623; }
.notice.success { color: #12633e; background: #ecfdf3; border-color: #22a06b; }
.notice.error { color: #9c2d25; background: #fff0ee; border-color: #e5484d; }

.footnote { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .card { padding: 32px 24px; border-radius: 18px 6px 18px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; }
}
