:root {
  --bg: #080b12;
  --panel: #101722;
  --panel-soft: #151e2b;
  --panel-strong: #0c111a;
  --line: rgba(161, 180, 207, .16);
  --line-strong: rgba(117, 148, 190, .34);
  --text: #f4f7fb;
  --muted: #8d9bb0;
  --muted-strong: #b8c4d5;
  --accent: #6d8dff;
  --accent-strong: #4f72f5;
  --accent-soft: rgba(109, 141, 255, .14);
  --teal: #55d4c1;
  --danger: #ff8191;
  --success: #6ee0a1;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 32px 20px;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(76, 105, 192, .18), transparent 32%),
    radial-gradient(circle at 88% 92%, rgba(55, 166, 155, .10), transparent 30%),
    var(--bg);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input { font: inherit; }
.shell { width: min(100%, 980px); }
.brandbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .18em; font-size: 13px; font-weight: 750; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(154, 177, 255, .45); border-radius: 9px; color: #fff; background: var(--accent-soft); box-shadow: inset 0 0 0 5px rgba(109, 141, 255, .05); }
.brand-mark::before { content: "M"; font-size: 12px; letter-spacing: 0; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .08em; }

.card { overflow: hidden; display: grid; grid-template-columns: minmax(250px, .82fr) minmax(360px, 1.18fr); border: 1px solid var(--line); border-radius: 24px; background: rgba(16, 23, 34, .94); box-shadow: var(--shadow); }
.intro { position: relative; min-height: 560px; padding: 48px 38px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(155deg, rgba(77, 102, 186, .18), rgba(16, 23, 34, .12) 48%, rgba(57, 164, 150, .10)); border-right: 1px solid var(--line); }
.intro::after { content: ""; position: absolute; right: -50px; top: 48px; width: 100px; height: 100px; border: 1px solid rgba(109, 141, 255, .22); border-radius: 50%; box-shadow: 0 0 0 18px rgba(109, 141, 255, .04), 0 0 0 38px rgba(109, 141, 255, .025); }
.intro h1 { max-width: 290px; margin: 34px 0 14px; font-size: clamp(31px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.intro-copy { max-width: 280px; margin: 0; color: var(--muted-strong); }
.steps { display: grid; gap: 13px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.steps li { display: flex; gap: 10px; align-items: center; }
.steps li::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(85, 212, 193, .09); }
.intro-foot { color: var(--muted); font-size: 12px; }
.form-side { padding: 42px clamp(26px, 5vw, 58px); }
.form-head { margin-bottom: 28px; }
.form-head h2 { margin: 0 0 7px; font-size: 28px; letter-spacing: -.02em; }
.sub { margin: 0; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { display: flex; align-items: center; justify-content: space-between; color: var(--muted-strong); font-size: 13px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 400; }
.control { position: relative; }
input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 12px; outline: 0; color: var(--text); background: var(--panel-strong); transition: border-color .18s, box-shadow .18s, background .18s; }
input:hover { border-color: rgba(145, 169, 210, .52); }
input:focus { border-color: var(--accent); background: #0b121e; box-shadow: 0 0 0 4px rgba(109, 141, 255, .13); }
input::placeholder { color: #5f6e83; }
.with-action input { padding-right: 78px; }
.field-action { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.field-action:hover { color: var(--text); }
.submit { width: 100%; min-height: 52px; margin-top: 8px; border: 1px solid rgba(160, 178, 255, .42); border-radius: 12px; color: #fff; background: var(--accent-strong); cursor: pointer; font-weight: 700; letter-spacing: .03em; box-shadow: 0 12px 28px rgba(79, 114, 245, .22); transition: transform .16s, filter .16s, box-shadow .16s; }
.submit:hover { filter: brightness(1.1); box-shadow: 0 15px 32px rgba(79, 114, 245, .3); }
.submit:active { transform: translateY(1px); }
.submit:disabled { cursor: wait; opacity: .65; filter: grayscale(.25); }
.msg { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 13px 14px; border: 1px solid; border-radius: 12px; font-size: 13px; }
.msg::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; margin-top: 7px; border-radius: 50%; background: currentColor; }
.msg.err { color: var(--danger); border-color: rgba(255, 129, 145, .24); background: rgba(255, 129, 145, .08); }
.msg.ok { color: var(--success); border-color: rgba(110, 224, 161, .24); background: rgba(110, 224, 161, .08); }
.nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.nav a { padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted-strong); background: rgba(255, 255, 255, .025); text-align: center; text-decoration: none; font-size: 13px; transition: border-color .16s, color .16s, background .16s; }
.nav a:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.tip { margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.account-status { display: flex; align-items: center; gap: 9px; min-height: 46px; margin-bottom: 16px; padding: 0 13px; border: 1px solid rgba(110, 224, 161, .22); border-radius: 12px; color: var(--success); background: rgba(110, 224, 161, .07); font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(110, 224, 161, .10); }
.status-user { margin-left: auto; color: var(--muted); font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { min-height: 80px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.stat span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.stat strong { display: block; overflow-wrap: anywhere; color: var(--text); font-size: 14px; font-weight: 650; }
.stat-wide { grid-column: 1 / -1; }
.account-again { display: flex; align-items: center; justify-content: center; margin-top: 18px; text-decoration: none; }
.mobile-foot { display: none; }

@media (max-width: 720px) {
  body { padding: 16px 12px; place-items: start center; }
  .shell { margin-top: 8px; }
  .brandbar { margin-bottom: 12px; }
  .eyebrow { display: none; }
  .card { display: block; border-radius: 19px; }
  .intro { min-height: 0; padding: 26px 24px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .intro::after { display: none; }
  .intro h1 { margin: 22px 0 9px; font-size: 34px; }
  .intro-copy { max-width: none; font-size: 14px; }
  .steps { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 19px; }
  .steps li { font-size: 12px; }
  .intro-foot { display: none; }
  .form-side { padding: 26px 24px 24px; }
  .form-head h2 { font-size: 24px; }
  .mobile-foot { display: block; margin-top: 15px; color: var(--muted); text-align: center; font-size: 11px; letter-spacing: .08em; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-wide { grid-column: auto; }
}
