/* 入口：登录 / 注册 / 选择考试，配色与 FOCO备考 CFA 平台一致 */
@font-face {
  font-family: "FOCO Brand";
  src: url("../assets/brand/AlimamaFangYuanTi-FOCO.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

body:not(.in-learn) {
  background: #f6f6f7;
  color: #1a2533;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  overflow: auto;
}
body.in-learn {
  overflow: hidden;
}

.au-page,
.sel-page {
  position: relative;
  min-height: 100vh;
  background: #f6f6f7;
}
.au-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.au-col {
  width: 100%;
  max-width: 480px;
}
.au-back {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #3a4451;
  cursor: pointer;
  z-index: 2;
}
.au-back svg,
.sel-chev svg,
.au-cc svg,
.au-eye svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.au-back svg {
  width: 24px;
  height: 24px;
}
.au-back:active {
  opacity: 0.6;
}

.au-brand {
  margin-bottom: 32px;
  text-align: center;
}
.au-brand img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  object-fit: cover;
}
.au-brand h1 {
  margin: 0;
  font-family: "FOCO Brand", "PingFang SC", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a2533;
}
.au-brand p,
.au-title p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: #686f7a;
}
.au-title {
  margin-bottom: 32px;
}
.au-title h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a2533;
}

.au-form {
  display: grid;
  gap: 16px;
}
.au-field {
  display: grid;
  gap: 6px;
}
.au-field > label {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #3a4451;
}
.au-input,
.au-phone input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #3a4451;
  font: inherit;
  font-size: 17px;
  outline: none;
}
.au-input::placeholder,
.au-phone input::placeholder {
  color: #c5c8cc;
}
.au-input:focus-visible,
.au-phone:focus-within {
  box-shadow: 0 0 0 2px rgba(75, 101, 133, 0.18);
}
.au-phone {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  background: #fff;
}
.au-phone input {
  flex: 1;
  min-width: 0;
  background: transparent;
  box-shadow: none !important;
}
.au-cc {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.au-cc select {
  appearance: none;
  height: 48px;
  padding: 0 34px 0 14px;
  border: none;
  background: transparent;
  color: #3a4451;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}
.au-cc svg {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  color: #8e8e93;
  pointer-events: none;
}
.au-phone-rule {
  width: 1px;
  margin: 10px 0;
  background: #e3e5e7;
}
.au-code {
  display: flex;
  gap: 8px;
}
.au-code .au-input {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.1em;
}
.au-sms {
  flex: 0 0 auto;
  min-width: 110px;
  height: 48px;
  padding: 0 14px;
  border: none;
  border-radius: 14px;
  background: #d5dbe2;
  color: #2b4a6f;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.au-sms:hover:not(:disabled) {
  background: #bfc9d4;
}
.au-sms:disabled {
  background: #e3e5e7;
  color: #969ca3;
  cursor: not-allowed;
}
.au-hint {
  margin: 2px 2px 0;
  font-size: 12.5px;
  color: #686f7a;
}
.au-pwd {
  position: relative;
}
.au-pwd .au-input {
  padding-right: 48px;
}
.au-eye {
  position: absolute;
  inset: 0 0 0 auto;
  width: 48px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #8e8e93;
  cursor: pointer;
}
.au-eye svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}
.au-error {
  padding: 12px 16px;
  border: 1px solid #f5c6cb;
  border-radius: 12px;
  background: #fdf0f0;
  color: #c23a3a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.au-error[hidden] {
  display: none;
}
.au-primary {
  height: 48px;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 14px;
  background: #4b6585;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.au-primary:hover {
  background: #2b4a6f;
}
.au-primary:active {
  opacity: 0.9;
}
.au-inline {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
}
.au-foot {
  margin: 32px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #686f7a;
}
.au-link {
  border: none;
  background: transparent;
  padding: 0;
  color: #4b6585;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.au-link:hover {
  color: #2b4a6f;
}

/* 选择考试：iOS 设置式分组列表 */
.sel-page {
  max-width: 720px;
  margin: 0 auto;
}
.sel-col {
  padding: 60px 16px 64px;
}
.sel-col.fwd {
  animation: sel-fwd 260ms cubic-bezier(0.3, 0, 0.2, 1) both;
}
.sel-col.back {
  animation: sel-back 240ms cubic-bezier(0.3, 0, 0.2, 1) both;
}
@keyframes sel-fwd {
  from {
    opacity: 0;
    transform: translate3d(8%, 0, 0);
  }
}
@keyframes sel-back {
  from {
    opacity: 0;
    transform: translate3d(-8%, 0, 0);
  }
}
.sel-col h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: #1c1c1e;
}
.sel-list {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.sel-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: #fff;
  color: #1c1c1e;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sel-row + .sel-row {
  border-top: 0.5px solid rgba(60, 60, 67, 0.12);
}
.sel-row:hover:not(:disabled) {
  background: rgba(60, 60, 67, 0.03);
}
.sel-row:active:not(:disabled) {
  opacity: 0.7;
}
.sel-row:disabled {
  color: #1c1c1e;
  cursor: default;
}
.sel-txt {
  flex: 1;
  min-width: 0;
}
.sel-txt strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.01em;
}
.sel-txt small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 16px;
  color: #8e8e93;
}
.sel-row.soon .sel-txt strong {
  color: #8e8e93;
}
.sel-chev svg {
  display: block;
  width: 18px;
  height: 18px;
  color: #8e8e93;
}
.sel-check {
  font-size: 16px;
  font-weight: 700;
  color: #1c1c1e;
}
.sel-soon {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff0f1;
  color: #8e8e93;
  font-size: 12px;
}
.sel-note {
  margin: 14px 4px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #686f7a;
}
.sel-note[hidden] {
  display: none;
}

/* 激活码弹窗 */
.act-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(26, 37, 51, 0.32);
  animation: act-fade 0.18s ease both;
}
@keyframes act-fade {
  from {
    opacity: 0;
  }
}
.act-dialog {
  width: min(400px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px 22px 20px;
  border-radius: 18px;
  background: #f6f6f7;
  box-shadow: 0 18px 48px rgba(26, 37, 51, 0.18);
}
.act-dialog h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #1a2533;
}
.act-dialog p {
  margin: -6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #686f7a;
}
.act-actions {
  display: flex;
  gap: 10px;
}
.act-actions .au-primary {
  flex: 1;
  margin: 0;
}
.act-cancel {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: #e3e5e7;
  color: #3a4451;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
