/* 瑞之恒认证弹窗样式 v1.0 */

/* ── Overlay ── */
.rzh-auth-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  animation: rzh-fadeIn 0.25s ease;
  padding: 16px;
}
@keyframes rzh-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Modal ── */
.rzh-auth-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 440px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  padding: 32px 28px 28px;
  animation: rzh-slideUp 0.3s ease;
}
@keyframes rzh-slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.rzh-auth-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  font-size: 26px; color: #999; cursor: pointer;
  padding: 0; line-height: 1; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.rzh-auth-close:hover { background: #f0f0f0; color: #333; }

/* ── Tabs ── */
.rzh-auth-tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
  background: #f5f5f5; border-radius: 12px; padding: 4px;
}
.rzh-auth-tab {
  flex: 1; padding: 10px 8px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  background: transparent; color: #666;
  transition: all 0.2s;
}
.rzh-auth-tab.active {
  background: #fff; color: #D97706; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.rzh-auth-tab:hover:not(.active) { color: #333; }

/* ── Panel ── */
.rzh-auth-panel { display: none; }
.rzh-auth-panel.active { display: block; }

.rzh-auth-tip {
  font-size: 13px; color: #888; margin-bottom: 18px;
  text-align: center; line-height: 1.5;
}

/* ── Fields ── */
.rzh-auth-field { margin-bottom: 14px; }
.rzh-auth-field label {
  display: block; font-size: 12px; font-weight: 500;
  color: #555; margin-bottom: 6px;
}
.rzh-auth-field input,
.rzh-auth-field select {
  width: 100%; height: 42px;
  border: 1px solid #ddd; border-radius: 10px;
  padding: 0 12px; font-size: 14px; outline: none;
  transition: all 0.2s; background: #fafafa;
  box-sizing: border-box;
}
.rzh-auth-field input:focus,
.rzh-auth-field select:focus {
  border-color: #D97706;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
  background: #fff;
}
.rzh-auth-required { color: #e53e3e; font-weight: 600; }
.rzh-auth-optional { color: #bbb; font-weight: 400; font-size: 11px; }

/* ── Submit button ── */
.rzh-auth-submit {
  width: 100%; padding: 13px; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #fff; margin-top: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.rzh-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217,119,6,0.4);
}
.rzh-auth-submit:active { transform: translateY(0); }
.rzh-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Agreement ── */
.rzh-auth-agreement {
  font-size: 11px; color: #aaa; text-align: center;
  margin-top: 12px;
}
.rzh-auth-agreement a { color: #D97706; text-decoration: none; }

/* ── Success ── */
.rzh-auth-success { text-align: center; padding: 20px 0; }
.rzh-auth-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #16A34A, #22C55E);
  color: #fff; font-size: 32px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  animation: rzh-popIn 0.5s ease;
}
@keyframes rzh-popIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.rzh-auth-success-msg {
  font-size: 16px; color: #333; line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .rzh-auth-modal {
    padding: 24px 18px 22px;
    border-radius: 16px;
  }
  .rzh-auth-tab { font-size: 13px; padding: 9px 6px; }
  .rzh-auth-submit { font-size: 14px; padding: 12px; }
}
