:root {
  --ink: #26343d;
  --muted: #60717b;
  --paper: #f5f8fa;
  --surface: rgba(255, 255, 255, 0.78);
  --line: #c9dce7;
  --accent: #205d7e;
  --accent-soft: #e0eef6;
  --shadow: 0 24px 70px rgba(48, 80, 98, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(139, 196, 220, 0.28), transparent 28%),
    linear-gradient(135deg, #f7fbfd, #eaf2f8 54%, #f7fbfd);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.parent-header {
  width: min(1080px, calc(100% - 48px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: auto;
}

.parent-brand img {
  display: block;
  width: clamp(104px, 10vw, 132px);
  height: auto;
}

.parent-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 780;
}

.parent-header button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.parent-shell,
.auth-shell {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.parent-shell {
  padding: 54px 0 80px;
}

.auth-shell {
  min-height: calc(100dvh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.68fr);
  align-items: center;
  gap: 36px;
  padding: 24px 0 34px;
}

.parent-welcome,
.auth-copy {
  max-width: 690px;
}

.parent-welcome span,
.auth-copy span {
  color: var(--accent);
  font-weight: 820;
}

.parent-welcome h1,
.auth-copy h1 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.parent-welcome p,
.auth-copy p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.parent-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.parent-dashboard article,
.parent-empty,
.auth-card,
.profile-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
}

.parent-dashboard article {
  min-height: 210px;
  padding: 26px;
}

.parent-dashboard span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 780;
}

.parent-dashboard strong {
  display: block;
  margin-top: 18px;
  font-size: 26px;
  line-height: 1.2;
}

.parent-dashboard p,
.parent-empty p,
.form-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.parent-empty {
  max-width: 560px;
  margin-top: 38px;
  padding: 28px;
}

.parent-empty strong {
  font-size: 24px;
}

.parent-empty div {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.auth-card {
  padding: 24px;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.profile-panel {
  margin-top: 22px;
  padding: 28px;
}

.profile-heading h2 {
  margin: 8px 0 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.profile-heading span {
  color: var(--accent);
  font-weight: 820;
}

.profile-heading p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.profile-form .wide {
  grid-column: 1 / -1;
}

.auth-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

input,
textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px 14px;
  line-height: 1.65;
}

input:focus,
textarea:focus {
  border-color: #327ba4;
  box-shadow: 0 0 0 4px rgba(50, 123, 164, 0.14);
}

.primary,
.secondary,
.wechat-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.primary {
  border: 0;
  background: var(--accent);
  color: #f8fcff;
  box-shadow: 0 12px 28px rgba(32, 93, 126, 0.2);
}

.secondary,
.wechat-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
}

.wechat-button {
  width: 100%;
  margin-top: 16px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.code-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.captcha-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.captcha-card {
  min-width: 124px;
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(224, 238, 246, 0.58);
}

.captcha-card span {
  color: var(--ink);
  font-weight: 820;
}

.text-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.form-error {
  margin: 0;
  color: #a23a32;
  font-size: 13px;
}

.form-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .auth-shell,
  .parent-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .parent-header,
  .parent-shell,
  .auth-shell {
    width: min(calc(100% - 28px), 640px);
  }

  .auth-shell {
    display: block;
    min-height: auto;
    padding: 14px 0 28px;
  }

  .auth-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 20px;
  }

  .parent-welcome h1,
  .auth-copy h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .parent-welcome p,
  .auth-copy p {
    font-size: 14px;
  }

  .code-line,
  .captcha-line,
  .profile-form,
  .parent-empty div {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .profile-panel {
    padding: 22px;
    border-radius: 22px;
  }
}
