/* 防止水平溢出 */
html, body {
  overflow-x: hidden;
}

.mamba-auth-page {
  overflow-x: hidden;
}

.mamba-auth-card {
  overflow-x: hidden;
}

.mamba-user-center {
  overflow-x: hidden;
}
/**
 * 曼巴线报用户认证系统样式
 */

.mamba-auth-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 20px;
}

.mamba-auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.04);
}

.mamba-auth-card h2 {
  font-size: 22px;
  margin: 0 0 6px;
  color: #111;
  text-align: center;
}

.mamba-auth-card .subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
  text-align: center;
}

.mamba-form-group {
  margin-bottom: 16px;
}

.mamba-form-group label {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 6px;
  font-weight: 600;
}

.mamba-form-group input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #f9fafb;
}

.mamba-form-group input:focus {
  border-color: #ff2442;
  box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.12);
  background: #fff;
}

.mamba-form-submit {
  margin-top: 8px;
}

.mamba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #ff2442;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s;
}

.mamba-btn:hover {
  box-shadow: 0 6px 18px rgba(255, 36, 66, 0.25);
}

.mamba-btn:active {
  transform: translateY(1px);
}

.mamba-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mamba-auth-footer {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.mamba-auth-footer a {
  color: #ff2442;
  text-decoration: none;
}

.mamba-auth-footer a:hover {
  text-decoration: underline;
}

.mamba-auth-error {
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #fff1f2;
  color: #c81e33;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid #fecdd3;
}

.mamba-auth-success {
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #f0fdf4;
  color: #15803d;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid #bbf7d0;
}

.mamba-auth-loading {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

.mamba-user-center {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.mamba-user-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

.mamba-user-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f3f4f6;
}

.mamba-user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #f2f3f7;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mamba-user-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111;
}

.mamba-user-info p {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.mamba-section {
  margin-bottom: 24px;
}

.mamba-section h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #222;
  padding-bottom: 8px;
  border-bottom: 2px solid #f3f4f6;
}

.mamba-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #6b7280;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 8px;
  transition: background .2s;
}

.mamba-logout-btn:hover {
  background: #4b5563;
}

.mamba-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.mamba-checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.mamba-checkbox-group label {
  font-size: 13px;
  color: #666;
  cursor: pointer;
  margin: 0;
}

@media (max-width: 640px) {
  .mamba-auth-card {
    padding: 24px 20px;
  }
  
  .mamba-user-header {
    flex-direction: column;
    text-align: center;
  }
}


@media (max-width: 640px) {
  .mamba-auth-page {
    padding: 20px 12px;
  }

  .mamba-auth-card {
    padding: 20px;
    border-radius: 12px;
  }

  .mamba-auth-card h2 {
    font-size: 18px;
  }

  .mamba-user-center {
    padding: 20px 12px;
  }

  .mamba-user-card {
    padding: 20px;
  }

  .mamba-user-header {
    gap: 12px;
  }

  .mamba-user-avatar {
    width: 60px;
    height: 60px;
  }

  .mamba-user-info h2 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .mamba-auth-page {
    padding: 12px 8px;
  }

  .mamba-auth-card {
    padding: 16px;
  }

  .mamba-auth-card h2 {
    font-size: 16px;
  }

  .mamba-form-group input {
    font-size: 13px;
    padding: 8px 10px;
  }

  .mamba-btn {
    font-size: 14px;
    padding: 8px 10px;
  }
}
