:root {
  color-scheme: light;
  --text: #23324f;
  --muted: #7181a0;
  --border: rgba(213, 224, 241, 0.92);
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 32px 90px rgba(116, 135, 171, 0.2);
  --button-start: #a9eeea;
  --button-end: #f4c5dd;
  --button-text: #243455;
  --success: #0fb27f;
  --danger: #e05e76;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(130deg, #b7f1ed 0%, #e8f0f8 52%, #f7c9dc 100%);
}

.account-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.account-background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 236, 226, 0.66), transparent 34%),
    radial-gradient(circle at 82% 80%, rgba(255, 196, 222, 0.72), transparent 32%),
    radial-gradient(circle at 66% 28%, rgba(255, 255, 255, 0.5), transparent 24%);
  filter: blur(20px);
  transform: scale(1.04);
  pointer-events: none;
}

.account-shell {
  position: relative;
  min-height: calc(100vh - 42px);
  display: grid;
  place-items: center;
  padding: 28px 18px 10px;
}

.auth-card {
  width: min(378px, 100%);
  border-radius: 30px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  padding: 32px 32px 28px;
  backdrop-filter: blur(18px);
}

.login-card {
  padding-top: 40px;
}

.activate-card {
  width: min(430px, 100%);
}

.activate-shot-card {
  padding: 46px 32px 28px;
}

.brand-mark {
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(91, 126, 158, 0.16));
}

.brand-kicker {
  margin: 0 0 8px;
  text-align: center;
  color: #6c7da0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-title {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.en-title {
  font-size: 26px;
  line-height: 1.2;
}

.zh-title {
  font-size: 34px;
  line-height: 1.16;
}

.login-title {
  font-size: 32px;
}

.auth-subtitle {
  margin: 12px auto 30px;
  max-width: 280px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--text);
}

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

.activate-form {
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.field input {
  width: 100%;
  height: 54px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  padding: 0 18px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder {
  color: #b0bad0;
}

.field input:focus {
  border-color: rgba(128, 173, 242, 0.85);
  box-shadow: 0 0 0 4px rgba(184, 221, 255, 0.24);
}

.primary-button,
.secondary-button {
  height: 54px;
  border: none;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0;
}

.primary-button {
  background: linear-gradient(90deg, var(--button-start) 0%, var(--button-end) 100%);
  color: var(--button-text);
  box-shadow: 0 16px 32px rgba(189, 211, 235, 0.24);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: default;
  opacity: 1;
}

.primary-button:disabled {
  background: #c7d4e6;
  color: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.secondary-button {
  background: rgba(238, 243, 251, 0.92);
  color: var(--muted);
  border: 1px solid var(--border);
}

.form-notice {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(217, 227, 241, 0.95);
  background: rgba(247, 250, 255, 0.92);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 14px 16px;
}

.form-notice.is-error {
  border-color: rgba(238, 172, 186, 0.85);
  background: rgba(255, 243, 246, 0.94);
  color: var(--danger);
}

.form-notice.is-success {
  border-color: rgba(149, 221, 197, 0.9);
  background: rgba(240, 255, 249, 0.94);
  color: var(--success);
}

.auth-divider {
  height: 1px;
  background: rgba(220, 229, 242, 0.95);
  margin: 24px 0 18px;
}

.auth-switch,
.auth-help {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.auth-switch a,
.auth-help a,
.session-link,
.form-link {
  color: #5a6bff;
  font-weight: 700;
  text-decoration: none;
}

.auth-help {
  margin-top: 8px;
}

.activate-code-input {
  width: 100%;
  height: 60px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  padding: 0 18px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.activate-code-input::placeholder {
  color: #b0bad0;
}

.activate-code-input:focus {
  border-color: rgba(128, 173, 242, 0.85);
  box-shadow: 0 0 0 4px rgba(184, 221, 255, 0.24);
}

.activation-submit {
  height: 56px;
}

.activation-notice {
  margin-top: 14px;
}

.page-footer {
  position: relative;
  padding: 0 0 14px;
  text-align: center;
  color: #6f7f9f;
  font-size: 12px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 28px;
}

.stepper-step {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  color: #a1aec5;
}

.stepper-step strong,
.stepper-step small {
  display: block;
}

.stepper-step strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.stepper-step.is-active {
  color: var(--success);
}

.stepper-step.is-done {
  color: var(--success);
}

.stepper-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid currentColor;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  font-weight: 800;
  font-size: 18px;
  flex: 0 0 40px;
}

.stepper-line {
  height: 1px;
  flex: 0 0 30px;
  background: rgba(216, 224, 238, 0.96);
}

.info-panel,
.session-card {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(217, 227, 241, 0.95);
  background: rgba(248, 251, 255, 0.94);
  padding: 16px 18px;
}

.info-panel strong,
.session-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
}

.summary-list,
.session-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.session-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.session-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(215, 226, 241, 0.96);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.session-link.is-primary {
  background: linear-gradient(90deg, rgba(184, 240, 239, 0.88), rgba(245, 207, 225, 0.88));
  border-color: transparent;
}

@media (max-width: 520px) {
  .account-shell {
    padding: 18px 12px 8px;
  }

  .auth-card {
    padding: 28px 20px 24px;
    border-radius: 26px;
  }

  .activate-shot-card {
    padding-top: 38px;
  }

  .login-card {
    padding-top: 34px;
  }

  .en-title {
    font-size: 22px;
  }

  .zh-title {
    font-size: 28px;
  }

  .stepper {
    gap: 8px;
  }

  .stepper-line {
    flex-basis: 18px;
  }

  .stepper-step {
    gap: 8px;
  }

  .stepper-step strong {
    font-size: 13px;
  }
}
