/* ===========================================================
   培森题库 · 登录注册页
   =========================================================== */
body.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.auth-left {
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(800px 500px at 10% 0%, #e7f8f5 0%, rgba(231, 248, 245, 0) 60%),
    radial-gradient(700px 460px at 92% 90%, #eef1ff 0%, rgba(238, 241, 255, 0) 62%),
    linear-gradient(160deg, #fbfefe, #f4fbfa);
  border-right: 1px solid var(--line);
}
.auth-left::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(16, 179, 163, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 179, 163, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(70% 60% at 40% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 40% 30%, #000, transparent);
}
.auth-left > * { position: relative; }

.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { height: 40px; }
.auth-brand b { font-size: 19px; letter-spacing: .3px; }
.auth-brand small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 1.2px; }

.auth-hero { margin-top: auto; margin-bottom: auto; padding: 40px 0; }
.auth-hero h2 { font-size: 36px; line-height: 1.32; letter-spacing: -.8px; margin: 0 0 18px; font-weight: 800; }
.auth-hero h2 span { color: var(--pri-dd); }
.auth-hero p { color: var(--ink-2); font-size: 15px; line-height: 1.9; max-width: 420px; margin: 0 0 26px; }
.auth-points { display: flex; flex-direction: column; gap: 12px; }
.auth-points div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.auth-points i {
  width: 22px; height: 22px; border-radius: 7px; background: #fff;
  border: 1px solid #d7eee9; display: grid; place-items: center; color: var(--pri); flex-shrink: 0;
}
.auth-points svg { width: 13px; height: 13px; }

.auth-foot { font-size: 12.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }

.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: #fff;
}
.auth-box { width: 100%; max-width: 372px; }
.auth-box .hd h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: -.4px; }
.auth-box .hd p { margin: 0 0 26px; font-size: 13.5px; color: var(--muted); }

.tabs {
  display: flex; gap: 4px; background: #f2f8f8; border-radius: 11px; padding: 4px; margin-bottom: 24px;
}
.tabs button {
  flex: 1; height: 36px; border: none; background: transparent; border-radius: 8px;
  font-size: 14px; color: var(--ink-2); cursor: pointer; transition: .16s; font-weight: 500;
}
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(19, 46, 51, .09); font-weight: 600; }

.pwd-wrap { position: relative; }
.pwd-wrap .eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: transparent; cursor: pointer;
  color: var(--muted); display: grid; place-items: center; border-radius: 7px;
}
.pwd-wrap .eye:hover { background: #f2f7f8; color: var(--ink-2); }
.pwd-wrap .eye svg { width: 16px; height: 16px; }

.auth-error {
  display: none; background: var(--danger-l); border: 1px solid #f3c9ca; color: #a42428;
  border-radius: 9px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px;
}
.auth-error.show { display: block; }

.auth-tip {
  background: var(--pri-l2); border: 1px solid #d9efec; color: #0a6a62;
  border-radius: 9px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 16px; line-height: 1.7;
}

.auth-alt { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--pri-dd); font-weight: 500; }

.auth-contact {
  margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line-2);
  display: flex; align-items: center; gap: 12px;
}
.auth-contact img { width: 62px; height: 62px; object-fit: cover; object-position: center 62%; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.auth-contact .t { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.auth-contact .t b { color: var(--ink); font-size: 13px; display: block; }
.auth-contact .p { font-family: var(--mono); color: var(--pri-dd); font-size: 13px; cursor: pointer; font-weight: 600; }
.auth-contact .p:hover { text-decoration: underline; }

.loading-mask {
  position: fixed; inset: 0; background: rgba(255,255,255,.7); z-index: 400;
  display: none; place-items: center; backdrop-filter: blur(2px);
}
.loading-mask.show { display: grid; }
.spinner {
  width: 34px; height: 34px; border: 3px solid #d9eeeb; border-top-color: var(--pri);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.qr-modal img { width: 100%; border-radius: 12px; }

@media (max-width: 900px) {
  body.auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 34px 20px 60px; }
}
