/* 注册入口 + 弹窗样式（独立注入，深空蓝主色，与登录页统一） */

.reg-entry {
  text-align: center;
  margin-top: 18px;
}
.reg-entry-link {
  color: #1a4b8c;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.reg-entry-link:hover {
  color: #2a5fa8;
  text-decoration: underline;
}

/* 弹窗遮罩 */
.reg-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: regFadeIn 0.2s ease;
}
@keyframes regFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reg-modal {
  width: 420px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: regSlideIn 0.25s ease;
}
@keyframes regSlideIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.reg-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.reg-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a4b8c;
}
.reg-close {
  font-size: 20px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.reg-close:hover {
  color: #333;
}

.reg-modal-body {
  padding: 20px 24px;
}
.reg-field {
  margin-bottom: 16px;
}
.reg-label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  font-weight: 500;
}
.reg-input,
.reg-select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  color: #222;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.reg-input:hover,
.reg-select:hover {
  border-color: #1a4b8c;
}
.reg-input:focus,
.reg-select:focus {
  border-color: #1a4b8c;
  box-shadow: 0 0 0 1.5px #1a4b8c;
}
.reg-select {
  cursor: pointer;
  appearance: auto;
}

.reg-modal-foot {
  padding: 0 24px 24px;
}
.reg-submit-btn {
  width: 100%;
  height: 46px;
  background: #1a4b8c;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.reg-submit-btn:hover {
  background: #2a5fa8;
}
.reg-submit-btn:disabled {
  background: #8aa6c9;
  cursor: not-allowed;
}

/* 提示 Toast */
.reg-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.reg-toast.ok { background: #16a34a; }
.reg-toast.err { background: #dc2626; }
.reg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
