@import url("brand.css");

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  background: var(--page);
  color: var(--text);
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 460px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}

/* ── 左：品牌叙述面（深墨底 + 关系网络母题）─────────── */
.aside {
  position: relative; padding: 52px 60px; display: flex; flex-direction: column;
  background: linear-gradient(150deg, #0b3d52 0%, #00668c 100%); color: #fff; overflow: hidden;
}
.aside::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
  border: 1px solid rgba(201, 185, 138, .16); border-radius: 50%;
}
.aside-net { position: absolute; inset: 0; opacity: .5; }
.aside-in { position: relative; z-index: 2; margin-top: auto; max-width: 26em; }
.aside .eyebrow { color: var(--primary-container); margin-bottom: 18px; }
.eyebrow.serif {
  font-family: var(--font-headline); font-style: italic; font-size: 17px; font-weight: 600;
  text-transform: none; letter-spacing: 0;
}
/* 深墨面板叠噪点，避免大面积纯色显得塑料 */
.aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23a)'/%3E%3C/svg%3E");
}
.aside h2 {
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.22; font-weight: 700;
  letter-spacing: -.02em; color: #fff; margin-bottom: 16px;
}
.aside h2 em {
  font-family: var(--font-headline); font-style: italic; font-weight: 600; color: var(--primary-container);
}
.aside p { color: rgba(255,255,255,.66); font-size: var(--fs-body); line-height: 1.75; }
.aside-logo { position: relative; z-index: 2; height: 26px; align-self: flex-start; }
/* 深色侧栏上的落款：白 70%，与 logo 左对齐 */
.aside-unit {
  margin-top: 10px; font-family: var(--font-body); font-size: var(--fs-label);
  font-weight: 500; letter-spacing: .1em; color: rgba(255, 255, 255, .7);
}

/* ── 右：表单 ───────────────────────────────────── */
.form-side {
  background: var(--card); display: flex; flex-direction: column; justify-content: center;
  padding: 52px 56px; position: relative; z-index: 1; border-left: 1px solid var(--line);
}
.form-in { width: 100%; max-width: 360px; margin: 0 auto; }
.form-in .eyebrow { margin-bottom: 12px; }
.form-in h1 {
  font-size: 27px; font-weight: 700; color: var(--text);
  letter-spacing: -.02em; margin-bottom: 8px;
}
.form-in .sub { font-size: var(--fs-body); color: var(--text-3); margin-bottom: 34px; line-height: 1.6; }

label {
  display: block; font-family: var(--font-headline); font-size: var(--fs-label);
  font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 7px;
}
input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--page); margin-bottom: 18px; font-size: var(--fs-h3); transition: border-color .15s;
}
input:hover { border-color: var(--outline); }
input:focus { outline: none; border-color: var(--text); background: var(--card); }

.submit {
  width: 100%; padding: 13px; background: var(--primary); color: #fff; border-radius: var(--r-sm);
  font-size: var(--fs-h3); font-weight: 500; transition: background .15s;
}
.submit:hover { background: var(--primary-dim); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: .6; cursor: not-allowed; }

.err {
  background: var(--error-bg); color: var(--error); padding: 10px 13px;
  border-left: 2px solid var(--error); font-size: var(--fs-body); margin-bottom: 16px;
}
.back { margin-top: 26px; font-size: var(--fs-xs); color: var(--text-faint); }
.back a { color: var(--text-3); border-bottom: 1px solid var(--line); }
.back a:hover { color: var(--primary); border-color: var(--primary); }

.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
  body { grid-template-columns: 1fr; }
  .aside { display: none; }
  .form-side { min-height: 100dvh; border-left: none; background: var(--page); }
}
