/* ============ Auth Modal (global) ============ */
.auth-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.auth-modal.is-open { display: block; }

.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(6px);
}

.auth-dialog {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  padding: 18px 18px 14px;
}

.auth-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  border: 0; border-radius: 10px;
  background: #f2f5fb;
  cursor: pointer;
}

.auth-header { padding: 4px 4px 10px; }
.auth-header h2 { margin: 0; font-size: 20px; }
.auth-sub { margin: 6px 0 0; font-size: 13px; color: #667085; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 10px;
}
.auth-tab {
  border: 1px solid #e6eaf2;
  background: #f7f9fe;
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
  font-weight: 600;
}
.auth-tab.is-active { background: #0b57d0; color: #fff; border-color: #0b57d0; }

.auth-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.auth-method {
  border: 1px solid #e6eaf2;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.auth-method.is-active { border-color: #0b57d0; color: #0b57d0; }

.auth-body { padding: 2px 4px 8px; }

.auth-pane { display: none; }
.auth-pane.is-active { display: block; }

.auth-form { display: none; }
.auth-form.is-active { display: block; }

.auth-label { display: block; margin: 10px 0 6px; font-size: 13px; color: #344054; font-weight: 600; }

.auth-row { display: flex; gap: 10px; align-items: center; }
.auth-input {
  flex: 1;
  height: 42px;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}
.auth-input:focus { border-color: #0b57d0; box-shadow: 0 0 0 4px rgba(11,87,208,0.12); }

.auth-code-btn {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e6eaf2;
  background: #f7f9fe;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.auth-primary {
  width: 100%;
  margin-top: 14px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: #0b57d0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-hint { margin: 10px 0 0; font-size: 12px; color: #667085; }

.auth-wechat-box {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  padding: 12px;
  background: #f7f9fe;
}
.auth-wechat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f5ee;
  font-size: 20px;
}
.auth-wechat-title { font-weight: 800; }
.auth-wechat-desc { font-size: 12px; color: #667085; margin-top: 2px; }

.auth-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #eef2f8;
}
.auth-link {
  border: 0;
  background: transparent;
  color: #0b57d0;
  cursor: pointer;
  font-weight: 700;
}
.auth-dot { color: #98a2b3; }
