:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #171719;
  background: #f7f7f8;
  font-synthesis: none;
  --red: #ff2442;
  --ink: #171719;
  --muted: #74747b;
  --line: #e9e9ed;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
.hidden { display: none !important; }

.shell {
  max-width: 1120px;
  margin: auto;
  padding: 28px 20px 60px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.site-header h1 { margin: 0; font-size: 23px; }
.site-header p, .panel p { margin: 3px 0 0; color: #777; font-size: 13px; }
.site-header button { margin-left: auto; }
.mark, .brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, #ff3150, #ff2442 52%, #d80e30);
  box-shadow: 0 12px 28px rgba(255, 36, 66, .24);
}
.mark { width: 42px; height: 42px; border-radius: 14px; font-size: 21px; }

.login-stage {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  overflow: hidden;
  border: 1px solid rgba(25, 25, 28, .06);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(38, 23, 27, .09);
}

.login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 48px 54px 38px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 111, 133, .38), transparent 27%),
    radial-gradient(circle at 12% 92%, rgba(255, 56, 87, .2), transparent 30%),
    linear-gradient(145deg, #24171a 0%, #35151c 46%, #82162a 100%);
}
.login-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  right: -125px;
  bottom: -115px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, .025), 0 0 0 104px rgba(255, 255, 255, .018);
}
.login-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .7) .8px, transparent .8px);
  background-size: 24px 24px;
  mask-image: linear-gradient(135deg, transparent 15%, #000 80%);
}
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 48px; height: 48px; border-radius: 16px; font-size: 23px; }
.brand-lockup b { display: block; font-size: 20px; letter-spacing: -.2px; }
.brand-lockup span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.brand-copy { margin: auto 0 38px; max-width: 530px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #ffb6c1; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.eyebrow i { width: 22px; height: 1px; background: currentColor; }
.brand-copy h1 { margin: 20px 0 18px; font-size: clamp(42px, 4vw, 62px); line-height: 1.12; letter-spacing: -.045em; }
.brand-copy h1 em { color: #ff5f76; font-style: normal; }
.brand-copy > p { max-width: 470px; margin: 0; color: rgba(255, 255, 255, .66); font-size: 16px; line-height: 1.8; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-list > div { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .055); backdrop-filter: blur(10px); }
.feature-icon { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #ff8c9d; background: rgba(255, 255, 255, .09); font-size: 13px; font-weight: 800; }
.feature-list p { min-width: 0; margin: 0; }
.feature-list b, .feature-list small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-list b { font-size: 13px; }
.feature-list small { margin-top: 3px; color: rgba(255, 255, 255, .48); font-size: 10px; }
.brand-foot { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: rgba(255, 255, 255, .35); font-size: 11px; letter-spacing: .08em; }
.brand-foot span { width: 5px; height: 5px; border-radius: 50%; background: #ff4964; box-shadow: 0 0 0 4px rgba(255, 73, 100, .12); }

.login-side {
  display: grid;
  place-items: center;
  padding: 52px clamp(34px, 4vw, 66px);
  background: radial-gradient(circle at 100% 0, rgba(255, 36, 66, .055), transparent 32%), #fff;
}
.login-card { width: min(100%, 390px); }
.mobile-lockup { display: none; }
.login-kicker { display: inline-block; margin-bottom: 12px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.login-card h2 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.login-intro { margin: 10px 0 30px; color: var(--muted); font-size: 14px; }
label { display: grid; gap: 8px; margin: 17px 0; color: #38383d; font-size: 13px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid #dddde3;
  border-radius: 13px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: #b1b1b7; }
input:focus, textarea:focus, select:focus { border-color: rgba(255, 36, 66, .6); box-shadow: 0 0 0 4px rgba(255, 36, 66, .08); }
textarea { min-height: 88px; resize: vertical; }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 7px 9px; color: #777; background: transparent; font-size: 12px; font-weight: 700; }
button { border: 0; border-radius: 12px; padding: 10px 15px; color: #fff; background: var(--red); font-weight: 750; cursor: pointer; transition: transform .16s, box-shadow .16s, opacity .16s; }
button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 36, 66, .18); }
button:disabled { cursor: wait; opacity: .68; transform: none; box-shadow: none; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 24px; padding: 13px 16px; border-radius: 14px; background: linear-gradient(135deg, #ff3150, #f31639); box-shadow: 0 14px 30px rgba(255, 36, 66, .2); }
.login-submit span { font-size: 18px; line-height: 1; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 25px; color: #a0a0a7; font-size: 11px; }
.login-note span { color: #70b989; font-size: 8px; }
.error { min-height: 18px; margin-top: 12px; color: #c51c38; font-size: 13px; }

.panel { margin-bottom: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.panel h2 { margin: 0; font-size: 18px; }
.ghost { color: #333; background: #f2f2f4; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { padding: 17px; border-radius: 17px; color: #fff; background: linear-gradient(145deg, #281116, #c90e30); }
.stat b { display: block; font-size: 27px; }
.stat span { color: #ffe7eb; font-size: 12px; }
.grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.list { display: grid; gap: 9px; }
.item { padding: 13px; border: 1px solid #ededf0; border-radius: 14px; }
.item-head { display: flex; justify-content: space-between; gap: 10px; }
.meta { color: #777; font-size: 12px; }
.badge { padding: 4px 8px; border-radius: 99px; background: #f2f2f4; font-size: 11px; }
.content { margin: 8px 0; line-height: 1.55; white-space: pre-wrap; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
.review textarea { margin-top: 10px; }
.pair { margin-bottom: 12px; padding: 14px; border: 1px solid #ffc8d2; border-radius: 14px; color: #9d0b27; background: #fff0f3; font-weight: 800; letter-spacing: 2px; }
dialog { width: min(420px, calc(100vw - 32px)); padding: 22px; border: 0; border-radius: 20px; box-shadow: 0 20px 70px #0003; }
dialog::backdrop { background: #1118; }

@media (max-width: 900px) {
  .login-stage { grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); }
  .login-brand { padding: 42px 36px 32px; }
  .feature-list { grid-template-columns: 1fr; max-width: 270px; }
  .feature-list > div:nth-child(3) { display: none; }
}

@media (max-width: 720px) {
  .shell { padding: 0 0 36px; }
  .site-header { padding: 18px 16px 0; }
  .login-stage { min-height: 100svh; display: block; border: 0; border-radius: 0; box-shadow: none; }
  .login-brand { display: none; }
  .login-side { min-height: 100svh; padding: 34px 24px; background: radial-gradient(circle at 100% 0, rgba(255, 36, 66, .09), transparent 36%), #fff; }
  .mobile-lockup { display: flex; align-items: center; gap: 11px; margin-bottom: 68px; font-size: 19px; }
  .mobile-lockup .mark { width: 40px; height: 40px; }
  .login-card h2 { font-size: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  #app { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
