/* ============================================================
   登录 / 注册弹层
   ============================================================ */
.auth-dialog {
  display: grid;
  grid-template-columns: 320px 1fr;
  width: min(840px, 100%);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 36px;
  background:
    radial-gradient(320px 220px at 20% 0%, rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(160deg, #2f6fe4 0%, #1e4fbf 55%, #17388c 100%);
  color: #fff;
}

.auth-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 22px;
  font-weight: 700;
}

.auth-aside h2 {
  color: #fff;
  font-size: 25px;
  line-height: 1.45;
  font-weight: 700;
}

.auth-aside p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.8;
}

.auth-points {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  list-style: none;
}

.auth-points li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, .9);
  font-size: 12.5px;
  line-height: 1.6;
}

.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9cc6ff;
}

.auth-main {
  position: relative;
  padding: 34px 40px 30px;
  overflow-y: auto;
  max-height: calc(100vh - 48px);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.auth-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: var(--blue-50);
}

.auth-tabs button {
  padding: 6px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.auth-tabs button.is-active {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 2px 6px rgba(30, 58, 138, .1);
}

.auth-title { font-size: 23px; }
.auth-sub { margin-top: 6px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }

.auth-form { display: grid; gap: 14px; }
.auth-form .field > label { font-size: 12.5px; }
.auth-form .input { min-height: 44px; }

.auth-error {
  display: block;
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 12.5px;
}

.auth-error.hidden { display: none; }

.auth-submit { min-height: 46px; margin-top: 2px; }

.auth-demo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}

.auth-demo > span { color: var(--muted-2); font-size: 12px; }
.auth-demo .btn { font-size: 12px; }

.auth-terms {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .auth-dialog { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 30px 24px 24px; }
}
