:root {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #222;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f5f7ff, #eef4ff);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-container {
  width: 100%;
  max-width: 960px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  overflow: hidden;
}

.auth-container.single-column {
  max-width: 520px;
  grid-template-columns: 1fr;
  padding: 0 24px 24px;
}

.auth-card {
  padding: 48px;
}

.auth-card header h1 {
  margin: 0;
  font-size: 28px;
}

.auth-card header p {
  margin: 8px 0 32px;
  color: #6c7b95;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 8px;
}

.label-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #1f2933;
}

.label-text .required {
  color: #e74c3c;
}

.auth-card input {
  padding: 12px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  font-size: 16px;
}

.auth-card input:focus {
  outline: 2px solid #4c6ef5;
  border-color: transparent;
}

.auth-btn {
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #4c6ef5;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(76, 110, 245, 0.25);
}

.auth-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 8px;
}

.forgot-password-link {
  font-size: 14px;
  color: #4c6ef5;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.auth-alert {
  background: #fff5f5;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.auth-switch {
  margin-top: 24px;
  color: #6c7b95;
  font-size: 14px;
}

.auth-switch a {
  color: #4c6ef5;
  text-decoration: none;
  font-weight: bold;
}

.info-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #475569;
  padding: 6px 0;
}

.info-label {
  font-weight: 600;
}

.info-value {
  color: #111827;
}

.password-hint {
  font-size: 12px;
  color: #6c7b95;
  margin-top: 4px;
}

.password-hint[style*="color: #e74c3c"] {
  color: #e74c3c !important;
}

.password-hint[style*="color: #27ae60"] {
  color: #27ae60 !important;
}

.auth-role-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-role-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
}

.auth-role-tabs a.active {
  background: #4c6ef5;
  border-color: #4c6ef5;
  color: #fff;
}

.auth-hint {
  background: #eff6ff;
  border: 1px dashed #bfdbfe;
  color: #1d4ed8;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.auth-container.single-column .auth-card {
  padding: 32px 24px;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 32px 24px;
  }
}

/* 咨询二维码弹窗，与“立即咨询”页面保持一致 */
.consult-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.consult-modal.active {
  display: flex;
}

.consult-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.consult-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 30px 40px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 10001;
}

.consult-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.consult-modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.consult-modal-title {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  color: #009768;
}

.consult-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.consult-qr-item {
  text-align: center;
}

.consult-qr-label {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
}

.consult-qr-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border: 2px solid #e8f0ee;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: block;
}

.consult-qr-desc {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .consult-modal-content {
    padding: 20px;
    width: 95%;
  }

  .consult-qr-container {
    gap: 25px;
  }

  .consult-modal-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
}


