.wd-auth-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 12, 40, 0.55);
}
.wd-auth-mask.is-open { display: flex; }

.wd-auth-panel {
  width: min(360px, 100%);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8f5ff 0%, #fff 42%);
  box-shadow: 0 18px 40px rgba(80, 48, 150, 0.28);
  overflow: hidden;
}

.wd-auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
}
.wd-auth-head h3 {
  margin: 0;
  font-size: 17px;
  color: #3d3847;
}
.wd-auth-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #8a8399;
  cursor: pointer;
}

.wd-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 10px;
}
.wd-auth-tab {
  border: 0;
  height: 36px;
  border-radius: 18px;
  background: #ebe6f7;
  color: #6b6280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.wd-auth-tab.is-active {
  background: linear-gradient(90deg, #8d6be3, #6e4dc3);
  color: #fff;
}

.wd-auth-body { padding: 4px 16px 16px; }
.wd-auth-form { display: none; }
.wd-auth-form.is-active { display: block; }

.wd-auth-field {
  margin-bottom: 12px;
}
.wd-auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #5c5d8e;
}
.wd-auth-field input {
  width: 100%;
  height: 42px;
  border: 1px solid #ddd4f0;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  color: #3d3847;
  background: #fff;
  outline: none;
}
.wd-auth-field input:focus {
  border-color: #8d6be3;
  box-shadow: 0 0 0 3px rgba(141, 107, 227, 0.15);
}
.wd-auth-error {
  min-height: 18px;
  margin: 0 0 8px;
  font-size: 12px;
  color: #d1435b;
}

.wd-auth-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #8d6be3, #6e4dc3);
  box-shadow: 0 8px 18px rgba(110, 77, 195, 0.3);
}
.wd-auth-tip {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #8a8399;
}

.wd-tip-mask {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
}
.wd-tip-mask.is-open { display: flex; }
.wd-tip-box {
  width: min(320px, 100%);
  border-radius: 12px;
  background: #fff;
  padding: 22px 18px 16px;
  text-align: center;
  color: #313e69;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.wd-tip-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff4e5;
  color: #e6a23c;
  font-size: 24px;
  font-weight: 700;
}
.wd-tip-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}
.wd-tip-ok {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #8d6be3, #6e4dc3);
}
